This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
Re: Debugging threaded code on Linux
- From: Keith Seitz <keiths at redhat dot com>
- To: Evan Lavelle <anti dot spam1 at dsl dot pipex dot com>
- Cc: Insight List <insight at sources dot redhat dot com>
- Date: 26 Jun 2003 07:37:53 -0700
- Subject: Re: Debugging threaded code on Linux
- Organization:
- References: <3EFAD1BD.8040100@dsl.pipex.com>
On Thu, 2003-06-26 at 03:58, Evan Lavelle wrote:
> I'm having various problems debugging threaded code on Linux 2.4.7-10/RH
> 7.2, with insight 5.3. ddd seems to be more stable, but I think it's
> using an earlier version of gdb (5.0). The problems include fairly
> frequent crashes, 'thread apply' not working well, and so on.
>
> Does anyone have any experience of insight and LinuxThreads, and how
> stable it is? Should I be expecting this?
Make certain that the problems are in Insight. As far as I know, it is
very unlikely for the GUI part (Insight) to crash. More often than not,
it is the backend (gdb). Try debugging your program using command-line
gdb 5.3. (I think you can use "insight -nw" or "gdb -nw".)
Threads should work. Can you post a backtrace of the crash?
Keith