Segmentation fault

Sebastian Held sebastian.held at gmx.de
Wed Apr 22 01:42:31 EDT 2009


> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.


Am Wednesday 22 April 2009 06:11:34 schrieben Sie:
>On Tue, Apr 21, 2009 at 01:56:44PM +0200, Sebastian Held wrote:
>> >Program received signal SIGSEGV, Segmentation fault.
>> >[Switching to Thread 0x808102180 (LWP 100227)]
>> >gnucash_sheet_styles_set_dimensions (sheet=0x80bd340c0,
>> > default_width=680) at gnucash-style.c:177
>> >177  gnucash-style.c: No such file or directory.
>> >     in gnucash-style.c
>>
>> Function gnucash_sheet_styles_set_dimensions is located at lines 501, not
>> 177 ...
>>
>> >(gdb) bt
>> >#0  gnucash_sheet_styles_set_dimensions (sheet=0x80bd340c0,
>> > default_width=680) at gnucash-style.c:177
>> >#1  0x0000000800bc6aab in gnc_table_init_gui (widget=Variable "widget" is
>> > not available. ) at table-gnome.c:189
>>
>> gnc_table_init_gui() is at table-gnome.c:189, but invokes
>> gnucash_sheet_compile_styles() from there
>>
>>
>> Is your gnucash-2.2.7 patched?
>>
>> Sebastian
>
>There does not appear to be any patches applied.
>
>I extracted the source and gnucash_sheet_styles_set_dimensions is
>at line 501 in gnucash_style.c
>
>The distribution info is:
>MD5 (gnucash-2.2.7.tar.bz2) = 0f3f324c274b136070b769aa10591ccf
>SHA256 (gnucash-2.2.7.tar.bz2) =
> aaa558e76427b7a990287089a6e0e5ecb0f4404e0343a7200e1588f60ffab1e8 SIZE
> (gnucash-2.2.7.tar.bz2) = 7362491
>
>The ports makefile is attached. None of the options were used. I
>added Makefile.local with one line enabling debug.
>
>Dave

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


More information about the gnucash-devel mailing list