Hi,
I am trying to debug a parallel program in idb, but the debugger cannot find the main program and I cannot set breakpoints.
I have compiled with mpiifort -g -debug all -check all, and am using these versions:
/opt/intel/mpi/3.0/bin64/mpiifort
/opt/intel/fce/10.0.023/bin/ifort
/opt/intel/idbe/10.0.023/bin/idb
/opt/intel/mpi-rt/3.0/bin64/mpirun
I try to invoke idb like this:
mpirun -idb -np 2 ../../test_MCdriver
or:
mpd
mpiexec -idb -n 2 ../../test_MCdriver
This opens idb in a separate window as expected. It finds two processes (focus=[0:1]) but I can't set a breakpoint in the main program or in my module procedure. If I let the program continue in idb by typing "c" then the program successfully initializes MPI and runs for a bit before crashing on the error that I'm trying to fix. So in some sense the program is loaded, it is just that I can't access the symbols in idb. The output of the session follows. Any help would be appreciated!
Thanks,
Sean
Intel Debugger for applications running on Intel 64, Version 10.0-29 , Bui
ld 20070405
Attaching to program: /usr/bin/python2.4, process 21469
Reading symbols from /usr/bin/python2.4...(no debugging symbols found)...done.
[New Thread 47221900373968 (LWP 21469)]
__select_nocancel () in /lib64/libc-2.4.so
Info: Optimized variables show as when no location is allocated.
Continuing.
MPIR_Breakpoint () at mtv.c:101
No source file named mtv.c.
(idb)
[0:1] Intel Debugger for applications running on Intel 64, Version 10.0
-29 , Build 20070405
%1 [0:1] Attaching to program: /home/sdettrick/codes/converter/test_MCdriver, pr
ocess [21478;21479]
[0:1] Reading symbols from /home/sdettrick/codes/converter/test_MCdriver...do
ne.
%2 [0:1] [New Thread [47585757269312;47878512934208] (LWP [21478;21479])]
[0:1] __read_nocancel () in /lib64/libpthread-2.4.so
(idb)
[0:1] error: cannot return to function main
[0:1] No file.
(idb)
(idb)
(idb) break main
No symbol "main" in current context.
(idb)
(idb) break mc_init
No symbol "mc_init" in current context.
(idb)
[0:1] No symbol "mc_init" in current context.
[0:1] No symbol "mc_init" in current context.
[0:1] mc_init has no valid breakpoint address
[0:1] Breakpoint 2 (mc_init) pending
(idb) break mpi_stuff%%mc_init
No symbol "mpi_stuff" in current context.
break mpi_stuff%%mc_init
^
Unable to parse input as legal command or C expression.
(idb) set $cmdset="idb"
(idb)
(idb) stop in mpi_stuff%%mc_init
(idb)
[0:1] Symbol "mpi_stuff" is not defined.
[0:1] Symbol "mc_init" is not defined.
[0:1] mpi_stuff % %mc_init has no valid breakpoint address
[0:1] Warning: Breakpoint not set
(idb) stop in MPI_BCAST
(idb)
[0:1] [#3: stop in MPI_BCAST(...)]
(idb) c
(idb)
[1] Process has exited with status 153
[0] Thread received signal ABRT
[0] stopped at [ raise(...) 0x00002b476bba8aa5]
(idb)
(idb)



