Re: debugging a multi-threaded program on linux.

From: Scott Lacy Smith (scott_at_bugfree.salley.net)
Date: 05/10/03


Date: Sat, 10 May 2003 05:36:59 GMT

On 9 May 2003 07:44:39 -0700, hagai yaffe <hagaiy@yahoo.com> wrote:
> hello.
>
> i have got a multi-threaded c program that uses the pthread library,
> it works fine on solaris & aix. on ret-hat linux 7.2 i have got
> strange problems, it seems like i am getting into code areas that i

Make sure your program uses a dynamically linked version of pthread.
That is the only way to debug a multi-threaded process on my machine.
I don't remember if that is the only requirement, but gdb can handle
threads on Linux.

-- 
Scott Lacy Smith  <scottlacysmith@qwest.net>
   "Nullus Anxietas" 


Relevant Pages

  • Re: ALSA config always overwritten at startup?
    ... > I've got some strange problems with ALSA configuration. ... > After each start all my mixer settings are zeroed and each time my Linux ...
    (comp.os.linux.misc)
  • ALSA config always overwritten at startup?
    ... I've got some strange problems with ALSA configuration. ... After each start all my mixer settings are zeroed and each time my ... Linux starts I'll have to setup all things again and again and again... ...
    (comp.os.linux.misc)
  • std::ostringstream bizarre behaviour. Please help!
    ... I am having some strange problems using std::ostringstream. ... Gives some weird results on both Solaris & Linux. ... CC -o ostringstreambug ostringstreambug.cc ...
    (comp.lang.cpp)
  • Re: Which directory contents I can remove??
    ... In linux which directory contents I can remove? ... Any of the graphical file managers. ... Be sure you understand the consequences of deleting temporary files ... This can lead to strange problems until you log ...
    (Fedora)
  • Re: OpenSSH 3.1 released
    ... >I can't get either the OpenBSD or Linux versions of OpenSSH 3.1 to build ... >-- I get the same set of errors compiling ciphers.c as were just reported ... We're having some strange problems with entrophy ...
    (comp.security.ssh)