<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div> Here is one type of hang. </div><div><br class=""></div><div> <span style="font-family: Menlo; font-size: 15px;" class="">$ petscmpiexec -n 2</span><span style="font-family: Menlo; font-size: 15px;" class=""> </span><span style="font-family: Menlo; font-size: 15px;" class="">./ex1</span></div><div><font face="Menlo" class=""><span style="font-size: 15px;" class=""><br class=""></span></font></div><div><font face="Menlo" class=""><span style="font-size: 15px;" class="">then in another window</span></font></div><div><font face="Menlo" class=""><span style="font-size: 15px;" class=""><br class=""></span></font></div><div><div style="margin: 0px; font-stretch: normal; font-size: 15px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">$ ps | grep ex1</span></div><div style="margin: 0px; font-stretch: normal; font-size: 15px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">12015 ttys000 0:00.01 /bin/csh -f /Users/barrysmith/Src/petsc/lib/petsc/bin/petscmpiexec -n 2 ./ex1</span></div><div style="margin: 0px; font-stretch: normal; font-size: 15px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">12038 ttys000 0:00.01 mpiexec -n 2 ./ex1</span></div><div style="margin: 0px; font-stretch: normal; font-size: 15px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">12193 ttys001 0:00.00 grep ex1</span></div><div style="margin: 0px; font-stretch: normal; font-size: 15px; line-height: normal; font-family: Menlo; color: rgb(200, 20, 201);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">~/Src/petsc/src/snes/tests</span><span style="font-variant-ligatures: no-common-ligatures" class=""><b class=""> (barry/2020-07-12/factor-view-no-malloc *=)</b></span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> </span></div><div style="margin: 0px; font-stretch: normal; font-size: 15px; line-height: normal; font-family: Menlo;" class="">$ lldb -p 12038</div><div style="margin: 0px; font-stretch: normal; font-size: 15px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">(lldb) process attach --pid 12038</span></div><div style="margin: 0px; font-stretch: normal; font-size: 15px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Process 12038 stopped</span></div><div style="margin: 0px; font-stretch: normal; font-size: 15px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">* thread #1, queue = </span><span style="font-variant-ligatures: no-common-ligatures; color: #2fb41d" class="">'com.apple.main-thread'</span><span style="font-variant-ligatures: no-common-ligatures" class="">, stop reason = </span><span style="font-variant-ligatures: no-common-ligatures; color: #b42419" class="">signal SIGSTOP</span></div><div style="margin: 0px; font-stretch: normal; font-size: 15px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> frame #0: </span><span style="font-variant-ligatures: no-common-ligatures; color: #9fa01c" class="">0x00007fff6dbe73d6</span><span style="font-variant-ligatures: no-common-ligatures" class=""> libsystem_kernel.dylib`poll + 10</span></div><div style="margin: 0px; font-stretch: normal; font-size: 15px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">libsystem_kernel.dylib`poll:</span></div><div style="margin: 0px; font-stretch: normal; font-size: 15px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">-> 0x7fff6dbe73d6 <+10>: jae 0x7fff6dbe73e0 ; <+20></span></div><div style="margin: 0px; font-stretch: normal; font-size: 15px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> 0x7fff6dbe73d8 <+12>: movq %rax, %rdi</span></div><div style="margin: 0px; font-stretch: normal; font-size: 15px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> 0x7fff6dbe73db <+15>: jmp 0x7fff6dbe222d ; cerror</span></div><div style="margin: 0px; font-stretch: normal; font-size: 15px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> 0x7fff6dbe73e0 <+20>: retq </span></div><div style="margin: 0px; font-stretch: normal; font-size: 15px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Target 0: (mpiexec) stopped.</span></div><div style="margin: 0px; font-stretch: normal; font-size: 15px; line-height: normal; font-family: Menlo; min-height: 18px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""></span><br class=""></div><div style="margin: 0px; font-stretch: normal; font-size: 15px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Executable module set to "/Users/barrysmith/soft/clang-ifort/bin/mpiexec".</span></div><div style="margin: 0px; font-stretch: normal; font-size: 15px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Architecture set to: x86_64h-apple-macosx-.</span></div><div style="margin: 0px; font-stretch: normal; font-size: 15px; line-height: normal; font-family: Menlo; color: rgb(153, 153, 153);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">(lldb) </span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">bt</span></div><div style="margin: 0px; font-stretch: normal; font-size: 15px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">* thread #1, queue = </span><span style="font-variant-ligatures: no-common-ligatures; color: #2fb41d" class="">'com.apple.main-thread'</span><span style="font-variant-ligatures: no-common-ligatures" class="">, stop reason = </span><span style="font-variant-ligatures: no-common-ligatures; color: #b42419" class="">signal SIGSTOP</span></div><div style="margin: 0px; font-stretch: normal; font-size: 15px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> * frame #0: </span><span style="font-variant-ligatures: no-common-ligatures; color: #9fa01c" class="">0x00007fff6dbe73d6</span><span style="font-variant-ligatures: no-common-ligatures" class=""> libsystem_kernel.dylib`poll + 10</span></div><div style="margin: 0px; font-stretch: normal; font-size: 15px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> frame #1: </span><span style="font-variant-ligatures: no-common-ligatures; color: #9fa01c" class="">0x0000000106f35ff1</span><span style="font-variant-ligatures: no-common-ligatures" class=""> mpiexec`HYDT_dmxu_poll_wait_for_event + 737</span></div><div style="margin: 0px; font-stretch: normal; font-size: 15px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> frame #2: </span><span style="font-variant-ligatures: no-common-ligatures; color: #9fa01c" class="">0x0000000106f35897</span><span style="font-variant-ligatures: no-common-ligatures" class=""> mpiexec`HYDT_dmx_wait_for_event + 23</span></div><div style="margin: 0px; font-stretch: normal; font-size: 15px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> frame #3: </span><span style="font-variant-ligatures: no-common-ligatures; color: #9fa01c" class="">0x0000000106ef7208</span><span style="font-variant-ligatures: no-common-ligatures" class=""> mpiexec`HYD_pmci_wait_for_completion + 984</span></div><div style="margin: 0px; font-stretch: normal; font-size: 15px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> frame #4: </span><span style="font-variant-ligatures: no-common-ligatures; color: #9fa01c" class="">0x0000000106ecbe67</span><span style="font-variant-ligatures: no-common-ligatures" class=""> mpiexec`main + 8391</span></div><div style="margin: 0px; font-stretch: normal; font-size: 15px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> frame #5: </span><span style="font-variant-ligatures: no-common-ligatures; color: #9fa01c" class="">0x00007fff6da9fcc9</span><span style="font-variant-ligatures: no-common-ligatures" class=""> libdyld.dylib`start + 1</span></div><div style="margin: 0px; font-stretch: normal; font-size: 15px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div style="margin: 0px; font-stretch: normal; font-size: 15px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">It is indicative of some "network" problem even though I am planning to run both processes on my Mac. </span></div><div style="margin: 0px; font-stretch: normal; font-size: 15px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">It doesn't have anything to do with PETSc, but the network state of your machine (even when disconnected from the network) and MPICH</span></div><div style="margin: 0px; font-stretch: normal; font-size: 15px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div style="margin: 0px; font-stretch: normal; font-size: 15px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Where do you get the hang if you run like above?</span></div><div style="margin: 0px; font-stretch: normal; font-size: 15px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div style="margin: 0px; font-stretch: normal; font-size: 15px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> Barry</span></div><div style="margin: 0px; font-stretch: normal; font-size: 15px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div style="margin: 0px; font-stretch: normal; font-size: 15px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><blockquote type="cite" class=""><div class="">On Jul 21, 2020, at 11:57 AM, Satish Balay via petsc-users <<a href="mailto:petsc-users@mcs.anl.gov" class="">petsc-users@mcs.anl.gov</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">you can run in the gdb to see if its hanging in a call to gethostbyname() or somewhere else.<br class=""><br class="">Satish<br class=""><br class="">On Tue, 21 Jul 2020, Eda Oktay wrote:<br class=""><br class=""><blockquote type="cite" class="">Dear Lawrence,<br class=""><br class="">The problem is not the error by the way, my program is waiting something<br class="">without stopping and it is not giving error. It just does nothing.<br class=""><br class="">Does the problem is still because of hostname?<br class=""><br class="">Thanks!<br class=""><br class="">Eda<br class=""><br class="">On Tue, Jul 21, 2020, 1:16 PM Lawrence Mitchell <<a href="mailto:wencel@gmail.com" class="">wencel@gmail.com</a>> wrote:<br class=""><br class=""><blockquote type="cite" class=""><br class=""><br class=""><blockquote type="cite" class="">On 21 Jul 2020, at 11:06, Eda Oktay <<a href="mailto:eda.oktay@metu.edu.tr" class="">eda.oktay@metu.edu.tr</a>> wrote:<br class=""><br class="">Dear Lawrence,<br class=""><br class="">I am using MPICC but not Mac, Fedora 25. If it will still work, I will<br class=""></blockquote>try that.<br class=""><blockquote type="cite" class=""><br class="">Thanks!<br class=""></blockquote><br class="">It might be the case. When you observe the error, does "nslookup<br class="">localhost" take a long time?<br class=""><br class="">Lawrence<br class=""></blockquote><br class=""></blockquote><br class=""></div></div></blockquote></div><br class=""></body></html>