Subject: crash when suspending with Gtk3
From: Dan Nicolaescu <[email-masked]>
To: [email-masked]
Date: Tue, 25 Oct 2011 11:33:28 -0400
List-Id: <debbugs-submit.debbugs.gnu.org>

Trunk configured with --with-x-toolkit=gtk3
fvwm window manager

emacs -Q
C-z
to iconify, put the mouse over the emacs icon and this is what happens:

(gdb) xbacktrace 
(gdb) backtrace 
#0  abort () at /tmp/trunk/src/emacs.c:386
#1  0x0000000000500b55 in x_connection_closed (dpy=0xf53200, error_message=
    0x7fffffffc9c0 "X protocol error: BadMatch (invalid parameter attributes) on protocol request 42")
    at /tmp/trunk/src/xterm.c:7805
#2  0x0000000000501065 in x_error_quitter (display=0xf53200, event=0x7fffffffcc70)
    at /tmp/trunk/src/xterm.c:7893
#3  0x0000000000500fc6 in x_error_handler (display=0xf53200, event=0x7fffffffcc70)
    at /tmp/trunk/src/xterm.c:7863
#4  0x0000003fc644810f in _XError () from /usr/lib64/libX11.so.6
#5  0x0000003fc6444f91 in ?? () from /usr/lib64/libX11.so.6
#6  0x0000003fc6444fd5 in ?? () from /usr/lib64/libX11.so.6
#7  0x0000003fc6445a35 in _XEventsQueued () from /usr/lib64/libX11.so.6
#8  0x0000003fc643656d in XPending () from /usr/lib64/libX11.so.6
#9  0x0000003fc944680b in ?? () from /usr/lib64/libgdk-3.so.0
#10 0x0000003c9b441cc2 in g_main_context_prepare () from /lib64/libglib-2.0.so.0
#11 0x0000003c9b442bbd in ?? () from /lib64/libglib-2.0.so.0
#12 0x0000003c9b443150 in g_main_context_pending () from /lib64/libglib-2.0.so.0
#13 0x0000003fca5473dd in gtk_events_pending () from /usr/lib64/libgtk-3.so.0
#14 0x00000000004ff467 in XTread_socket (terminal=0xfd2d90, expected=0x1, hold_quit=0x7fffffffcf50)
    at /tmp/trunk/src/xterm.c:7152
#15 0x000000000054f5dc in read_avail_input (expected=0x1)
    at /tmp/trunk/src/keyboard.c:6821
#16 0x000000000054fe84 in handle_async_input () at /tmp/trunk/src/keyboard.c:7149
#17 0x000000000054fea3 in process_pending_signals ()
    at /tmp/trunk/src/keyboard.c:7165
#18 0x00000000006393c8 in wait_reading_process_output (time_limit=0x1e, microsecs=0x0, read_kbd=0xffffffff, do_display=0x1, 
    wait_for_cell=0xbfd952, wait_proc=0x0, just_wait_proc=0x0)
    at /tmp/trunk/src/process.c:4332
#19 0x000000000041ddf1 in sit_for (timeout=0x78, reading=0x1, do_display=0x1)
    at /tmp/trunk/src/dispnew.c:5971
#20 0x0000000000546d6c in read_char (commandflag=0x1, nmaps=0x2, maps=0x7fffffffd770, prev_event=0xbfd952, used_mouse_menu=
    0x7fffffffd954, end_time=0x0) at /tmp/trunk/src/keyboard.c:2687
#21 0x0000000000554587 in read_key_sequence (keybuf=0x7fffffffdbc0, bufsize=0x1e, prompt=0xbfd952, dont_downcase_last=0x0, 
    can_return_switch_frame=0x1, fix_current_buffer=0x1)
    at /tmp/trunk/src/keyboard.c:9282
#22 0x00000000005444ee in command_loop_1 () at /tmp/trunk/src/keyboard.c:1447
#23 0x00000000005df637 in internal_condition_case (bfun=0x544109 <command_loop_1>, handlers=0xc0a502, hfun=0x5439f1 <cmd_error>)
    at /tmp/trunk/src/eval.c:1499
#24 0x0000000000543df8 in command_loop_2 (ignore=0xbfd952)
    at /tmp/trunk/src/keyboard.c:1158
#25 0x00000000005defc1 in internal_catch (tag=0xc09492, func=0x543dd2 <command_loop_2>, arg=0xbfd952)
    at /tmp/trunk/src/eval.c:1256
#26 0x0000000000543dab in command_loop () at /tmp/trunk/src/keyboard.c:1137
#27 0x0000000000543535 in recursive_edit_1 () at /tmp/trunk/src/keyboard.c:757
#28 0x00000000005436d8 in Frecursive_edit () at /tmp/trunk/src/keyboard.c:821
#29 0x000000000054179d in main (argc=0x2, argv=0x7fffffffe4d8)
    at /tmp/trunk/src/emacs.c:1706