[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gerbv crashes (was Re: gEDA-user: gerbv 1.0 on RH8)



I've forgotten to print the variable before.

Sorry :(

Igor


(gdb) up
#1  0x080543ec in cb_ok_project (widget=0x4218be10, data=0x429e1ff4)
at gerbv.c:847
847         screen.path = strncat(screen.path, "/", 1);
(gdb) print screen.path
$1 = 0x429e1ff4 "/tmp/morgan/"
(gdb)


On Sat, 5 Feb 2005 18:40:52 -0800, primorec <geda.mail@xxxxxxxxx> wrote:
> Here it is.
> 
> Regards
> 
> Igor
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x403bd3de in strcat () from /lib/libc.so.6
> (gdb) where
> #0  0x403bd3de in strcat () from /lib/libc.so.6
> #1  0x080543ec in cb_ok_project (widget=0x4218be10, data=0x429e1ff4)
> at gerbv.c:847
> #2  0x400d74d6 in gtk_marshal_NONE__NONE () from /usr/lib/libgtk-1.2.so.0
> #3  0x40113fa5 in gtk_handlers_run () from /usr/lib/libgtk-1.2.so.0
> #4  0x40112fbb in gtk_signal_real_emit () from /usr/lib/libgtk-1.2.so.0
> #5  0x401104ae in gtk_signal_emit () from /usr/lib/libgtk-1.2.so.0
> #6  0x4005cd2e in gtk_button_clicked () from /usr/lib/libgtk-1.2.so.0
> #7  0x4005ea0b in gtk_real_button_released () from /usr/lib/libgtk-1.2.so.0
> #8  0x400d74d6 in gtk_marshal_NONE__NONE () from /usr/lib/libgtk-1.2.so.0
> #9  0x40112ece in gtk_signal_real_emit () from /usr/lib/libgtk-1.2.so.0
> #10 0x401104ae in gtk_signal_emit () from /usr/lib/libgtk-1.2.so.0
> #11 0x4005cc1e in gtk_button_released () from /usr/lib/libgtk-1.2.so.0
> #12 0x4005e0a1 in gtk_button_button_release () from /usr/lib/libgtk-1.2.so.0
> #13 0x400d7106 in gtk_marshal_BOOL__POINTER () from /usr/lib/libgtk-1.2.so.0
> #14 0x40113000 in gtk_signal_real_emit () from /usr/lib/libgtk-1.2.so.0
> #15 0x401104ae in gtk_signal_emit () from /usr/lib/libgtk-1.2.so.0
> #16 0x40156346 in gtk_widget_event () from /usr/lib/libgtk-1.2.so.0
> #17 0x400d6f0f in gtk_propagate_event () from /usr/lib/libgtk-1.2.so.0
> #18 0x400d5c54 in gtk_main_do_event () from /usr/lib/libgtk-1.2.so.0
> #19 0x401a02d5 in gdk_event_dispatch () from /usr/lib/libgdk-1.2.so.0
> #20 0x401d597e in g_main_dispatch () from /usr/lib/libglib-1.2.so.0
> #21 0x401d5e59 in g_main_iterate () from /usr/lib/libglib-1.2.so.0
> #22 0x401d60f4 in g_main_run () from /usr/lib/libglib-1.2.so.0
> #23 0x400d56df in gtk_main () from /usr/lib/libgtk-1.2.so.0
> #24 0x08057f20 in main (argc=1, argv=0xbffff9e4) at gerbv.c:2792
> #25 0x4035f54d in __libc_start_main () from /lib/libc.so.6
> (gdb) up
> #1  0x080543ec in cb_ok_project (widget=0x4218be10, data=0x429e1ff4)
> at gerbv.c:847
> 847         screen.path = strncat(screen.path, "/", 1);
> (gdb) up
> #2  0x400d74d6 in gtk_marshal_NONE__NONE () from /usr/lib/libgtk-1.2.so.0
> (gdb) up
> #3  0x40113fa5 in gtk_handlers_run () from /usr/lib/libgtk-1.2.so.0
> (gdb) up
> #4  0x40112fbb in gtk_signal_real_emit () from /usr/lib/libgtk-1.2.so.0
> (gdb) up
> #5  0x401104ae in gtk_signal_emit () from /usr/lib/libgtk-1.2.so.0
> (gdb) up
> #6  0x4005cd2e in gtk_button_clicked () from /usr/lib/libgtk-1.2.so.0
> (gdb) up
> #7  0x4005ea0b in gtk_real_button_released () from /usr/lib/libgtk-1.2.so.0
> (gdb) up
> #8  0x400d74d6 in gtk_marshal_NONE__NONE () from /usr/lib/libgtk-1.2.so.0
> (gdb) up
> #9  0x40112ece in gtk_signal_real_emit () from /usr/lib/libgtk-1.2.so.0
> (gdb) up
> #10 0x401104ae in gtk_signal_emit () from /usr/lib/libgtk-1.2.so.0
> (gdb) up
> #11 0x4005cc1e in gtk_button_released () from /usr/lib/libgtk-1.2.so.0
> (gdb) up
> #12 0x4005e0a1 in gtk_button_button_release () from /usr/lib/libgtk-1.2.so.0
> (gdb) up
> #13 0x400d7106 in gtk_marshal_BOOL__POINTER () from /usr/lib/libgtk-1.2.so.0
> (gdb) up
> #14 0x40113000 in gtk_signal_real_emit () from /usr/lib/libgtk-1.2.so.0
> (gdb) up
> #15 0x401104ae in gtk_signal_emit () from /usr/lib/libgtk-1.2.so.0
> (gdb) up
> #16 0x40156346 in gtk_widget_event () from /usr/lib/libgtk-1.2.so.0
> (gdb) up
> #17 0x400d6f0f in gtk_propagate_event () from /usr/lib/libgtk-1.2.so.0
> (gdb) up
> #18 0x400d5c54 in gtk_main_do_event () from /usr/lib/libgtk-1.2.so.0
> (gdb) up
> #19 0x401a02d5 in gdk_event_dispatch () from /usr/lib/libgdk-1.2.so.0
> (gdb) up
> #20 0x401d597e in g_main_dispatch () from /usr/lib/libglib-1.2.so.0
> (gdb) up
> #21 0x401d5e59 in g_main_iterate () from /usr/lib/libglib-1.2.so.0
> (gdb) up
> #22 0x401d60f4 in g_main_run () from /usr/lib/libglib-1.2.so.0
> (gdb) up
> #23 0x400d56df in gtk_main () from /usr/lib/libgtk-1.2.so.0
> (gdb) up
> #24 0x08057f20 in main (argc=1, argv=0xbffff9e4) at gerbv.c:2792
> 2792        gtk_main();
> (gdb) up
> #25 0x4035f54d in __libc_start_main () from /lib/libc.so.6
> (gdb) up
> Initial frame selected; you cannot go up.
> 
> 
> On Sat, 5 Feb 2005 21:32:18 +0100, Mario Klebsch <mario@xxxxxxxxxx> wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > Hi!
> >
> > Am 05.02.2005 um 19:08 schrieb primorec:
> >
> > > Here is the output from ELECTRIC FENCE.
> > >
> > > I hope that this output will put more light to this problem
> >
> > It worked, fine.
> >
> > > [igor@netnarin morgan]$ setenv LD_PRELOAD /usr/lib/libefence.so
> > >
> > > [igor@netnarin morgan]$ gdb /usr/local/bin/gerbv
> >
> > This way, gdb as well as the prgram to debug both use libefence. Since
> > efence can slow don execution and increas memory usage dramatically,
> > you might prefer to only let the program to debug use efence.
> >
> > The easy way is to not run the target in the debugger but let is dump
> > core and use the debugger to do a post mortem core analysis. The other
> > option is to set the environment variable inside gdb.
> >
> > > (gdb) r
> > > Starting program: /home/local/bin/gerbv
> > >
> > >   Electric Fence 2.2.0 Copyright (C) 1987-1999 Bruce Perens
> > > <bruce@xxxxxxxxxx>
> > >
> > > <etc etc etc>
> > >
> > > Program received signal SIGSEGV, Segmentation fault.
> > > 0x403bd3de in strcat () from /lib/libc.so.6
> > > (gdb) where
> > > #0  0x403bd3de in strcat () from /lib/libc.so.6
> > > #1  0x080543ec in cb_ok_project (widget=0x4218be10, data=0x429e1ff4)
> > > at gerbv.c:847
> >
> > It could have been usefull to have executed 'up', to see the call to
> > strcat() and then to print its arguments.
> >
> > 73, Mario
> > - --
> > Mario Klebsch                                           mario@xxxxxxxxxx
> > PGP-Key available at http://www.klebsch.de/public.key
> > Fingerprint DSS: EE7C DBCC D9C8 5DC1 D4DB  1483 30CE 9FB2 A047 9CE0
> >   Diffie-Hellman: D447 4ED6 8A10 2C65 C5E5  8B98 9464 53FF 9382 F518
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v1.2.4 (Darwin)
> >
> > iD8DBQFCBS1YMM6fsqBHnOARAhR1AJsFugdgz6mGvHaPd0NJ47i3j7p0nQCcCjXb
> > GysZD+5puq1Bo3sSv1VqFnY=
> > =4b8w
> > -----END PGP SIGNATURE-----
> >
> >
>