Debugging with GDB (February 2008)

Table Of Contents
Chapter 14: HP-UX Configuration-Specific Information 163
If HP WDB detects any thread error condition during the application run, the
error log is output to a file in the current working directory. The output file has
the following naming convention:
<executable name>.<pid>.threads
Where
<pid>is the process id.
14.11.5.2 Limitations in Batch mode of thread debugging
The feature does not obtain the thread-error information in batch mode for forked pro-
cess in a multiprocessing application. However, if the librtc.sl library is preloaded,
the debugger obtains the thread-error information in the batch mode for exec-ed ap-
plication.
You cannot specify an alternate output directory for the thread-error log. The thread-
error log file is output into the current working directory only.
HP WDB cannot execute both batch mode thread check and batch mode heap check
together. If the rtcconfig file has both entries, then batch heap check overrides the
batch thread check.
14.11.6 Known issues with Thread Debugging for Interactive
and Batch mode
Issue 1:
During the execution of advanced thread checking for applications that fork, in the
interactive mode, the following message appears if the GDB follows the child:
Pthread analysis file missing!
This error message appears because the thread-error information for the forked process
is not available.
However, if the forked process exec()s another binary, the thread-error information is
available for the exec -ed binary.
Issue 2:
In both interactive and batch modes, if the applications exceed their thread stack
utilization, the following error message appears:
Error accessing memory address
This occurs when GDB attempts a command line call on an already overflowing thread
stack.
14.12 Debugging MPI Programs
You can attach the debugger to Message Passing Interface (MPI) programs for debug-
ging. You must set the one of the following environment variables before you launch
the MPI process:
set MPI_FLAGS= egdb for invoking GDB