[mpich-discuss] ctrl-c while running mpiexec -gdb

Darius Buntinas buntinas at mcs.anl.gov
Tue Aug 12 12:24:27 CDT 2008


When you hit ^C from mpiexec (with or without -gdb), mpiexec will kill 
all processes and exit.  To send a SIGINT to the processes themselves, 
you would need to use mpdsigjob.  First find the jobid using 
mpdlistjobs, then send the SIGINT to the job:

   mpdsigjob SIGINT -j jobid

Give this a try.

-d


On 08/12/2008 11:23 AM, Robert Kubrick wrote:
> When I run a regular program under gdb, ctrl-c returns control to the 
> gdb prompt and I can examine the stack of the interrupted process or 
> issue any other gdb command on the current process. When running mpiexec 
> -gdb, ctrl-c returns to the shell (thus abandoning the gdb session).
> 
> On Aug 12, 2008, at 10:52 AM, Rajeev Thakur wrote:
> 
>> You should be able to type gdb commands at the prompt returned by mpiexec
>> -gdb.
>>
>> Rajeev
>>
>>> -----Original Message-----
>>> From: owner-mpich-discuss at mcs.anl.gov
>>> [mailto:owner-mpich-discuss at mcs.anl.gov] On Behalf Of Robert Kubrick
>>> Sent: Monday, August 11, 2008 10:16 PM
>>> To: mpich-discuss at mcs.anl.gov
>>> Subject: [mpich-discuss] ctrl-c while running mpiexec -gdb
>>>
>>> In mpiexec -gdb hitting ctrl-c terminates all the processes
>>> of the MPI program. I want to read the stack for one of the
>>> MPI process while the program is running, is there a way to
>>> let ctrl-c return control to gdb rather then quitting the
>>> program alltogether?
>>>
>>>
>>
> 




More information about the mpich-discuss mailing list