[322] in bug-owl

home help back first fref pref prev next nref lref last post

core dump on "view all"

daemon@ATHENA.MIT.EDU (Erik Nygren)
Thu Mar 11 23:36:45 2004

To: bug-owl@mit.edu
Date: Thu, 11 Mar 2004 23:36:26 -0500
From: Erik Nygren <nygren@MIT.EDU>
Message-Id: <E1B1ePK-0006Z5-00@galaxia.bay13.org>


For future records, I've had two segfaults in
the past few days in something like this...

It looks like the attribute list may have garbage in it?
(With the length longer than the number of valid entries
or maybe I'm just using gsb wrong.  ;)

#0  0x401775f0 in strcmp () from /lib/libc.so.6
#1  0x0805d8b1 in owl_message_get_attribute_value (m=0x83faee0, attrname=0x809b98e "class") at message.c:74
#2  0x0805da36 in owl_message_get_class (m=0x83faee0) at message.c:144
#3  0x0806ab18 in owl_perlconfig_message2hashref (m=0x83faee0) at perlconfig.c:59
#4  0x0806afa4 in owl_perlconfig_call_with_message (subname=0x81108c8 "format_msg_custom", m=0x83faee0) at perlconfig.c:114
#5  0x0806b8b5 in owl_perlconfig_getmsg (m=0x83faee0, mode=1, subname=0x81108c8 "format_msg_custom") at perlconfig.c:303
#6  0x0807df67 in owl_style_get_formattext (s=0x81108a0, fm=0x83faf80, m=0x83faee0) at style.c:60
#7  0x0805d9f2 in owl_message_format (m=0x83faee0) at message.c:130
#8  0x0805df17 in owl_message_get_numlines (m=0x83faee0) at message.c:421
#9  0x0806ebc6 in owl_function_calculate_topmsg_paged (direction=1, v=0x80b8890, curmsg=5855, topmsg=475, recwinlines=54, center_on_page=0)
    at functions.c:1177
#10 0x0806ea45 in owl_function_calculate_topmsg (direction=1) at functions.c:1103
#11 0x08071414 in owl_function_change_currentview_filter (filtname=0x80c9468 "all") at functions.c:2343
#12 0x08062cbc in owl_command_view (argc=2, argv=0x8b0c818, buff=0x80d78e0 "view --home") at commands.c:1964
#13 0x08079ea9 in owl_cmd_execute (cmd=0x80cf838, cd=0x80b885c, ctx=0x80b8868, argc=2, argv=0x8b0c818, cmdbuff=0x80d78e0 "view --home")
    at cmd.c:178
#14 0x08079b08 in owl_cmddict_execute (cd=0x80b885c, ctx=0x80b8868, cmdbuff=0x80d78e0 "view --home") at cmd.c:79
#15 0x0806cc2b in owl_function_command (cmdbuff=0x80d78e0 "view --home") at functions.c:24
#16 0x0806cc41 in owl_function_command_norv (cmdbuff=0x80d78e0 "view --home") at functions.c:31
#17 0x080797db in owl_keybinding_execute (kb=0x80d7898, j=86) at keybinding.c:73
#18 0x0807950b in owl_keyhandler_process (kh=0x80b87c0, j=86) at keymap.c:262
#19 0x0805d143 in main (argc=1, argv=0xbffff7e4, env=0xbffff7ec) at owl.c:667
(gdb) up
#1  0x0805d8b1 in owl_message_get_attribute_value (m=0x83faee0, attrname=0x809b98e "class") at message.c:74
74          if (!strcmp(owl_pair_get_key(p), attrname)) {
(gdb) print *m
$2 = {id = 1170, type = 2, direction = 1, notice = {z_packet = 0x83fad60 "ZEPH0.2", z_version = 0x83fad60 "ZEPH0.2", z_kind = ACKED, z_uid = {
      zuid_addr = {s_addr = 687951378}, tv = {tv_sec = -409186752, tv_usec = 1227098112}}, z_time = {tv_sec = 1078893799, tv_usec = 533577}, 
    z_port = 13832, z_auth = 1, z_checked_auth = -1, z_authent_len = 0, z_ascii_authent = 0x83fadbc "", z_class = 0x83fadbd "help", 
    z_class_inst = 0x83fadc2 "validator", z_opcode = 0x83fadcc "", z_sender = 0x83fadcd "terran@ATHENA.MIT.EDU", z_recipient = 0x83fade3 "", 
    z_default_format = 0x83fade4 "Class $class, Instance $instance:\nTo: @bold($recipient) at $time $date\nFrom: @bold($1) <$sender>\n\n$2", 
    z_multinotice = 0x83fae54 "0/91", z_multiuid = {zuid_addr = {s_addr = 687951378}, tv = {tv_sec = -409186752, tv_usec = 1227098112}}, 
    z_checksum = 1982139227, z_num_other_fields = 0, z_other_fields = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, 
    z_message = 0x83fae7a "3.141592653589793238462643383279502884197950", z_message_len = 91}, fmtext = {textlen = 0, textbuff = 0x82f3fb0 "", 
    fmbuff = 0x830d788 "", colorbuff = 0x8368f98 "\bŠ!@ \230-\b\020"}, invalid_format = 1, delete = 0, 
  hostname = "MEANS.MIT.EDU\0\0\0 \0\0\0 \0\0\0 \0\0\0 \0\0\0 \0\0\0 \0\0\0 \0\0\0 \0\0\0 \0\0\0 \0\0\0 \0\0\0 \0\0\0 ", attributes = {size = 8, 
    avail = 30, list = 0x83faad8}, timestr = 0x83f8418 "Tue Mar  9 23:43:19 2004", time = 1078893799, zwriteline = 0x83fb160 ""}
(gdb) print m->attributes
$3 = {size = 8, avail = 30, list = 0x83faad8}
(gdb) print m->attributes.list
$4 = (void **) 0x83faad8

(gdb) print (owl_pair[8])(m->attributes.list)
$6 = {{key = 0x83faad8, value = 0x83f8418}, {key = 0x404e9ce7, value = 0x83fb160}, {key = 0x11, value = 0x83f8b90}, {key = 0x4021a6b0, 
    value = 0x10}, {key = 0x10, value = 0x83fb038}, {key = 0x83fb018, value = 0x20}, {key = 0x21, value = 0x72726574}, {key = 0x41406e61, 
    value = 0x4e454854}}
(gdb) 

home help back first fref pref prev next nref lref last post