[mpich-discuss] gdb in mpiexec using xterm

Darius Buntinas buntinas at mcs.anl.gov
Wed Oct 26 13:02:49 CDT 2011


Just to clarify, are you getting two xterms with gdb and giving a run command in both?

-d

On Oct 26, 2011, at 12:11 PM, Shawn Kim wrote:

> Hi all,
> 
> When I tried to debug mpi program using xterm, xterm (or gdb) is hung with the message "Thread debugging using libthread_db enabled"
> Anybody knows what I can do to debug?
> 
> Thanks,
> Shawn
> 
> $ mpiexec -np 2 xterm -hold -e gdb ./io
> 
> GNU gdb 6.8-debian
> Copyright (C) 2008 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
> and "show warranty" for details.
> This GDB was configured as "x86_64-linux-gnu"...
> (gdb) b MPI_File_write_all
> Breakpoint 1 at 0x4131f4: file /home/seokim/diotrace/MPICH2/mpich2-1.4/src/mpi/romio/mpi-io/write_all.c, line 53.
> (gdb) run
> Starting program: /home/seokim/diotrace/Benchmarks/shawn-io/write/io 
> [Thread debugging using libthread_db enabled]
> 
> 
> 
> _______________________________________________
> mpich-discuss mailing list     mpich-discuss at mcs.anl.gov
> To manage subscription options or unsubscribe:
> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss



More information about the mpich-discuss mailing list