<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <small>Hello,<br>
      <br>
      To continue on this issue, it's still unsolved, I ran only agile
      (submitted to the grid), with external PDF and TRACE output. It
      seems to be finding and loading everything, except (as could be
      expected) libLHAPDF.so. In that case it finds the library, but
      can't succesfully load it:<br>
    </small>
    <blockquote><small><font color="#000099">AGILe.Loader: TRACE 
          Testing for /localgrid/salderwe/TEST/lib/libLHAPDF.so<br>
          AGILe.Loader: TRACE  Found
          /localgrid/salderwe/TEST/lib/libLHAPDF.so<br>
          AGILe.Loader: TRACE  Trying to load
          /localgrid/salderwe/TEST/lib/libLHAPDF.so<br>
          AGILe.Loader: TRACE  Failed to load
          /localgrid/salderwe/TEST/lib/libLHAPDF.so<br>
        </font></small></blockquote>
    <small>If I run the exact same command locally (m-machines in
      Brussels), the problem is gone:<br>
    </small>
    <blockquote><small><font color="#000099">AGILe.Loader: TRACE 
          Testing for /localgrid/salderwe/TEST/lib/libLHAPDF.so<br>
          AGILe.Loader: TRACE  Found
          /localgrid/salderwe/TEST/lib/libLHAPDF.so<br>
          AGILe.Loader: TRACE  Trying to load
          /localgrid/salderwe/TEST/lib/libLHAPDF.so<br>
          AGILe.Loader: TRACE  Successfully loaded
          /localgrid/salderwe/TEST/lib/libLHAPDF.so (0xb478560)<br>
        </font></small></blockquote>
    <small>To be complete, the command I ran was:<br>
    </small>
    <blockquote><small><font color="#000099">agile-runmc Pythia6:425 -b
          LHC:7000 -n 10 -p PYTUNE=343 -o test.hepmc -l
          AGILe.Loader=TRACE</font></small><br>
    </blockquote>
    <small>Given this output, I don't know whether I'm still posting
      this question to the right people, maybe I need LHAPDF support
      instead. In any case, it's really puzzling me. I'd be happy with
      any suggestion on how to move forward with this problem. Would it
      for instance be possible to get error messages from LHAPDF or the
      system in general on what exactly goes wrong with this loading of
      libLHAPDF? <br>
    </small><br>
    <small>Best regards,<br>
      Sara </small><br>
    <br>
    <small>On 10/10/2011 10:24 AM, Sara Alderweireldt wrote:</small>
    <blockquote cite="mid:4E92ABCA.3080205@ua.ac.be" type="cite">
      <meta http-equiv="content-type" content="text/html;
        charset=ISO-8859-1">
      <small> Hello,<br>
        <br>
        I've been running agile+rivet locally for a while now, and this
        week attempted moving my runs to the grid. I still access my own
        copy of agile+rivet (which locally runs fine) and use a python
        script which calls 'agile-runmc ... &' and 'rivet ...'. If I
        use the PYTUNE or MSTP(52) flag to set an external PDF from
        lhapdf, I get a segmentation fault when running on the grid, and
        no problem when running locally. If I use internal PDFs included
        in pythia6, everything runs fine both on the grid and locally. </small>
      <small><br>
        <br>
        At some point, I also had this segmentation fault locally, and
        traced it back with gdb (and a lot of manual print statements)
        to: </small> <small><br>
        <font color="#333399"><i>line 471           throw
            runtime_error((string("Failed to load libraries: ") +
            dlerror()).c_str());</i></font><br>
        in AGILe-1.3.0/src/Core/Loader.cc. Recompiling both LHAPDF and
        pythia6 solved this. <br>
        <br>
        If I comment out the runtime_error and run on the grid, I get a
        python symbol lookup error:</small> <small><br>
        <font color="#333399">python: symbol lookup error:
          mydirs/libpythia6.so: undefined symbol: pdfset_</font><br>
        <br>
        Do you have any idea what might cause this or what I could try
        to trace it back further? I'm entirely puzzled by the fact that
        everything is fine when processing locally and not when
        submitting to the grid, both methods are accessing the same hard
        drive with the agile & rivet distributions on it. I tried
        tracking from the agile-runmc script and got to FPythia.cc which
        calls PYEVT (at which point the symbol lookup error arrives, no
        events are produced), but I can't figure out where it goes wrong
        exactly or how to solve it. </small> <small><br>
        <br>
        I checked when running on the grid what the output of
        'lhapdf-config --pdfsets-path' is, and it is returning the
        correct folder and the needed LHpdf file is there. If versions
        are relevant, I'm using agile 1.3.0, rivet 1.6.0, pythia 6.425,
        lhapdf 5.8.6, python 2.4.3 and gcc 4.1.2. I hope you can shed
        some light on this.</small> <small><br>
        <br>
        Best regards and thanks in advance,</small> <small><br>
        Sara<br>
      </small> <br>
      <div class="moz-signature">-- <br>
        <p style="color:#505050;font-size:11px"> <tt>Sara
            Alderweireldt        <a moz-do-not-send="true"
              href="mailto:sara.alderweireldt@ua.ac.be"><span
                style="color:#003366">sara.alderweireldt@ua.ac.be</span></a><br>
            <span style="color:#003366">Universiteit</span> <span
              style="color:#660033">Antwerpen</span>    Phone: +32 (0)3
            265 3577<br>
            CGB.U.237 - Physics<br>
            Groenenborgerlaan 171<br>
            2020 Antwerpen            <a moz-do-not-send="true"
              href="http://www.ua.ac.be/edf"><span style="color:#003366">http://www.ua.ac.be/edf</span></a><br>
            Belgium</tt> </p>
      </div>
    </blockquote>
  </body>
</html>