emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

crash when selecting menu items (GTK)


From: Simon Josefsson
Subject: crash when selecting menu items (GTK)
Date: Sat, 25 Jan 2003 20:19:06 +0100
User-agent: Gnus/5.090015 (Oort Gnus v0.15) Emacs/21.3.50 (i686-pc-linux-gnu)

This bug report will be sent to the Free Software Foundation,
not to your local site managers!
Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.

Your bug report will be posted to the address@hidden mailing list.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

gtkutil.c:1818 calls strcmp() on a NULL pointer.

(gdb) r
Starting program: /home/jas/bin/emacs -geometry 80x40+0+0

(emacs:31785): Gtk-CRITICAL **: file gtklabel.c: line 1954 
(gtk_label_set_text_with_mnemonic): assertion `str != NULL' failed

Program received signal SIGSEGV, Segmentation fault.
0x4060f254 in strcmp () from /lib/libc.so.6
(gdb) bt
#0  0x4060f254 in strcmp () from /lib/libc.so.6
#1  0x080d5ca1 in xg_update_menu_item (val=0x912fb30, w=0x8f3e848,
    select_cb=0x80763d8 <menubar_selection_callback>,
    highlight_cb=0x807620c <menu_highlight_callback>, cl_data=0x858a320)
    at gtkutil.c:1818
#2  0x080d6187 in xg_update_submenu (submenu=0x9422bb8, f=0x8466380,
    val=0x9283510, select_cb=0x80763d8 <menubar_selection_callback>,
    deactivate_cb=0x8076144 <popup_deactivate_callback>,
    highlight_cb=0x807620c <menu_highlight_callback>, cl_data=0x858a320)
    at gtkutil.c:1988
#3  0x080d61e8 in xg_update_submenu (submenu=0x8f3b208, f=0x8466380,
    val=0x9322650, select_cb=0x80763d8 <menubar_selection_callback>,
    deactivate_cb=0x8076144 <popup_deactivate_callback>,
    highlight_cb=0x807620c <menu_highlight_callback>, cl_data=0x858a320)
    at gtkutil.c:2002
#4  0x080d639d in xg_modify_menubar_widgets (menubar=0x858a2c0, f=0x8466380,
    val=0x8571d10, deep_p=1, select_cb=0x80763d8 <menubar_selection_callback>,
    deactivate_cb=0x8076144 <popup_deactivate_callback>,
    highlight_cb=0x807620c <menu_highlight_callback>) at gtkutil.c:2109
#5  0x08076f2c in set_frame_menubar (f=0x8466380, first_time=0, deep_p=1)
    at xmenu.c:2065
#6  0x080760b2 in x_activate_menubar (f=0x8466380) at xmenu.c:1219
#7  0x080dddd4 in kbd_buffer_get_event (kbp=0xbffff13c,
---Type <return> to continue, or q <return> to quit---
    used_mouse_menu=0xbffff33c) at keyboard.c:3890
#8  0x080dc516 in read_char (commandflag=1, nmaps=4, maps=0xbffff2f0,
    prev_event=405445916, used_mouse_menu=0xbffff33c) at keyboard.c:2743
#9  0x080e2ad0 in read_key_sequence (keybuf=0xbffff440, bufsize=30,
    prompt=405445916, dont_downcase_last=0, can_return_switch_frame=1,
    fix_current_buffer=1) at keyboard.c:8531
#10 0x080da358 in command_loop_1 () at keyboard.c:1474
#11 0x0812ec4d in internal_condition_case (bfun=0x80da050 <command_loop_1>,
    handlers=405542524, hfun=0x80d9c64 <cmd_error>) at eval.c:1351
#12 0x080d9f28 in command_loop_2 () at keyboard.c:1274
#13 0x0812e7c5 in internal_catch (tag=405503828,
    func=0x80d9f04 <command_loop_2>, arg=405445916) at eval.c:1112
#14 0x080d9ed3 in command_loop () at keyboard.c:1253
#15 0x080d9a20 in recursive_edit_1 () at keyboard.c:969
#16 0x080d9b50 in Frecursive_edit () at keyboard.c:1025
#17 0x080d89e3 in main (argc=3, argv=0xbffffa04) at emacs.c:1659
(gdb) up
#1  0x080d5ca1 in xg_update_menu_item (val=0x912fb30, w=0x8f3e848,
    select_cb=0x80763d8 <menubar_selection_callback>,
    highlight_cb=0x807620c <menu_highlight_callback>, cl_data=0x858a320)
    at gtkutil.c:1818
1818      if (strcmp (utf8_label, gtk_label_get_label (wlbl)) != 0)
(gdb) p utf8_label
$1 = 0x0
(gdb) p wlbl
$2 = (GtkLabel *) 0x9425b08
(gdb) p *wlbl
$3 = {
  misc = {
    widget = {
      object = {
        parent_instance = {
          g_type_instance = {
            g_class = 0x858e588
          },
          ref_count = 1,
          qdata = 0x912a8c8
        },
        flags = 2098976
      },
      private_flags = 15872,
      state = 0 '\0',
      saved_state = 0 '\0',
      name = 0x0,
      style = 0x851a108,
      requisition = {
        width = 0,
        height = 0
      },
      allocation = {
---Type <return> to continue, or q <return> to quit---
        x = -1,
        y = -1,
        width = 1,
        height = 1
      },
      window = 0x0,
      parent = 0x8f3e848
    },
    xalign = 0,
    yalign = 0.5,
    xpad = 0,
    ypad = 0
  },
  label = 0x9425ac8 "",
  jtype = 0,
  wrap = 0,
  use_underline = 0,
  use_markup = 0,
  mnemonic_keyval = 16777215,
  text = 0x9425b98 "",
  attrs = 0x0,
  effective_attrs = 0x0,
  layout = 0x0,
---Type <return> to continue, or q <return> to quit---
  mnemonic_widget = 0x0,
  mnemonic_window = 0x0,
  select_info = 0x0
}
(gdb)



In GNU Emacs 21.3.50.5 (i686-pc-linux-gnu)
 of 2003-01-25 on latte.josefsson.org
configured using `configure '--with-gtk''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: nil
  locale-coding-system: nil
  default-enable-multibyte-characters: t

Recent input:
<help-echo> M-x r e p o r <tab> <return>

Recent messages:
Loading tool-bar...done
Loading image...done
Loading tooltip...done
Loading edmacro...done
Loading mwheel...done
Loading regexp-opt...done
Loading advice...done
Loading server...done
For information about the GNU Project and its goals, type C-h C-p.
Loading emacsbug...done





reply via email to

[Prev in Thread] Current Thread [Next in Thread]