Segmentation fault

Sebastian Held sebastian.held at gmx.de
Wed Apr 22 04:26:44 EDT 2009


Am Mittwoch 22 April 2009 09:53:21 schrieb Dave Hardman:
> 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
>
> Sebastian,
> 	The Makefile.local now contains two lines:
> 		CONFIGURE_ARGS+=--enable-debug
> 		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.
>
> Dave
>
>
> 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


Please try to apply the attached patch from Jonathan Kamens.

Sebastian

-------------- next part --------------
A non-text attachment was scrubbed...
Name: gnucash-2.2.7-crash.patch
Type: text/x-patch
Size: 1144 bytes
Desc: not available
URL: <http://lists.gnucash.org/pipermail/gnucash-devel/attachments/20090422/e6fca39f/attachment.bin>


More information about the gnucash-devel mailing list