<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix"><br>
      I thought VALGRIND was in the manual already but it isn't.  I will
      add it now.  I will also talk about our GDB feature. <br>
      <br>
      On 07/29/2014 10:17 AM, Ketan Maheshwari wrote:<br>
    </div>
    <blockquote
cite="mid:CAMUuvirXKFASLZnZzFnqMh8mkUoWMkKLRFjQFwweOrsER56ZPA@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <div dir="ltr">Thanks! Seems turbine script already had a
        placeholder for Valgrind so I tried that and from the output, it
        seems tcl libraries are causing segfault but I may be wrong.
        Attached is the Valgrind output.
        <div><br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">On Tue, Jul 29, 2014 at 10:05 AM, Tim
          Armstrong <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:tim.g.armstrong@gmail.com" target="_blank">tim.g.armstrong@gmail.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div>
              <div dir="ltr">
                <div>I don't have any particular insight into the cause
                  of the segfault, I can help with the debugger though.<br>
                  <br>
                  You need to point gdb at the tclsh that is being used
                  by turbine (which is just a shell script).  You can
                  locate the correct tclsh by looking at TCLSH in
                  scripts/turbine-config.sh in the turbine install
                  directory.<br>
                  <br>
                </div>
                - TIm<br>
              </div>
              <div class="gmail_extra"><br>
                <br>
                <div class="gmail_quote">
                  <div>
                    <div class="h5">On Tue, Jul 29, 2014 at 10:00 AM,
                      Ketan Maheshwari <span dir="ltr">
                        <<a moz-do-not-send="true"
                          href="mailto:ketan@mcs.anl.gov"
                          target="_blank">ketan@mcs.anl.gov</a>></span>
                      wrote:<br>
                    </div>
                  </div>
                  <blockquote class="gmail_quote" style="margin:0 0 0
                    .8ex;border-left:1px #ccc solid;padding-left:1ex">
                    <div>
                      <div class="h5">
                        <div dir="ltr">Hi,
                          <div><br>
                          </div>
                          <div>Trying to main-wrap DOCK 6.6 application
                            for ATPESC, I get the build right (seems)
                            but things fail at runtime giving segfault:</div>
                          <div><br>
                          </div>
                          <div>
                            <div>$ turbine -n 4 user-code.tcl</div>
                            <div><br>
                            </div>
                            <div>===================================================================================</div>
                            <div>=   BAD TERMINATION OF ONE OF YOUR
                              APPLICATION PROCESSES</div>
                            <div>=   EXIT CODE: 139</div>
                            <div>=   CLEANING UP REMAINING PROCESSES</div>
                            <div>=   YOU CAN IGNORE THE BELOW CLEANUP
                              MESSAGES</div>
                            <div>===================================================================================</div>
                            <div>YOUR APPLICATION TERMINATED WITH THE
                              EXIT STRING: Segmentation fault (signal
                              11)</div>
                            <div>This typically refers to a problem with
                              your application.</div>
                            <div>Please see the FAQ page for debugging
                              suggestions</div>
                          </div>
                          <div><br>
                          </div>
                          <div>This is on MCS machine. Any suggestion to
                            debug this? I tried gdb but it gives:</div>
                          <div><br>
                          </div>
                          <div> "/nfs2/ketan/exm-install/turbine/bin/turbine":
                            not in executable format: File format not
                            recognized</div>
                          <div><br>
                          </div>
                          <div>With strace, I see some signs of missing
                            files but not sure if that is the cause of
                            segfault. Attached is the strace output of:</div>
                          <div><br>
                          </div>
                          <div>strace -o strace.out turbine -n 4
                            user-code.tcl<br>
                          </div>
                          <div><br>
                          </div>
                          <div>The code has some MPI and pthread
                            elements but does not use them as far as I
                            understand.</div>
                          <div><br>
                          </div>
                          <div>Thanks for any suggestions.</div>
                          <div><br>
                          </div>
                          <div>--</div>
                          <div>Ketan</div>
                        </div>
                        <br>
                      </div>
                    </div>
                    _______________________________________________<br>
                    ExM-user mailing list<br>
                    <a moz-do-not-send="true"
                      href="mailto:ExM-user@lists.mcs.anl.gov"
                      target="_blank">ExM-user@lists.mcs.anl.gov</a><br>
                    <a moz-do-not-send="true"
                      href="https://lists.mcs.anl.gov/mailman/listinfo/exm-user"
                      target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/exm-user</a><br>
                    <br>
                  </blockquote>
                </div>
                <br>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
ExM-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ExM-user@lists.mcs.anl.gov">ExM-user@lists.mcs.anl.gov</a>
<a class="moz-txt-link-freetext" href="https://lists.mcs.anl.gov/mailman/listinfo/exm-user">https://lists.mcs.anl.gov/mailman/listinfo/exm-user</a>
</pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Justin M Wozniak</pre>
  </body>
</html>