[mpich-discuss] gdb in mpiexec using xterm

Darius Buntinas buntinas at mcs.anl.gov
Thu Oct 27 11:06:26 CDT 2011


There should be one xterm for each process.  GDB can only debug one process at a time.  The problem you're seeing is that the second process has not been started because you didn't hit "run" in the the gdb attached to that process.

-d


On Oct 26, 2011, at 6:00 PM, Shawn Kim wrote:

> 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
> 
> _______________________________________________
> 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