gnome-terminal crashes on multi-screen setup
Submitted by tom
Link to original bug (#492856)
Description
Steps to reproduce: two separate screens (no xinerama), starting g-t sometimes makes it crash and take other instances of g-t with it. Reproducible, but it takes a few tries. Seems strongly related to multi-screen setups, is often happens if I have focus on a window on one screen and then move the mouse to the other screen and then start g-t (through a compiz command bound to a key).
Stack trace:
(gdb) r --sync
Starting program: /usr/bin/gnome-terminal --sync
The program 'gnome-terminal' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadMatch (invalid parameter attributes)'.
(Details: serial 131198 error_code 8 request_code 1 minor_code 0)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
** (gnome-terminal:29704): WARNING **: FIXME: wait for completion unimplemented
Program received signal SIGPIPE, Broken pipe.
0x00002b83b7a0f566 in ?? () from /lib/libc.so.6
(gdb) bt
`#0` 0x00002b83b7a0f566 in ?? () from /lib/libc.so.6
`#1` 0x00002b83b7a0f61c in writev () from /lib/libc.so.6
`#2` 0x00002b83b52bbc82 in write_data_T (cnx=0xe22aa0, qw=0x7ffffacf1650) at linc-connection.c:982
`#3` 0x00002b83b52bc4b8 in link_connection_writev (cnx=0xe22aa0, vecs=0x6a0cc0, nvecs=1, opt_write_opts=0x0) at linc-connection.c:1177
`#4` 0x00002b83b52a0c36 in giop_send_buffer_write (buf=0x6a0c00, cnx=0xe22aa0, blocking=1) at giop-send-buffer.c:464
`#5` 0x00002b83b529e903 in giop_connection_close (cnx=0xe22aa0) at giop-connection.c:52
`#6` 0x00002b83b529e943 in giop_connection_dispose (obj=0xe22aa0) at giop-connection.c:66
`#7` 0x00002b83b7151e03 in IA__g_object_run_dispose (object=0xe22aa0) at gobject.c:573
`#8` 0x00002b83b52bb6a7 in link_connections_close () at linc-connection.c:1588
`#9` 0x00002b83b529ee98 in giop_shutdown () at giop.c:637
`#10` 0x00002b83b52a2b7d in CORBA_ORB_shutdown (orb=0x695fc0, wait_for_completion=1 '\001', ev=0x7ffffacf17a0) at corba-orb.c:1239
`#11` 0x00002b83b52a2c6c in CORBA_ORB_destroy (orb=0x22, ev=0x7ffffacf17a0) at corba-orb.c:1258
`#12` 0x00002b83b52a4004 in shutdown_orb () at corba-orb.c:307
`#13` 0x00002b83b79876ad in exit () from /lib/libc.so.6
`#14` 0x00002b83b29f1b54 in gdk_x_error (display=<value optimized out>, error=<value optimized out>) at gdkmain-x11.c:645
`#15` 0x00002b83b626425d in _XError (dpy=0x667140, rep=0x9e97d0) at XlibInt.c:2905
`#16` 0x00002b83b626ad43 in process_responses (dpy=0x667140, wait_for_first_event=0, current_error=0x7ffffacf19f0, current_request=131199) at xcb_io.c:138
`#17` 0x00002b83b626b11c in _XReply (dpy=0x667140, rep=0x7ffffacf1a30, extra=0, discard=1) at xcb_io.c:368
`#18` 0x00002b83b62601ec in XSync (dpy=0x667140, discard=0) at Sync.c:48
`#19` 0x00002b83b6260370 in _XSyncFunction (dpy=0x22) at Synchro.c:37
`#20` 0x00002b83b626b395 in _XIDHandler (dpy=0x667140) at xcb_io.c:275
`#21` 0x00002b83b6262796 in XCreateWindow (dpy=0x667140, parent=<value optimized out>, x=0, y=0, width=657, height=<value optimized out>, borderWidth=0, depth=32, class=1, visual=0x670f58, valuemask=1, attributes=0x7ffffacf1b60) at Window.c:139
`#22` 0x00002b83b2a0000b in IA__gdk_window_new (parent=0x6800a0, attributes=0x7ffffacf1c30, attributes_mask=738) at gdkwindow-x11.c:895
`#23` 0x00002b83b244b680 in gtk_window_realize (widget=0x6e4900) at gtkwindow.c:4581
`#24` 0x00002b83b715ba55 in IA__g_cclosure_marshal_VOID__VOID (closure=0x6d37b0, return_value=<value optimized out>, n_param_values=<value optimized out>, param_values=<value optimized out>, invocation_hint=<value optimized out>, marshal_data=0x2b83b244b3ed)
at gmarshal.c:77
`#25` 0x00002b83b714e420 in g_type_class_meta_marshal (closure=0x6d37b0, return_value=0x0, n_param_values=1, param_values=0x7ffffacf20d0, invocation_hint=0x7ffffacf1f50, marshal_data=0xe0) at gclosure.c:567
`#26` 0x00002b83b714fde2 in IA__g_closure_invoke (closure=0x6d37b0, return_value=0x0, n_param_values=1, param_values=0x7ffffacf20d0, invocation_hint=0x7ffffacf1f50) at gclosure.c:490
`#27` 0x00002b83b716347b in signal_emit_unlocked_R (node=0x6ccb00, detail=0, instance=0x6e4900, emission_return=0x0, instance_and_params=0x7ffffacf20d0) at gsignal.c:2370
`#28` 0x00002b83b7164bd4 in IA__g_signal_emit_valist (instance=0x6e4900, signal_id=<value optimized out>, detail=0, var_args=0x7ffffacf2290) at gsignal.c:2199
`#29` 0x00002b83b716517d in IA__g_signal_emit (instance=0x22, signal_id=6950080, detail=1) at gsignal.c:2243
`#30` 0x00002b83b243d28e in IA__gtk_widget_realize (widget=0x6e4900) at gtkwidget.c:3256
`#31` 0x00002b83b243d26e in IA__gtk_widget_realize (widget=0xf1fd10) at gtkwidget.c:3252
`#32` 0x00002b83b243d26e in IA__gtk_widget_realize (widget=0x6efc20) at gtkwidget.c:3252
`#33` 0x00002b83b243d26e in IA__gtk_widget_realize (widget=0xf1fb10) at gtkwidget.c:3252
`#34` 0x00002b83b243d26e in IA__gtk_widget_realize (widget=0x9f8ba0) at gtkwidget.c:3252
`#35` 0x00002b83b243d26e in IA__gtk_widget_realize (widget=0xc18800) at gtkwidget.c:3252
`#36` 0x000000000042ddc9 in notebook_tab_added_callback (notebook=<value optimized out>, screen=0xf1fb10, window=0x6e4900) at terminal-window.c:1823
`#37` 0x00002b83b715b0e1 in IA__g_cclosure_marshal_VOID__OBJECT (closure=0x1060170, return_value=<value optimized out>, n_param_values=<value optimized out>, param_values=0x7ffffacf2840, invocation_hint=<value optimized out>, marshal_data=0x42dc76)
at gmarshal.c:636
`#38` 0x00002b83b714fde2 in IA__g_closure_invoke (closure=0x1060170, return_value=0x0, n_param_values=2, param_values=0x7ffffacf2840, invocation_hint=0x7ffffacf26c0) at gclosure.c:490
`#39` 0x00002b83b7163fea in signal_emit_unlocked_R (node=0x6edf40, detail=0, instance=0x6efc20, emission_return=0x0, instance_and_params=0x7ffffacf2840) at gsignal.c:2510
`#40` 0x00002b83b7164bd4 in IA__g_signal_emit_valist (instance=0x6efc20, signal_id=<value optimized out>, detail=0, var_args=0x7ffffacf2a00) at gsignal.c:2199
`#41` 0x00002b83b716517d in IA__g_signal_emit (instance=0x22, signal_id=6950080, detail=1) at gsignal.c:2243
`#42` 0x000000000042e8c6 in terminal_notebook_add_tab (nb=0x6efc20, screen=0xf1fb10, position=-1, jump_to=0) at terminal-notebook.c:846
`#43` 0x000000000042b269 in terminal_window_add_screen (window=0x6e4900, screen=0xf1fb10) at terminal-window.c:1470
`#44` 0x00000000004194a0 in terminal_app_new_terminal (app=0x6784a0, profile=0x6c0300, window=0x6e4900, screen=0xf1fb10, force_menubar_state=0, forced_menubar_state=0, start_fullscreen=0, override_command=0x0, geometry=0x0, title=0x0,
working_dir=0x1064710 "/home/tomc", role=0x0, zoom=1, startup_id=0x128fd00 "_TIME452158473", display_name=0x125f7b0 ":0.1", screen_number=1) at terminal.c:1969
`#45` 0x0000000000419c3b in new_terminal_with_options (results=0x125f760) at terminal.c:1433
`#46` 0x000000000041a0e7 in handle_new_terminal_events () at terminal.c:3722
`#47` 0x000000000041a25a in terminal_new_event (listener=<value optimized out>, event_name=<value optimized out>, any=<value optimized out>, ev=<value optimized out>, user_data=<value optimized out>) at terminal.c:3796
`#48` 0x00002b83b714fde2 in IA__g_closure_invoke (closure=0x6a39a0, return_value=0x7ffffacf2f60, n_param_values=4, param_values=0xc086d0, invocation_hint=0x0) at gclosure.c:490
`#49` 0x00002b83b10c444e in bonobo_closure_invoke_va_list () from /usr/lib/libbonobo-2.so.0
`#50` 0x00002b83b10c473d in bonobo_closure_invoke () from /usr/lib/libbonobo-2.so.0
`#51` 0x00002b83b10b2db9 in ?? () from /usr/lib/libbonobo-2.so.0
`#52` 0x00002b83b52b0c6a in ORBit_POAObject_invoke (pobj=<value optimized out>, ret=0x6a0cc0, args=0x1, ctx=0xffffffffffffffff, data=0xffffffffffffffe0, ev=0x1) at poa.c:1142
`#53` 0x00002b83b52b6585 in ORBit_OAObject_invoke (adaptor_obj=0x22, ret=0x6a0cc0, args=0x1, ctx=0xffffffffffffffff, data=0x1, ev=0x6a0cc0) at orbit-adaptor.c:338
`#54` 0x00002b83b52a56cb in ORBit_small_invoke_adaptor (adaptor_obj=0x6a4550, recv_buffer=0x1158520, m_data=0x2b83b12f1fe0, data=0x7ffffacf3280, ev=0x7ffffacf33a0) at orbit-small.c:844
`#55` 0x00002b83b52b4b00 in ORBit_POAObject_handle_request (pobj=0x6a4550, opname=0xa0884c "event", ret=0x0, args=0x0, ctx=0x0, recv_buffer=0x1158520, ev=0x7ffffacf33a0) at poa.c:1351
`#56` 0x00002b83b52b4de4 in ORBit_POAObject_invoke_incoming_request (pobj=0x6a4550, recv_buffer=0x1158520, opt_ev=0x7ffffacf33a0) at poa.c:1421
`#57` 0x00002b83b52b595c in ORBit_POA_handle_request (poa=0x6960c0, recv_buffer=0x1158520, objkey=0x1158540) at poa.c:1643
`#58` 0x00002b83b52b682c in ORBit_handle_request (orb=0x695fc0, recv_buffer=0x1158520) at orbit-adaptor.c:298
`#59` 0x00002b83b52a2590 in giop_connection_handle_input (lcnx=0xe22aa0) at giop-recv-buffer.c:1312
`#60` 0x00002b83b52bc305 in link_connection_io_handler (gioc=<value optimized out>, condition=17, data=<value optimized out>) at linc-connection.c:1408
`#61` 0x00002b83b52bead9 in link_source_dispatch (source=<value optimized out>, callback=0x2b83b52bc2b8 <link_connection_io_handler>, user_data=0xe22aa0) at linc-source.c:159
`#62` 0x00002b83b76bf526 in IA__g_main_context_dispatch (context=0x68acc0) at gmain.c:2061
---Type <return> to continue, or q <return> to quit---
`#63` 0x00002b83b76c234b in g_main_context_iterate (context=0x68acc0, block=1, dispatch=1, self=<value optimized out>) at gmain.c:2694
`#64` 0x00002b83b76c2658 in IA__g_main_loop_run (loop=0x68b630) at gmain.c:2898
`#65` 0x00002b83b232e8c6 in IA__gtk_main () at gtkmain.c:1146
`#66` 0x000000000041a9bf in main (argc=1, argv=0x7ffffacf3978) at terminal.c:1773
Other information:
Version: 2.18.x
Resolution: RESOLVED FIXED