Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] Debugging spawned processes
From: Ashley Pittman (ashley_at_[hidden])
Date: 2009-12-18 16:46:00


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'"
-a

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,

-- 
Ashley Pittman, Bath, UK.
Padb - A parallel job inspection tool for cluster computing
http://padb.pittman.org.uk