gnome-terminal crashed with SIGSEGV in g_closure_invoke()
Submitted by Pedro Villavicencio
Link to original bug (#518691)
Description
This bug has been filed here:
https://bugs.edge.launchpad.net/ubuntu/+source/gnome-terminal/+bug/195325
"I was using irssi inside screen, and wanted to change the colours of gnome-terminal I had a custom colour design before (The installation of hardy heron was to format the root / partition and keep the /home partition intact)
Well I right-clicked and selected "edit current profile", then "colors" and clicked where it said "custom" next to built-in schemes. Then selected "green on black" and it crashed.
I could reproduce the bug once or twice by selecting custom colours, but it doesn't happen always"
".
Thread 3 (process 29603):
`#0` 0x00007f00c28fc5cb in read () from /lib/libpthread.so.0
`#1` 0x00007f00c305630d in child_watch_helper_thread (data=<value optimized out>)
at /build/buildd/glib2.0-2.15.5/glib/gmain.c:3909
b = "B", '\0' <repeats 18 times>
list = (GSList *) 0x7f00c28f8dd0
`#2` 0x00007f00c307b3f4 in g_thread_create_proxy (data=0xe05140) at /build/buildd/glib2.0-2.15.5/glib/gthread.c:635
__PRETTY_FUNCTION__ = "g_thread_create_proxy"
`#3` 0x00007f00c28f53f7 in start_thread () from /lib/libpthread.so.0
`#4` 0x00007f00c266495d in clone () from /lib/libc.so.6
`#5` 0x0000000000000000 in ?? ()
.
Thread 2 (process 32354):
`#0` 0x00007f00c28f9e1d in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
`#1` 0x00007f00bfa1d619 in g_cond_timed_wait_posix_impl (cond=0x7f00b002c024, entered_mutex=0x0, abs_time=<value optimized out>)
at /build/buildd/glib2.0-2.15.5/gthread/gthread-posix.c:242
result = <value optimized out>
end_time = {tv_sec = 1203922349, tv_nsec = 845215000}
timed_out = <value optimized out>
__PRETTY_FUNCTION__ = "g_cond_timed_wait_posix_impl"
`#2` 0x00007f00c30341e3 in g_async_queue_pop_intern_unlocked (queue=0x6927b0, try=0, end_time=0x42fd6000)
at /build/buildd/glib2.0-2.15.5/glib/gasyncqueue.c:364
retval = <value optimized out>
__PRETTY_FUNCTION__ = "g_async_queue_pop_intern_unlocked"
`#3` 0x00007f00c30342f1 in IA__g_async_queue_timed_pop (queue=0x6927b0, end_time=0x42fd6000)
at /build/buildd/glib2.0-2.15.5/glib/gasyncqueue.c:490
retval = <value optimized out>
__PRETTY_FUNCTION__ = "IA__g_async_queue_timed_pop"
`#4` 0x00007f00c307cf18 in g_thread_pool_thread_proxy (data=<value optimized out>)
at /build/buildd/glib2.0-2.15.5/glib/gthreadpool.c:121
task = (gpointer) 0x0
pool = (GRealThreadPool *) 0x16fd450
`#5` 0x00007f00c307b3f4 in g_thread_create_proxy (data=0x1459460) at /build/buildd/glib2.0-2.15.5/glib/gthread.c:635
__PRETTY_FUNCTION__ = "g_thread_create_proxy"
`#6` 0x00007f00c28f53f7 in start_thread () from /lib/libpthread.so.0
`#7` 0x00007f00c266495d in clone () from /lib/libc.so.6
`#8` 0x0000000000000000 in ?? ()
.
Thread 1 (process 29599):
`#0` terminal_widget_skey_match_add (widget=<value optimized out>, regexp=0x436316 "s/key [0-9]* [-A-Za-z0-9]*", flavor=0)
at terminal-widget-vte.c:163
tag = -1
`#1` 0x0000000000424193 in terminal_screen_reread_profile (screen=0x8bc080) at terminal-screen.c:650
profile = (TerminalProfile *) 0x6bb740
term = (GtkWidget *) 0x8bb330
bg_type = <value optimized out>
window = <value optimized out>
`#2` 0x00007f00c32e8c1f in IA__g_closure_invoke (closure=0x8f4410, return_value=0x0, n_param_values=2,
param_values=0x7fffce260890, invocation_hint=0x7fffce260770) at /build/buildd/glib2.0-2.15.5/gobject/gclosure.c:490
marshal = (GClosureMarshal) 0x40e2e8 <g_cclosure_marshal_VOID__POINTER@plt>
marshal_data = (gpointer) 0x0
__PRETTY_FUNCTION__ = "IA__g_closure_invoke"
`#3` 0x00007f00c32fda92 in signal_emit_unlocked_R (node=0x6cdb30, detail=0, instance=0x6bb740, emission_return=0x0,
instance_and_params=0x7fffce260890) at /build/buildd/glib2.0-2.15.5/gobject/gsignal.c:2440
tmp = <value optimized out>
handler = (Handler *) 0x714010
accumulator = (SignalAccumulator *) 0x0
emission = {next = 0x0, instance = 0x6bb740, ihint = {signal_id = 28, detail = 0, run_type = G_SIGNAL_RUN_FIRST},
state = EMISSION_RUN, chain_type = 4}
class_closure = (GClosure *) 0x6ccdb0
handler_list = (Handler *) 0x70cf20
return_accu = (GValue *) 0x0
accu = {g_type = 0, data = {{v_int = 0, v_uint = 0, v_long = 0, v_ulong = 0, v_int64 = 0, v_uint64 = 0, v_float = 0,
v_double = 0, v_pointer = 0x0}, {v_int = 0, v_uint = 0, v_long = 0, v_ulong = 0, v_int64 = 0, v_uint64 = 0, v_float = 0,
v_double = 0, v_pointer = 0x0}}}
signal_id = 28
max_sequential_handler_number = 2878
return_value_altered = 1
`#4` 0x00007f00c32ff377 in IA__g_signal_emit_valist (instance=0x6bb740, signal_id=<value optimized out>, detail=0,
var_args=0x7fffce260b10) at /build/buildd/glib2.0-2.15.5/gobject/gsignal.c:2199
_cvalue = <value optimized out>
_flags = <value optimized out>
_value_type = <value optimized out>
_vtable = <value optimized out>
_cvalues = {{v_int = 2, v_long = 2, v_int64 = 2, v_double = 9.8813129168249309e-324, v_pointer = 0x2}, {
v_int = -836367712, v_long = 140736651987616, v_int64 = 140736651987616, v_double = 6.9533144857796253e-310,
v_pointer = 0x7fffce260aa0}, {v_int = -836367760, v_long = 140736651987568, v_int64 = 140736651987568,
v_double = 6.9533144857772538e-310, v_pointer = 0x7fffce260a70}, {v_int = -836367744, v_long = 140736651987584,
v_int64 = 140736651987584, v_double = 6.9533144857780443e-310, v_pointer = 0x7fffce260a80}, {v_int = 1, v_long = 1,
v_int64 = 1, v_double = 4.9406564584124654e-324, v_pointer = 0x1}, {v_int = -1023113135, v_long = 139641248581713,
v_int64 = 139641248581713, v_double = 6.8991943666602086e-310, v_pointer = 0x7f00c3048851}, {v_int = 18949984,
v_long = 18949984, v_int64 = 18949984, v_double = 9.3625360836412886e-317, v_pointer = 0x1212760}, {v_int = -1023113135,
v_long = 139641248581713, v_int64 = 139641248581713, v_double = 6.8991943666602086e-310, v_pointer = 0x7f00c3048851}}
_lcopy_format = <value optimized out>
_n_values = <value optimized out>
return_value = {g_type = 0, data = {{v_int = -836367520, v_uint = 3458599776, v_long = 140736651987808,
v_ulong = 140736651987808, v_int64 = 140736651987808, v_uint64 = 140736651987808, v_float = -696440832,
v_double = 6.9533144857891114e-310, v_pointer = 0x7fffce260b60}, {v_int = -836367252, v_uint = 3458600044,
v_long = 140736651988076, v_ulong = 140736651988076, v_int64 = 140736651988076, v_uint64 = 140736651988076,
v_float = -696457984, v_double = 6.9533144858023523e-310, v_pointer = 0x7fffce260c6c}}}
error = <value optimized out>
rtype = <value optimized out>
instance_and_params = (GValue *) 0x1
stack_values = {{g_type = 7133424, data = {{v_int = 7059264, v_uint = 7059264, v_long = 7059264, v_ulong = 7059264,
v_int64 = 7059264, v_uint64 = 7059264, v_float = 9.8921358e-39, v_double = 3.4877398273238614e-317,
v_pointer = 0x6bb740}, {v_int = 0, v_uint = 0, v_long = 0, v_ulong = 0, v_int64 = 0, v_uint64 = 0, v_float = 0,
v_double = 0, v_pointer = 0x0}}}, {g_type = 68, data = {{v_int = -836367344, v_uint = 3458599952,
v_long = 140736651987984, v_ulong = 140736651987984, v_int64 = 140736651987984, v_uint64 = 140736651987984,
v_float = -696452096, v_double = 6.9533144857978069e-310, v_pointer = 0x7fffce260c10}, {v_int = 0, v_uint = 0,
v_long = 0, v_ulong = 0, v_int64 = 0, v_uint64 = 0, v_float = 0, v_double = 0, v_pointer = 0x0}}}, {g_type = 20,
data = {{v_int = 20, v_uint = 20, v_long = 20, v_ulong = 20, v_int64 = 20, v_uint64 = 20, v_float = 2.80259693e-44,
v_double = 9.8813129168249309e-323, v_pointer = 0x14}, {v_int = -1030786032, v_uint = 3264181264,
v_long = 139641240908816, v_ulong = 139641240908816, v_int64 = 139641240908816, v_uint64 = 139641240908816,
v_float = -71.7266846, v_double = 6.8991939875687275e-310, v_pointer = 0x7f00c28f7410}}}, {g_type = 140736651987936,
data = {{v_int = 6952448, v_uint = 6952448, v_long = 6952448, v_ulong = 6952448, v_int64 = 6952448, v_uint64 = 6952448,
v_float = 9.74245471e-39, v_double = 3.4349657112976829e-317, v_pointer = 0x6a1600}, {v_int = -1020268886,
v_uint = 3274698410, v_long = 139641251425962, v_ulong = 139641251425962, v_int64 = 139641251425962,
v_uint64 = 139641251425962, v_float = -175.932281, v_double = 6.8991945071847805e-310, v_pointer = 0x7f00c32feeaa}}}, {
g_type = 140736651987328, data = {{v_int = -836368000, v_uint = 3458599296, v_long = 140736651987328,
v_ulong = 140736651987328, v_int64 = 140736651987328, v_uint64 = 140736651987328, v_float = -696410112,
v_double = 6.9533144857653962e-310, v_pointer = 0x7fffce260980}, {v_int = 2, v_uint = 2, v_long = 2, v_ulong = 2,
v_int64 = 2, v_uint64 = 2, v_float = 2.80259693e-45, v_double = 9.8813129168249309e-324, v_pointer = 0x2}}}, {
g_type = 0, data = {{v_int = 6789840, v_uint = 6789840, v_long = 6789840, v_ulong = 6789840, v_int64 = 6789840,
v_uint64 = 6789840, v_float = 9.51459237e-39, v_double = 3.3546266847587294e-317, v_pointer = 0x679ad0}, {
v_int = -836367808, v_uint = 3458599488, v_long = 140736651987520, v_ulong = 140736651987520,
v_int64 = 140736651987520, v_uint64 = 140736651987520, v_float = -696422400, v_double = 6.9533144857748823e-310,
v_pointer = 0x7fffce260a40}}}, {g_type = 140736651987520, data = {{v_int = 6789864, v_uint = 6789864, v_long = 6789864,
v_ulong = 6789864, v_int64 = 6789864, v_uint64 = 6789864, v_float = 9.514626e-39, v_double = 3.3546385423342296e-317,
v_pointer = 0x679ae8}, {v_int = 0, v_uint = 0, v_long = 0, v_ulong = 0, v_int64 = 0, v_uint64 = 0, v_float = 0,
v_double = 0, v_pointer = 0x0}}}, {g_type = 139641152055595, data = {{v_int = 6789840, v_uint = 6789840,
v_long = 6789840, v_ulong = 6789840, v_int64 = 6789840, v_uint64 = 6789840, v_float = 9.51459237e-39,
v_double = 3.3546266847587294e-317, v_pointer = 0x679ad0}, {v_int = 6789840, v_uint = 6789840, v_long = 6789840,
v_ulong = 6789840, v_int64 = 6789840, v_uint64 = 6789840, v_float = 9.51459237e-39, v_double = 3.3546266847587294e-317,
v_pointer = 0x679ad0}}}, {g_type = 140736651987520, data = {{v_int = -836367808, v_uint = 3458599488,
v_long = 140736651987520, v_ulong = 140736651987520, v_int64 = 140736651987520, v_uint64 = 140736651987520,
v_float = -696422400, v_double = 6.9533144857748823e-310, v_pointer = 0x7fffce260a40}, {v_int = -836367760,
v_uint = 3458599536, v_long = 140736651987568, v_ulong = 140736651987568, v_int64 = 140736651987568,
v_uint64 = 140736651987568, v_float = -696425472, v_double = 6.9533144857772538e-310, v_pointer = 0x7fffce260a70}}}, {
g_type = 139641152059216, data = {{v_int = 1, v_uint = 1, v_long = 1, v_ulong = 1, v_int64 = 1, v_uint64 = 1,
v_float = 1.40129846e-45, v_double = 4.9406564584124654e-324, v_pointer = 0x1}, {v_int = 6789840, v_uint = 6789840,
v_long = 6789840, v_ulong = 6789840, v_int64 = 6789840, v_uint64 = 6789840, v_float = 9.51459237e-39,
v_double = 3.3546266847587294e-317, v_pointer = 0x679ad0}}}, {g_type = 0, data = {{v_int = 0, v_uint = 0,
v_long = 140733193388032, v_ulong = 140733193388032, v_int64 = 140733193388032, v_uint64 = 140733193388032,
v_float = 0, v_double = 6.9531436082559078e-310, v_pointer = 0x7fff00000000}, {v_int = -836367792, v_uint = 3458599504,
v_long = 140736651987536, v_ulong = 140736651987536, v_int64 = 140736651987536, v_uint64 = 140736651987536,
v_float = -696423424, v_double = 6.9533144857756728e-310, v_pointer = 0x7fffce260a50}}}, {g_type = 3175331664, data = {{
v_int = 1, v_uint = 1, v_long = 1, v_ulong = 1, v_int64 = 1, v_uint64 = 1, v_float = 1.40129846e-45,
v_double = 4.9406564584124654e-324, v_pointer = 0x1}, {v_int = 0, v_uint = 0, v_long = 0, v_ulong = 0, v_int64 = 0,
v_uint64 = 0, v_float = 0, v_double = 0, v_pointer = 0x0}}}, {g_type = 140736651987520, data = {{v_int = -836367808,
v_uint = 3458599488, v_long = 140736651987520, v_ulong = 140736651987520, v_int64 = 140736651987520,
v_uint64 = 140736651987520, v_float = -696422400, v_double = 6.9533144857748823e-310, v_pointer = 0x7fffce260a40}, {
v_int = 2, v_uint = 2, v_long = 2, v_ulong = 2, v_int64 = 2, v_uint64 = 2, v_float = 2.80259693e-45,
v_double = 9.8813129168249309e-324, v_pointer = 0x2}}}, {g_type = 0, data = {{v_int = 6786576, v_uint = 6786576,
v_long = 6786576, v_ulong = 6786576, v_int64 = 6786576, v_uint64 = 6786576, v_float = 9.51001853e-39,
v_double = 3.3530140544907036e-317, v_pointer = 0x678e10}, {v_int = -1028296422, v_uint = 3266670874,
v_long = 139641243398426, v_ulong = 139641243398426, v_int64 = 139641243398426, v_uint64 = 139641243398426,
v_float = -90.7209015, v_double = 6.8991941105718047e-310, v_pointer = 0x7f00c2b5711a}}}, {g_type = 140736651987568,
data = {{v_int = -836367760, v_uint = 3458599536, v_long = 140736651987568, v_ulong = 140736651987568,
v_int64 = 140736651987568, v_uint64 = 140736651987568, v_float = -696425472, v_double = 6.9533144857772538e-310,
v_pointer = 0x7fffce260a70}, {v_int = -836367808, v_uint = 3458599488, v_long = 140736651987520,
v_ulong = 140736651987520, v_int64 = 140736651987520, v_uint64 = 140736651987520, v_float = -696422400,
v_double = 6.9533144857748823e-310, v_pointer = 0x7fffce260a40}}}, {g_type = 140736651987536, data = {{
v_int = -836367776, v_uint = 3458599520, v_long = 140736651987552, v_ulong = 140736651987552,
v_int64 = 140736651987552, v_uint64 = 140736651987552, v_float = -696424448, v_double = 6.9533144857764633e-310,
v_pointer = 0x7fffce260a60}, {v_int = -836367824, v_uint = 3458599472, v_long = 140736651987504,
v_ulong = 140736651987504, v_int64 = 140736651987504, v_uint64 = 140736651987504, v_float = -696421376,
v_double = 6.9533144857740918e-310, v_pointer = 0x7fffce260a30}}}}
free_me = (GValue *) 0x0
signal_return_type = 4
param_values = (GValue *) 0x7fffce2608a8
node = (SignalNode *) 0x6cdb30
i = 1
n_params = 1
__PRETTY_FUNCTION__ = "IA__g_signal_emit_valist"
`#5` 0x00007f00c32ff833 in IA__g_signal_emit (instance=0x7f00c28ea9a0, signal_id=8, detail=24)
at /build/buildd/glib2.0-2.15.5/gobject/gsignal.c:2243
var_args = {{gp_offset = 32, fp_offset = 48, overflow_arg_area = 0x7fffce260bf0, reg_save_area = 0x7fffce260b30}}
`#6` 0x000000000041dcd4 in emit_changed (profile=0x6bb740, mask=0x7fffce260c10) at terminal-profile.c:2425
No locals.
`#7` 0x0000000000420f6d in profile_change_notify (client=<value optimized out>, cnxn_id=<value optimized out>, entry=0x1aa0b00,
user_data=<value optimized out>) at terminal-profile.c:2093
setting = <value optimized out>
profile = (TerminalProfile *) 0x6bb740
key = <value optimized out>
val = (GConfValue *) 0x6cdd50
old_locked = {visible_name = 0, default_show_menubar = 0, foreground_color = 0, background_color = 0, title = 0,
title_mode = 0, allow_bold = 0, silent_bell = 0, word_chars = 0, scrollbar_position = 0, scrollback_lines = 0,
scroll_on_keystroke = 0, scroll_on_output = 0, exit_action = 0, login_shell = 0, update_records = 0, use_custom_command = 0,
custom_command = 0, icon_file = 0, is_default = 0, palette = 0, background_type = 0, background_image_file = 0,
scroll_background = 0, background_darkness = 0, backspace_binding = 0, delete_binding = 0, use_theme_colors = 0,
use_system_font = 0, no_aa_without_render = 0, font = 0}
mask = {visible_name = 0, default_show_menubar = 0, foreground_color = 1, background_color = 0, title = 0,
title_mode = 0, allow_bold = 0, silent_bell = 0, word_chars = 0, scrollbar_position = 0, scrollback_lines = 0,
scroll_on_keystroke = 0, scroll_on_output = 0, exit_action = 0, login_shell = 0, update_records = 0, use_custom_command = 0,
custom_command = 0, icon_file = 0, is_default = 0, palette = 0, background_type = 0, background_image_file = 0,
scroll_background = 0, background_darkness = 0, backspace_binding = 0, delete_binding = 0, use_theme_colors = 0,
use_system_font = 0, no_aa_without_render = 0, font = 0}
`#8` 0x00007f00c54f2627 in gconf_listeners_notify (listeners=0x6a2120,
all_above=0x17071c0 "/apps/gnome-terminal/profiles/Default/foreground_color",
callback=0x7f00c54ff250 <notify_listeners_callback>, user_data=0x7fffce260cc0) at gconf-listeners.c:589
No locals.
`#9` 0x00007f00c54ff660 in notify_one_entry (client=0x68c860, entry=0x1aa0b00) at gconf-client.c:2409
cae = {client = 0x68c860, entry = 0x1aa0b00}
`#10` 0x00007f00c54ff722 in notify_idle_callback (data=<value optimized out>) at gconf-client.c:2449
client = (GConfClient *) 0x68c860
`#11` 0x00007f00c3055384 in IA__g_main_context_dispatch (context=0x691dd0) at /build/buildd/glib2.0-2.15.5/glib/gmain.c:2064
No locals.
`#12` 0x00007f00c3058695 in g_main_context_iterate (context=0x691dd0, block=1, dispatch=1, self=<value optimized out>)
at /build/buildd/glib2.0-2.15.5/glib/gmain.c:2697
got_ownership = <value optimized out>
max_priority = 200
timeout = 0
some_ready = 1
nfds = <value optimized out>
allocated_nfds = <value optimized out>
fds = (GPollFD *) 0xde2c00
__PRETTY_FUNCTION__ = "g_main_context_iterate"
`#13` 0x00007f00c30589b5 in IA__g_main_loop_run (loop=0x6a2670) at /build/buildd/glib2.0-2.15.5/glib/gmain.c:2905
got_ownership = -1030786032
self = (GThread *) 0x659430
__PRETTY_FUNCTION__ = "IA__g_main_loop_run"
`#14` 0x00007f00c4204d63 in IA__gtk_main () at /build/buildd/gtk+2.0-2.12.8/gtk/gtkmain.c:1163
tmp_list = (GList *) 0x7fffce260fd0
functions = (GList *) 0x0
init = (GtkInitFunction *) 0x6a3290
loop = (GMainLoop *) 0x6a2670
`#15` 0x000000000041a9a0 in main (argc=1, argv=<value optimized out>) at terminal.c:1338
cwd = <value optimized out>
err = (GError *) 0x0
context = <value optimized out>
i = <value optimized out>
argc_copy = 7
argv_copy = <value optimized out>
startup_id = <value optimized out>
display_name = <value optimized out>
display = <value optimized out>
sm_client = (GnomeClient *) 0x66a830
parsing_results = (OptionParsingResults *) 0x657c00
__PRETTY_FUNCTION__ = "main"
`#16` 0x00007f00c25ab1c4 in __libc_start_main () from /lib/libc.so.6
`#17` 0x0000000000410829 in _start ()"
Version: 2.21.x
Resolution: RESOLVED OBSOLETE