Re: DBX on AIX 5.3 with Threads



Larry Smith <lsmith@xxxxxxxxxx> writes:

We have a large app that's built on
Linux, Solaris, & AIX. The app uses
many threads (pthreads API).

Have you checked the application with Valgrind (Linux), or Purify
(Solaris and AIX)? No point in spending time guessing/debugging,
unless you know that the application is "squeaky clean".

There is a bug in the app that shows itself
only on AIX. All (seems to) work OK on
Linux & Solaris. On AIX some threads trap
at random (i.e. there is no recognizable
pattern to the traps).

The app has a signal handler that catches
all signals and restarts the offending
thread;

You can't restart a thread. If one thread of the application gets
a fatal signal, there is absolutely no reasonable way to recover
from that. I assume you mean you restart the whole process.

We disabled the program's signal handler
and ran it under DBX (dbx -r). The program
hangs without doing any work.

If dbx interfers so much with your application, you should be able
to let it core-dump, and debug it post-mortem. What are some of
the crash stack traces?

Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
.



Relevant Pages

  • Re: DBX on AIX 5.3 with Threads
    ... Linux, Solaris, & AIX. ... There is a bug in the app that shows itself ... The problem was solved by moving the pthread structures "out" of other ...
    (comp.unix.aix)
  • Re: Curious about AIX/RS/6000
    ... > Linux, BSD and Solaris to get a good understanding of the unixen out ... > AIX 5.1 to get started. ...
    (comp.unix.aix)
  • Re: major differences among UNIX, Solaris, AIX, Linux??
    ... > them UNIX? ... I know Red Hat Linux and Solaris ... but AIX doesn't have GUI. ...
    (comp.unix.solaris)
  • Re: "Torn between two OS" - Solaris vs Linux
    ... Although I would like to dump Windows, I hang on to it, because my 8 ... month or so exposure to Linux has only proven that there is always some ... syntax in order to run an app. ... Do I go for Solaris 10, FC3, or Suse? ...
    (comp.os.linux.misc)
  • Re: "Torn between two OS" - Solaris vs Linux
    ... Although I would like to dump Windows, I hang on to it, because my 8 ... month or so exposure to Linux has only proven that there is always some ... syntax in order to run an app. ... Do I go for Solaris 10, FC3, or Suse? ...
    (comp.unix.solaris)