GNOME Bugzilla – Bug 360870
Crash in gdk_keymap_translate_keyboard_state()
Last modified: 2007-03-10 04:16:21 UTC
Steps to reproduce: To reproduce this crash, launch gtk-demo, open the "menu" app, lick on a menu and, while keeping the mousebutton pressed, press a key on the keyboard. Stack trace: Program received signal SIGSEGV, Segmentation fault.
+ Trace 75406
Thread NaN (LWP 17528)
(gdb) l 2723 default: 2724 break; 2725 } 2726 2727 /* Figure out what modifiers went into determining the key symbol */ 2728 gdk_keymap_translate_keyboard_state (gdk_keymap_get_for_display (display), 2729 event->hardware_keycode, event->state, event->group, 2730 NULL, NULL, NULL, &consumed_modifiers); 2731 2732 accel_key = gdk_keyval_to_lower (event->keyval); Other information: The crash happens if gtk_menu_key_press() calls gdk_keymap_translate_keyboard_state() and passes NULL as 5th parameter. Crash actually happens in gdkkeys-directfb.c:1944 when trying to write to a null address. How should the keyval = null case be handled? cheers Attilio
hmm, the X11 implementation accepts NULL for most of the out params: if (keyval) *keyval = NoSymbol; if (effective_group) *effective_group = 0; if (level) *level = 0; if (consumed_modifiers) *consumed_modifiers = 0; That should probably be documented.
I've updated the docs.
Created attachment 80826 [details] The expander widget is transparent and the window surface is trashed
*** This bug has been marked as a duplicate of 413328 ***