[lug] gdb & pthreads

Rich Deeming rdeeming at mcdata.com
Wed Jul 19 10:45:36 MDT 2000


Compile with -g option.
Here is a link that I have found to be very useful.
http://www.pi.infn.it/ASISdoc/GNU.LANG/gdb-4.16/gdb_toc.html

Rich

Kevin King wrote:

> For some reason I am not getting a core file.  Could you tell me how
> to enable this on Caldera 2.2?
>
> Thanks.
>
> --Kevin
> kevin at precisonline.com
> http://www.precisonline.com
> http://www.precisonline.com/gold.htm
>
> -----Original Message-----
> From: Rich Deeming <rdeeming at mcdata.com>
> To: lug at lug.boulder.co.us <lug at lug.boulder.co.us>
> Date: Wednesday, July 19, 2000 9:03 AM
> Subject: Re: [lug] gdb & pthreads
>
> >When the program seg faults are you generating a core file?
> >If so $gdb progname -c core should give you the location of
> >where the fault occurs.
> >
> >Rich
> >
> >Kevin King wrote:
> >
> >> I have created and am testing a multithreaded program which seg
> >> faults under load.  I'm trying to trace the fault using gdb, but
> gdb
> >> stops when the first subordinate thread terminates.  The main
> thread
> >> continues running (though it is effectively a zombie) and needs to
> be
> >> killed manually.
> >>
> >> This gdb was specifically downloaded from the Caldera site because
> it
> >> has pthreads support, but if I can't trace into the threads -- or
> at
> >> least keep the debugger running after the first thread terminates,
> >> it's not of much use.  Does anyone happen to have any advice or
> ideas
> >> of options or something w/ gdb which will allow me to use it to
> trace
> >> this fault?  Or perhaps some other tool?  Or is there perhaps a
> >> compiler option to enable extended information on a fault?
> >>
> >> Thanks!
> >>
> >> --Kevin
> >> kevin at precisonline.com
> >> http://www.precisonline.com
> >> http://www.precisonline.com/gold.htm
> >>
> >> _______________________________________________
> >> Web Page:  http://lug.boulder.co.us
> >> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> >
> >
> >
> >_______________________________________________
> >Web Page:  http://lug.boulder.co.us
> >Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> >
> >
>
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug






More information about the LUG mailing list