Segmentation fault

Dave Hardman dave at
Wed Apr 22 03:53:21 EDT 2009

On Wed, Apr 22, 2009 at 07:42:31AM +0200, Sebastian Held wrote:
> Without synchronized debug information, it's hopeless to find the bug.
> The next step you can take is to set a breakpoint at table-gnome.c:189 and 
> step the program until the error occurs.
> Ah - stop it. The one-liner for enabling debug: did you disable optimization, 
> too?
> CFLAGS should not include "-O2", but include "-O0 -ggdb"
> Sebastian

	The Makefile.local now contains two lines: 
		CFLAGS+= -O0 -ggdb
	As before I opened a file, which opened with only the
accounts window, the program crashed when I selected an account (
or would have if I had'nt had gdb running).

And the backtrace follows. 


Script started on Wed Apr 22 17:40:09 2009
gnucash-env gdb gnucash-bin
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "amd64-marcel-freebsd"...(no debugging symbols found)...
(gdb) run --nofile
Starting program: /usr/local/bin/gnucash-bin --nofile
[New LWP 100211]
[New Thread 0x808202180 (LWP 100211)]
gnc.bin-Message: main: binreloc relocation support was disabled at configure time.
[New Thread 0x808202f00 (LWP 100133)]
Found Finance::Quote version 1.15

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x808202180 (LWP 100211)]
0x0000000800c0e28f in set_dimensions_pass_one (sheet=0x80be18060, cursor=0x808256700, 
    dimensions=0x80be14860) at gnucash-style.c:177
177     gnucash-style.c: No such file or directory.
        in gnucash-style.c
(gdb) bt
#0  0x0000000800c0e28f in set_dimensions_pass_one (sheet=0x80be18060, cursor=0x808256700, 
    dimensions=0x80be14860) at gnucash-style.c:177
#1  0x0000000800c0ebb2 in styles_recompute_layout_dimensions (sheet=0x80be18060, 
    default_width=680) at gnucash-style.c:493
#2  0x0000000800c0ec8e in gnucash_sheet_styles_set_dimensions (sheet=0x80be18060, 
    default_width=680) at gnucash-style.c:506
#3  0x0000000800c0f44d in gnucash_sheet_compile_styles (sheet=0x80be18060)
    at gnucash-style.c:668
#4  0x0000000800c108ce in gnc_table_init_gui (widget=0x80bd79e20, data=0x8085a0910)
    at table-gnome.c:189
#5  0x00000008009a1dda in gsr_create_table (gsr=0x808aaf1e0) at gnc-split-reg.c:387
#6  0x00000008009a1cce in gnc_split_reg_init2 (gsr=0x808aaf1e0) at gnc-split-reg.c:353
#7  0x00000008009a1be2 in gnc_split_reg_new (ld=0x80bda4240, parent=0x8085e0030, 
    numberOfLines=10, read_only=0) at gnc-split-reg.c:325
#8  0x0000000800999672 in gnc_plugin_page_register_create_widget (plugin_page=0x80bda32f0)
    at gnc-plugin-page-register.c:727
#9  0x00000008011ecdd2 in gnc_plugin_page_create_widget (plugin_page=0x80bda32f0)
    at gnc-plugin-page.c:151
#10 0x00000008011e31aa in gnc_main_window_open_page (window=0x8085e0030, page=0x80bda32f0)
    at gnc-main-window.c:2211
#11 0x00000008009914a5 in gppat_open_account_common (page=0x8095c2000, account=0x80852b930, 
    include_subs=0) at gnc-plugin-page-account-tree.c:672
#12 0x000000080099156b in gnc_plugin_page_account_tree_double_click_cb (treeview=0x8085b4000, 
    path=0x8095cda00, col=0x808aa8f00, page=0x8095c2000) at gnc-plugin-page-account-tree.c:685
#13 0x00000008072e36ff in g_closure_invoke () from /usr/local/lib/
#14 0x00000008072f71a7 in g_signal_parse_name () from /usr/local/lib/
#15 0x00000008072f8bf6 in g_signal_emit_valist () from /usr/local/lib/
#16 0x00000008072f8fb3 in g_signal_emit () from /usr/local/lib/
#17 0x000000080458a85b in gtk_tree_view_set_fixed_height_mode ()
   from /usr/local/lib/
#18 0x000000080449f44f in gtk_marshal_BOOLEAN__VOID () from /usr/local/lib/
#19 0x00000008072e36ff in g_closure_invoke () from /usr/local/lib/
#20 0x00000008072f7344 in g_signal_parse_name () from /usr/local/lib/
#21 0x00000008072f8907 in g_signal_emit_valist () from /usr/local/lib/
#22 0x00000008072f8fb3 in g_signal_emit () from /usr/local/lib/
#23 0x000000080459b5de in gtk_widget_class_list_style_properties ()
---Type <return> to continue, or q <return> to quit---
   from /usr/local/lib/
#24 0x00000008044984b2 in gtk_propagate_event () from /usr/local/lib/
#25 0x0000000804499545 in gtk_main_do_event () from /usr/local/lib/
#26 0x00000008048843cc in gdk_add_client_message_filter ()
   from /usr/local/lib/
#27 0x0000000807551e42 in g_main_context_dispatch () from /usr/local/lib/
#28 0x0000000807555086 in g_main_context_check () from /usr/local/lib/
#29 0x0000000807555347 in g_main_loop_run () from /usr/local/lib/
#30 0x0000000804499913 in gtk_main () from /usr/local/lib/
#31 0x00000008011d80f7 in gnc_ui_start_event_loop () at gnc-gnome-utils.c:450
#32 0x000000000040610f in _start ()
#33 0x0000000806cf0dcf in invoke_main_func () from /usr/local/lib/
#34 0x0000000806cc86fa in c_body () from /usr/local/lib/
#35 0x0000000806d2c2e5 in scm_c_catch () from /usr/local/lib/
#36 0x0000000806cc8aa1 in scm_i_with_continuation_barrier () from /usr/local/lib/
#37 0x0000000806cc8b40 in scm_c_with_continuation_barrier () from /usr/local/lib/
#38 0x0000000806d2b453 in scm_i_with_guile_and_parent () from /usr/local/lib/
#39 0x0000000806cf0d95 in scm_boot_guile () from /usr/local/lib/
#40 0x00000000004064b2 in main ()
(gdb) quit
The program is running.  Exit anyway? (y or n) y

Script done on Wed Apr 22 17:41:26 2009

More information about the gnucash-devel mailing list