On Wed, 2009-12-16 at 12:06 +0100, jody wrote:
> Has anybody got some hints on how to debug spawned processes?
If you can live with the processes starting normally and attaching gdb
to them after they have started then you could use padb.
Assuming you only have one job active (replace -a with the job-id if you
don't) and watch to target the first spawned job then the following
command will launch an xterm for each rank in the job and automatically
attach to the process for you.
padb -Oorte-job-step=2 --command -Ocommand="xterm -T %r -e 'gdb -p %p'"
You'll need to use the SVN version of padb for this, the "orte-job-step"
option tells it to attach to the first spawned job, use orte-ps to see
the list of job steps.
Ashley Pittman, Bath, UK.
Padb - A parallel job inspection tool for cluster computing