[mpich-discuss] gdb in mpiexec using xterm

Shawn Kim shawn.subscribe at gmail.com
Wed Oct 26 18:00:01 CDT 2011


No, Darius,

I am just trying to debug two processes using one xterm.

- shawn

On Wed, Oct 26, 2011 at 2:02 PM, Darius Buntinas <buntinas at mcs.anl.gov>wrote:

>
> 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
>
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20111026/518d1105/attachment-0001.htm>


More information about the mpich-discuss mailing list