[mpich-discuss] APPLICATION TERMINATED WITH THE EXIT STRING: Hangup (signal 1)
Nicolas Rosner
nrosner at gmail.com
Wed Mar 9 10:03:35 CST 2011
In case you're not familiar with gdb and/or core dumps, this usually
works for me as a quick way to find out where my code is segfaulting:
1) Launch the program under gdb (as per your syntax below).
2) Start it with the "run" command (optionally followed by cmdline
args, if any needed).
3) After the program dies, use the "bt" command to display a full backtrace.
Adding the "-g" flag when compiling your program may improve
human-readability of symbols etc.
See also:
http://www.gnu.org/software/gdb/documentation/
http://sourceware.org/gdb/current/onlinedocs/gdb/Backtrace.html
http://sourceware.org/gdb/current/onlinedocs/gdb/Core-File-Generation.html
On Wed, Mar 9, 2011 at 5:34 AM, Matthias Demuzere wrote:
> ha, no, I did use 'gdb' in the runfile:
> mpiexec -n 1 gdb ./ccsm.exe
More information about the mpich-discuss
mailing list