<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7233.28">
<TITLE>mpich2 & gdb on solaris issues</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT SIZE=2 FACE="Arial">I have been having problems running jobs through gdb on a cluster of solaris 9 machines.</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">When I run my jobs w/o specifying "-gdb", they run to completion as expected. When I try to use gdb, I never get a gdb prompt until I issue a "z" command. When I enter a gdb command(either after issuing a "z" command and receiving a gdb prompt, or without a prompt) nothing is printed to the screen. No output ever appears from any of the gdb commands I issue, and the job hangs, and never terminates. The following is the output from one of my attempts to use gdb. The mpi ring I used for this session only had one cpu in it, but the behavior is the same when I use a ring of four machines.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">=========================</FONT>
<BR><FONT SIZE=2 FACE="Arial">gunter/experimental/MPI $ mpiexec -n 4 ./cpi </FONT>
<BR><FONT SIZE=2 FACE="Arial">Process 0 of 4 is on Sun1</FONT>
<BR><FONT SIZE=2 FACE="Arial">Process 1 of 4 is on Sun1</FONT>
<BR><FONT SIZE=2 FACE="Arial">Process 2 of 4 is on Sun1</FONT>
<BR><FONT SIZE=2 FACE="Arial">Process 3 of 4 is on Sun1</FONT>
<BR><FONT SIZE=2 FACE="Arial">pi is approximately 3.1415926544231239, Error is 0.0000000008333307</FONT>
<BR><FONT SIZE=2 FACE="Arial">wall clock time = 0.154744</FONT>
<BR><FONT SIZE=2 FACE="Arial">gunter/experimental/MPI $ mpiexec -gdb -n 4 ./cpi</FONT>
<BR><FONT SIZE=2 FACE="Arial">l</FONT>
</P>
<BR>
<P><FONT SIZE=2 FACE="Arial">b 30</FONT>
<BR><FONT SIZE=2 FACE="Arial">r</FONT>
<BR><FONT SIZE=2 FACE="Arial">z</FONT>
<BR><FONT SIZE=2 FACE="Arial">0-3: (gdb) l</FONT>
<BR><FONT SIZE=2 FACE="Arial">z</FONT>
<BR><FONT SIZE=2 FACE="Arial">0-3: (gdb) b 30</FONT>
<BR><FONT SIZE=2 FACE="Arial">r</FONT>
<BR><FONT SIZE=2 FACE="Arial">z</FONT>
<BR><FONT SIZE=2 FACE="Arial">0-3: (gdb) r</FONT>
<BR><FONT SIZE=2 FACE="Arial">bt</FONT>
<BR><FONT SIZE=2 FACE="Arial">z</FONT>
<BR><FONT SIZE=2 FACE="Arial">0-3: (gdb) bt</FONT>
<BR><FONT SIZE=2 FACE="Arial">========================</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Any help, or ideas on how to debug this further would be greatly appreciated!</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Thanks</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">--Tim</FONT>
</P>
</BODY>
</HTML>