Comment 6 for bug 633303

Here's a trace with --sync, up-to-date Maverick as of today.

The crash occurs when window manager changes (or restarts), which triggers terminal_window_composited_changed_cb() and terminal_util_x11_set_net_wm_desktop().

Breakpoint 1, gdk_x_error (display=0x9cd5d90, error=0xbff3a2ac) at /build/buildd/gtk+2.0-2.21.7/gdk/x11/gdkmain-x11.c:439
439 /build/buildd/gtk+2.0-2.21.7/gdk/x11/gdkmain-x11.c: Aucun fichier ou dossier de ce type.
 in /build/buildd/gtk+2.0-2.21.7/gdk/x11/gdkmain-x11.c
(gdb) ba
#0 gdk_x_error (display=0x9cd5d90, error=0xbff3a2ac) at /build/buildd/gtk+2.0-2.21.7/gdk/x11/gdkmain-x11.c:439
#1 0x0043c2c9 in _XError (dpy=0x9cd5d90, rep=0x9d34cf0) at ../../src/XlibInt.c:3103
#2 0x0044299f in process_responses (dpy=0x9cd5d90, wait_for_first_event=<value optimized out>, current_error=0xbff3a3dc,
    current_request=4434) at ../../src/xcb_io.c:214
#3 0x00443036 in _XReply (dpy=0x9cd5d90, rep=0xbff3a410, extra=0, discard=1) at ../../src/xcb_io.c:464
#4 0x00436867 in XSync (dpy=0x9cd5d90, discard=0) at ../../src/Sync.c:46
#5 0x004369f5 in _XSyncFunction (dpy=0x9cd5d90) at ../../src/Synchro.c:35
#6 0x00415abc in XChangeProperty (dpy=0x9cd5d90, w=48234501, property=349, type=6, format=32, mode=0, data=0xbff3a508 "",
    nelements=1) at ../../src/ChProp.c:92
#7 0x0806f349 in terminal_util_x11_set_net_wm_desktop (window=0x9ce8218, desktop=0) at terminal-util.c:1115
#8 0x08071632 in terminal_window_composited_changed_cb (screen=0x9ce40d8, window=0x9d49088) at terminal-window.c:1689
#9 0x00312a1c in g_cclosure_marshal_VOID__VOID (closure=0x9e1b578, return_value=0x0, n_param_values=1,
    param_values=0x9ea9a08, invocation_hint=0xbff3a700, marshal_data=0x8071490)
    at /build/buildd/glib2.0-2.25.15/gobject/gmarshal.c:79
#10 0x003034b2 in g_closure_invoke (closure=0x9e1b578, return_value=0x0, n_param_values=1, param_values=0x9ea9a08,
    invocation_hint=0xbff3a700) at /build/buildd/glib2.0-2.25.15/gobject/gclosure.c:766
#11 0x0031c0e5 in signal_emit_unlocked_R (node=<value optimized out>, detail=<value optimized out>, instance=0x9ce40d8,
    emission_return=0x0, instance_and_params=0x9ea9a08) at /build/buildd/glib2.0-2.25.15/gobject/gsignal.c:3252
#12 0x0031d75c in g_signal_emit_valist (instance=0x9ce40d8, signal_id=5, detail=0, var_args=0xbff3a958 "")
    at /build/buildd/glib2.0-2.25.15/gobject/gsignal.c:2983
#13 0x0031da45 in g_signal_emit_by_name (instance=0x9ce40d8, detailed_signal=0x83b99d "composited-changed")
    at /build/buildd/glib2.0-2.25.15/gobject/gsignal.c:3077
#14 0x0080e54d in _gdk_x11_screen_process_owner_change (screen=0x9ce40d8, event=0xbff3abdc)
    at /build/buildd/gtk+2.0-2.21.7/gdk/x11/gdkscreen-x11.c:1228
#15 0x008016f9 in gdk_event_translate (display=<value optimized out>, event=<value optimized out>, xevent=0xbff3abdc,
    return_exposes=0) at /build/buildd/gtk+2.0-2.21.7/gdk/x11/gdkevents-x11.c:2105
#16 0x00801e91 in _gdk_events_queue (display=0x9ce10c0) at /build/buildd/gtk+2.0-2.21.7/gdk/x11/gdkevents-x11.c:2310
#17 0x0080240f in gdk_event_dispatch (source=0x9cea330, callback=0, user_data=0x0)
    at /build/buildd/gtk+2.0-2.21.7/gdk/x11/gdkevents-x11.c:2371
#18 0x00ae0015 in g_main_dispatch (context=0x9cea400) at /build/buildd/glib2.0-2.25.15/glib/gmain.c:2119
#19 g_main_context_dispatch (context=0x9cea400) at /build/buildd/glib2.0-2.25.15/glib/gmain.c:2672
#20 0x00ae3e28 in g_main_context_iterate (context=0x9cea400, block=<value optimized out>, dispatch=1, self=0x9cbb890)
    at /build/buildd/glib2.0-2.25.15/glib/gmain.c:2750
#21 0x00ae4367 in g_main_loop_run (loop=0x9d270f0) at /build/buildd/glib2.0-2.25.15/glib/gmain.c:2958
#22 0x00d00749 in IA__gtk_main () at /build/buildd/gtk+2.0-2.21.7/gtk/gtkmain.c:1237
#23 0x0805a20d in main (argc=1, argv=0xbff3aff4) at terminal.c:592