This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gdb/13221] New: GDB Async can't pass through MPI_Init


http://sourceware.org/bugzilla/show_bug.cgi?id=13221

             Bug #: 13221
           Summary: GDB Async can't pass through MPI_Init
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
        AssignedTo: unassigned@sourceware.org
        ReportedBy: kevin.pouget@gmail.com
    Classification: Unclassified


When I try to debug this simple MPI program (mpicc for MPICH2 version 1.4.1p1)

#include <mpi.h>
#include <stdio.h>

int main(int argc, char** argv) {
  int blocked = 1 ;
  while (blocked) ;

  MPI_Init (&argc, &argv);

  printf("[%s:%d] START\n", "simple", rank+1);

  MPI_Finalize();
  return 0;
}

$ mpicc -g simple-mpi.c -o ./diffusion -O0
$ mpiexec -np 2 ./diffusion
$ pidof diffusion 
24213 24212

with the cvs GDB (7.3.50.20110919-cvs), `cont&' seem not to be working as
expected:

(gdb) set target-async on
(gdb) attach 25508
(gdb) add-inferior Added inferior 2
(gdb) inferior 2
(gdb) attach 25507
(gdb) thread apply 1 2 set blocked = 0
--
(gdb) cont&
(gdb) thread 1
(gdb) cont&

(gdb) info threads
   Id   Target Id         Frame   
  2    Thread 0x7f6516cfbb40 (LWP 25508) "diffusion" (running)
* 1    Thread 0x7f1fb4578b40 (LWP 25507) "diffusion" (running)

... and nothing happens.

(gdb) interrupt
does't work because of PR 13211,
(gdb) shell kill -INT 25508
confirms that the processes are indeed locked in the PMPI_Init

(gdb) quit
releases the two processes, which manage to finish the PMPI_Init, print their
stuff and exit properly.


I couldn't reproduce the problem with an operation simpler than MPI_Init so far

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]