Hi,<br>I execute ex42a and then ex42.<br><br>Execution:<br><br> mpirun -np 1 ./ex42a -start_in_debugger <br><br>(gdb) bt<br>#0 0xb7f9a410 in __kernel_vsyscall ()<br>#1 0xb7dd8c90 in nanosleep () from /lib/../lib/tls/i686/cmov/libc.so.6<br>
#2 0xb7dd8ac7 in sleep () from /lib/../lib/tls/i686/cmov/libc.so.6<br>#3 0x08195837 in PetscSleep (s=10) at psleep.c:40<br>#4 0x081c277e in PetscAttachDebugger () at adebug.c:411<br>#5 0x081836a2 in PetscOptionsCheckInitial_Private () at init.c:371<br>
#6 0x08187dfe in PetscInitialize (argc=0xbfb5edb0, args=0xbfb5edb4, file=0x0, <br> help=0x8224da0 "Sends a PETSc vector to a socket connection, receives it back, within a loop. Works with ex42.c.\n") at pinit.c:488<br>
#7 0x0805073b in main (argc=2, args=0xbfb5ee34) at ex42a.c:17<br><br>mpirun -np 1 ./ex42 -start_in_debugger<br><br>(gdb) bt<br>#0 0xb7f8a410 in __kernel_vsyscall ()<br>#1 0xb7dc8c90 in nanosleep () from /lib/../lib/tls/i686/cmov/libc.so.6<br>
#2 0xb7dc8ac7 in sleep () from /lib/../lib/tls/i686/cmov/libc.so.6<br>#3 0x081953d7 in PetscSleep (s=10) at psleep.c:40<br>#4 0x081c231e in PetscAttachDebugger () at adebug.c:411<br>#5 0x08183242 in PetscOptionsCheckInitial_Private () at init.c:371<br>
#6 0x0818799e in PetscInitialize (argc=0xbfaded30, args=0xbfaded34, file=0x0, <br> help=0x8223c00 "Reads a PETSc vector from a socket connection, then sends it back within a loop. Works with ex42.m or ex42a.c\n") at pinit.c:488<br>
#7 0x0805073b in main (argc=2, args=0xbfadedb4) at ex42.c:18<br><br><br><div class="gmail_quote">2009/3/12 Matthew Knepley <span dir="ltr"><<a href="mailto:knepley@gmail.com">knepley@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="h5">On Thu, Mar 12, 2009 at 8:20 AM, Santolo Felaco <span dir="ltr"><<a href="mailto:ahuramazda10@gmail.com" target="_blank">ahuramazda10@gmail.com</a>></span> wrote:<br></div></div><div class="gmail_quote">
<div><div></div><div class="h5"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi I use Petsc 2.3.1 (I don't use the last version because I work on a software developed with this version). <br>I tried to used the Petsc socket, but the client and server programs but they don't connect (the execution is blocked).<br>
I am using two examples of Petsc: <a href="http://www.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-current/src/vec/vec/examples/tutorials/ex42a.c.html" target="_blank">http://www.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-current/src/vec/vec/examples/tutorials/ex42a.c.html</a> and<br>
<a href="http://www.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-current/src/vec/vec/examples/tutorials/ex42.c.html" target="_blank">http://www.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-current/src/vec/vec/examples/tutorials/ex42.c.html</a> <br>
<br>I tried to execute ex42a on machine and ex42 on other machine, and I execute both programs on same machine.</blockquote></div></div><div><br>1) It is extremely hard to debug old code. We have made several socket fixes for new OS/architectures.<br>
<br>2) Make sure you start the server (ex42a) and then the client (ex42)<br><br>3) Run using the debugger, -start_in_debugger, and give us a stack trace of the hang<br><br> Matt<br> </div><div class="im"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>Do you help me? Thanks.<br>Bye.<br>
</blockquote></div></div><font color="#888888">-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener<br>
</font></blockquote></div><br>