<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    unfortunately how to start the program in a debugger is not the
    issue here. multiple pieces of our stack no longer even compile with
    gcc on OSX, and GDB does not work with clang. So clang/lldb seems to
    be the only viable option right now on OSX.<br>
    <br>
    I've seen related posts to this list and located 3 year old open bug
    report on mpich.org(link below) with identical errors. This seems to
    be an ongoing issue with mpich on OSX. In the mean time I've
    switched to OpenMPI and found that our regression suite runs
    cleanly, not sure what's going on with MPICH but will not be able to
    do much else without lldb.<br>
    <br>
    bug report: <a class="moz-txt-link-freetext" href="https://trac.mpich.org/projects/mpich/ticket/2063">https://trac.mpich.org/projects/mpich/ticket/2063</a><br>
    <br>
    <div class="moz-cite-prefix">On 12/07/2016 01:32 PM, Seo, Sangmin
      wrote:<br>
    </div>
    <blockquote cite="mid:BC52DE71-CE65-47A3-9B32-482737A163E7@anl.gov" type="cite">
      
      <div class="">You can find how to debug your MPI application at
        the links below:</div>
      <div class=""><br class="">
      </div>
      <div class=""><a moz-do-not-send="true" href="https://wiki.mpich.org/mpich/index.php/Frequently_Asked_Questions#Debugging_MPI_Programs" class="">https://wiki.mpich.org/mpich/index.php/Frequently_Asked_Questions#Debugging_MPI_Programs</a></div>
      <div class=""><a moz-do-not-send="true" href="https://wiki.mpich.org/mpich/index.php/Building_MPICH_For_Development#Use_gdb" class="">https://wiki.mpich.org/mpich/index.php/Building_MPICH_For_Development#Use_gdb</a></div>
      <div class=""><br class="">
      </div>
      <div class="">Regards,</div>
      <div class="">Sangmin</div>
      <br class="">
      <div>
        <blockquote type="cite" class="">
          <div class="">On Dec 7, 2016, at 11:39 AM, Burlen Loring <<a moz-do-not-send="true" href="mailto:burlen.loring@gmail.com" class="">burlen.loring@gmail.com</a>>
            wrote:</div>
          <br class="Apple-interchange-newline">
          <div class="">
            <div class="">after upgrading to osx sierra and latest xcode
              some of my regression tests crash in MPI calls, that's as
              far as I've got as MPI init seems to fail when run in the
              debugger. See below. Can any one advise how to run the
              program in the debugger on osx sierrra?<br class="">
              <br class="">
              <br class="">
              (lldb) target create
              "./bin/test/test_table_reader_distribute"<br class="">
              Current executable set to
              './bin/test/test_table_reader_distribute' (x86_64).<br class="">
              (lldb) settings set -- target.run-args
               "/Users/bloring/TECA/../TECA_data/test_tc_candidates_20.bin"
"/Users/bloring/TECA/../TECA_data/test_table_reader_distribute_20.bin"
              "step" "0" "-1" "1"<br class="">
              (lldb) r<br class="">
              Process 75610 launched:
              './bin/test/test_table_reader_distribute' (x86_64)<br class="">
              [cli_1]: write_line error; fd=8 buf=:cmd=init
              pmi_version=1 pmi_subversion=1<br class="">
              :<br class="">
              system msg for write_line failure : Bad file descriptor<br class="">
              [cli_1]: Unable to write to PMI_fd<br class="">
              [cli_1]: write_line error; fd=8 buf=:cmd=get_appnum<br class="">
              :<br class="">
              system msg for write_line failure : Bad file descriptor<br class="">
              Fatal error in MPI_Init_thread: Other MPI error, error
              stack:<br class="">
              MPIR_Init_thread(474):<br class="">
              MPID_Init(152).......: channel initialization failed<br class="">
              MPID_Init(426).......: PMI_Get_appnum returned -1<br class="">
              [cli_1]: write_line error; fd=8 buf=:cmd=abort
              exitcode=1094159<br class="">
              :<br class="">
              system msg for write_line failure : Bad file descriptor<br class="">
              Process 75610 exited with status = 15 (0x0000000f)<br class="">
              (lldb)<br class="">
              _______________________________________________<br class="">
              discuss mailing list     <a moz-do-not-send="true" href="mailto:discuss@mpich.org" class="">discuss@mpich.org</a><br class="">
              To manage subscription options or unsubscribe:<br class="">
              <a moz-do-not-send="true" href="https://lists.mpich.org/mailman/listinfo/discuss" class="">https://lists.mpich.org/mailman/listinfo/discuss</a><br class="">
            </div>
          </div>
        </blockquote>
      </div>
      <br class="">
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
discuss mailing list     <a class="moz-txt-link-abbreviated" href="mailto:discuss@mpich.org">discuss@mpich.org</a>
To manage subscription options or unsubscribe:
<a class="moz-txt-link-freetext" href="https://lists.mpich.org/mailman/listinfo/discuss">https://lists.mpich.org/mailman/listinfo/discuss</a></pre>
    </blockquote>
    <br>
  </body>
</html>