Bug#475174: gnome-terminal: Profile editing crashes

Sam Morris sam at robots.org.uk
Wed Nov 26 17:01:24 UTC 2008


Attached is a useful backtrace. ;)

The affected line appears to crash because 'screen->priv->term->style'
is equal to zero.

-- 
Sam Morris <sam at robots.org.uk>
-------------- next part --------------
(gdb) bt full
#0  0x00000000004240e8 in update_color_scheme (screen=0x3825810)
    at terminal-screen.c:812
	fg = {pixel = 89, red = 0, green = 0, blue = 17461}
	bg = {pixel = 1, red = 0, green = 0, blue = 49152}
	palette = {{pixel = 65859936, red = 0, green = 0, blue = 0}, {
    pixel = 0, red = 43690, green = 0, blue = 0}, {pixel = 91912176, red = 0, 
    green = 43690, blue = 0}, {pixel = 0, red = 43690, green = 21845, 
    blue = 0}, {pixel = 64, red = 0, green = 0, blue = 43690}, {pixel = 306, 
    red = 43690, green = 0, blue = 43690}, {pixel = 65010320, red = 0, 
    green = 43690, blue = 43690}, {pixel = 0, red = 43690, green = 43690, 
    blue = 43690}, {pixel = 112, red = 21845, green = 21845, blue = 21845}, {
    pixel = 0, red = 65535, green = 21845, blue = 21845}, {pixel = 65491592, 
    red = 21845, green = 65535, blue = 21845}, {pixel = 0, red = 65535, 
    green = 65535, blue = 21845}, {pixel = 160, red = 21845, green = 21845, 
    blue = 65535}, {pixel = 0, red = 65535, green = 21845, blue = 65535}, {
    pixel = 33, red = 21845, green = 65535, blue = 65535}, {pixel = 32681, 
    red = 65535, green = 65535, blue = 65535}}
#1  0x00000000004247d1 in terminal_screen_reread_profile (screen=0x3825810)
    at terminal-screen.c:631
	profile = (TerminalProfile *) 0x1def300
	term = (GtkWidget *) 0x396f9e0
	bg_type = <value optimized out>
	window = <value optimized out>
#2  0x00007fa9049d60fd in IA__g_closure_invoke (closure=0x3960590, 
    return_value=0x0, n_param_values=2, param_values=0x3e676d0, 
    invocation_hint=0x7fff0f8703f0)
    at /build/buildd/glib2.0-2.18.2/gobject/gclosure.c:767
	marshal = (
    GClosureMarshal) 0x40e248 <g_cclosure_marshal_VOID__POINTER at plt>
	marshal_data = (gpointer) 0x0
	__PRETTY_FUNCTION__ = "IA__g_closure_invoke"
#3  0x00007fa9049e9ced in signal_emit_unlocked_R (node=0x1dffe20, detail=0, 
    instance=0x1def300, emission_return=0x0, instance_and_params=0x3e676d0)
    at /build/buildd/glib2.0-2.18.2/gobject/gsignal.c:3244
	tmp = <value optimized out>
	handler = (Handler *) 0x372ee10
	accumulator = (SignalAccumulator *) 0x0
	emission = {next = 0x0, instance = 0x1def300, ihint = {signal_id = 29, 
    detail = 0, run_type = G_SIGNAL_RUN_FIRST}, state = EMISSION_RUN, 
  chain_type = 4}
	class_closure = (GClosure *) 0x1df97d0
	handler_list = (Handler *) 0x2526430
	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 = 29
	max_sequential_handler_number = 19876
	return_value_altered = 1
#4  0x00007fa9049eb1b8 in IA__g_signal_emit_valist (instance=0x1def300, 
    signal_id=<value optimized out>, detail=0, var_args=0x7fff0f8705d0)
    at /build/buildd/glib2.0-2.18.2/gobject/gsignal.c:2977
	signal_return_type = 4
	param_values = (GValue *) 0x3e676e8
	node = (SignalNode *) 0x1dffe20
	i = 1
	n_params = 1
	__PRETTY_FUNCTION__ = "IA__g_signal_emit_valist"
#5  0x00007fa9049eb6b3 in IA__g_signal_emit (instance=0x3825890, signal_id=0, 
    detail=0) at /build/buildd/glib2.0-2.18.2/gobject/gsignal.c:3034
	var_args = {{gp_offset = 32, fp_offset = 48, 
    overflow_arg_area = 0x7fff0f8706b0, reg_save_area = 0x7fff0f8705f0}}
#6  0x000000000041e0d4 in emit_changed (profile=0x1def300, mask=0x7fff0f8706e0)
    at terminal-profile.c:2425
No locals.
#7  0x00000000004226e2 in profile_change_notify (client=<value optimized out>, 
    cnxn_id=<value optimized out>, entry=0x3dfdb20, 
    user_data=<value optimized out>) at terminal-profile.c:2093
	profile = (TerminalProfile *) 0x1def300
	key = 0x7fa904c0dd28 ""
	val = (GConfValue *) 0x1dfffa0
	old_locked = <value optimized out>
	mask = {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 = 1, 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  0x00007fa906f77f4b in gconf_listeners_notify (listeners=0x1d8d4e0, 
    all_above=0x3e613c0 "/apps/gnome-terminal/profiles/Default/palette", 
    callback=0x7fa906f88f10 <notify_listeners_callback>, 
    user_data=0x7fff0f870790) at gconf-listeners.c:590
No locals.
#9  0x00007fa906f85cc0 in notify_one_entry (client=0x1d71b00, entry=0x3dfdb20)
    at gconf-client.c:2410
	cae = {client = 0x1d71b00, entry = 0x3dfdb20}
#10 0x00007fa906f85d8c in notify_idle_callback (data=<value optimized out>)
    at gconf-client.c:2450
	client = (GConfClient *) 0x1d71b00
#11 0x00007fa90473facb in IA__g_main_context_dispatch (context=0x1d79520)
    at /build/buildd/glib2.0-2.18.2/glib/gmain.c:2144
No locals.
#12 0x00007fa90474328d in g_main_context_iterate (context=0x1d79520, block=1, 
    dispatch=1, self=<value optimized out>)
    at /build/buildd/glib2.0-2.18.2/glib/gmain.c:2778
	max_priority = 200
	timeout = 0
	some_ready = 1
	nfds = 27
	allocated_nfds = <value optimized out>
	fds = (GPollFD *) 0x3ee4c20
	__PRETTY_FUNCTION__ = "g_main_context_iterate"
#13 0x00007fa9047437bd in IA__g_main_loop_run (loop=0x1d8d930)
    at /build/buildd/glib2.0-2.18.2/glib/gmain.c:2986
	self = (GThread *) 0x1d41800
	__PRETTY_FUNCTION__ = "IA__g_main_loop_run"
#14 0x00007fa905e62317 in IA__gtk_main ()
    at /scratch/build-area/gtk+2.0-2.14.4/gtk/gtkmain.c:1200
	tmp_list = (GList *) 0x7fff0f870a50
	functions = (GList *) 0x0
	init = (GtkInitFunction *) 0x1dcf800
	loop = <value optimized out>
#15 0x000000000041ad9e in main (argc=1, argv=<value optimized out>)
    at terminal.c:1335
	err = (GError *) 0x0
	context = <value optimized out>
	i = <value optimized out>
	argc_copy = 7
	startup_id = <value optimized out>
	display_name = <value optimized out>
	display = <value optimized out>
	sm_client = <value optimized out>
	parsing_results = (OptionParsingResults *) 0x1d3f400
	__PRETTY_FUNCTION__ = "main"

(gdb) print screen->priv->term->style
$4 = (GtkStyle *) 0x0



More information about the pkg-gnome-maintainers mailing list