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: jody (jody.xha_at_[hidden])
Date: 2009-12-21 07:38:44


Hi Ralph

I finally got around to install version 1.4.
The xterm works fine.

And in order to get gdb going on the spawned processes, i need to add
an argument "--args"
in the argument list of the spawner so that the parameters of the
spawned processes are getting through gdb.

Thanks again
  Jody

On Fri, Dec 18, 2009 at 10:46 PM, Ashley Pittman <ashley_at_[hidden]> wrote:
> 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
>
> _______________________________________________
> users mailing list
> users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/users
>