<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi Andy,<br>
    <br>
    I tried running the nm command before, and locally it returns a T,
    like you report, whereas on the grid it returns a U. I don't know
    what causes this difference, but now that you explain the symbols,
    it seems to be significant. <br>
    <br>
    locally:          "<font color="#000099">000000000003e210 T pdfset_</font>"<br>
    on the grid:  "  <font color="#000099">                 
                     U pdfset_</font>"<br>
    <br>
    <br>
    I checked again (and asked the grid admins) and in principles all
    machines and worker nodes are supposed to have the same architecture
    and compiler environment, all slc5 x86_64 with gcc 4.1.2 and python
    2.4.3. <br>
    <br>
    More ideas :)?<br>
    <br>
    Cheers,<br>
    Sara<br>
    <br>
    On 10/13/2011 05:15 PM, Andy Buckley wrote:
    <blockquote cite="mid:4E970096.9050000@ed.ac.uk" type="cite">Hi
      Sara,
      <br>
      <br>
      This complaint about a missing pdfset_ symbol is odd: that should
      definitely be defined in libLHAPDF:
      <br>
      <br>
      andy@duality:~$ nm heplocal/lib/libLHAPDF.so | grep pdfset_
      <br>
      000d0f70 T finitpdfset_
      <br>
      00014340 T initpdfset_
      <br>
      00036870 T pdfset_
      <br>
      <br>
      (the "T" means that the symbol is in the "text" section of the
      library, i.e. it is defined in the library file rather than just
      declared as something that will be eventually found elsewhere,
      which would show a "U")
      <br>
      <br>
      You did the right thing to enable the TRACE output, and indeed you
      see that libLHAPDF cannot be loaded. My suspicion is that the job
      running on the Grid node has a different architecture or compiler
      environment, which is why that library cannot be loaded. For
      example, if the job running on the Grid is in a 32 bit environment
      but that library is 64 bit, then indeed the dlopen library loading
      will fail. Can you check that?
      <br>
      <br>
      Cheers,
      <br>
      Andy
      <br>
      <br>
      <br>
      On 13/10/11 10:16, Sara Alderweireldt wrote:
      <br>
      <blockquote type="cite">Hello,
        <br>
        <br>
        To continue on this issue, it's still unsolved, I ran only agile
        <br>
        (submitted to the grid), with external PDF and TRACE output. It
        seems to
        <br>
        be finding and loading everything, except (as could be expected)
        <br>
        libLHAPDF.so. In that case it finds the library, but can't
        succesfully
        <br>
        load it:
        <br>
        <br>
            AGILe.Loader: TRACE Testing for
        <br>
            /localgrid/salderwe/TEST/lib/libLHAPDF.so
        <br>
            AGILe.Loader: TRACE Found
        /localgrid/salderwe/TEST/lib/libLHAPDF.so
        <br>
            AGILe.Loader: TRACE Trying to load
        <br>
            /localgrid/salderwe/TEST/lib/libLHAPDF.so
        <br>
            AGILe.Loader: TRACE Failed to load
        <br>
            /localgrid/salderwe/TEST/lib/libLHAPDF.so
        <br>
        <br>
        If I run the exact same command locally (m-machines in
        Brussels), the
        <br>
        problem is gone:
        <br>
        <br>
            AGILe.Loader: TRACE Testing for
        <br>
            /localgrid/salderwe/TEST/lib/libLHAPDF.so
        <br>
            AGILe.Loader: TRACE Found
        /localgrid/salderwe/TEST/lib/libLHAPDF.so
        <br>
            AGILe.Loader: TRACE Trying to load
        <br>
            /localgrid/salderwe/TEST/lib/libLHAPDF.so
        <br>
            AGILe.Loader: TRACE Successfully loaded
        <br>
            /localgrid/salderwe/TEST/lib/libLHAPDF.so (0xb478560)
        <br>
        <br>
        To be complete, the command I ran was:
        <br>
        <br>
            agile-runmc Pythia6:425 -b LHC:7000 -n 10 -p PYTUNE=343 -o
        <br>
            test.hepmc -l AGILe.Loader=TRACE
        <br>
        <br>
        Given this output, I don't know whether I'm still posting this
        question
        <br>
        to the right people, maybe I need LHAPDF support instead. In any
        case,
        <br>
        it's really puzzling me. I'd be happy with any suggestion on how
        to move
        <br>
        forward with this problem. Would it for instance be possible to
        get
        <br>
        error messages from LHAPDF or the system in general on what
        exactly goes
        <br>
        wrong with this loading of libLHAPDF?
        <br>
        <br>
        Best regards,
        <br>
        Sara
        <br>
        <br>
        On 10/10/2011 10:24 AM, Sara Alderweireldt wrote:
        <br>
        <blockquote type="cite">Hello,
          <br>
          <br>
          I've been running agile+rivet locally for a while now, and
          this week
          <br>
          attempted moving my runs to the grid. I still access my own
          copy of
          <br>
          agile+rivet (which locally runs fine) and use a python script
          which
          <br>
          calls 'agile-runmc ... &' and 'rivet ...'. If I use the
          PYTUNE or
          <br>
          MSTP(52) flag to set an external PDF from lhapdf, I get a
          segmentation
          <br>
          fault when running on the grid, and no problem when running
          locally.
          <br>
          If I use internal PDFs included in pythia6, everything runs
          fine both
          <br>
          on the grid and locally.
          <br>
          <br>
          At some point, I also had this segmentation fault locally, and
          traced
          <br>
          it back with gdb (and a lot of manual print statements) to:
          <br>
          /line 471 throw runtime_error((string("Failed to load
          libraries: ") +
          <br>
          dlerror()).c_str());/
          <br>
          in AGILe-1.3.0/src/Core/Loader.cc. Recompiling both LHAPDF and
          pythia6
          <br>
          solved this.
          <br>
          <br>
          If I comment out the runtime_error and run on the grid, I get
          a python
          <br>
          symbol lookup error:
          <br>
          python: symbol lookup error: mydirs/libpythia6.so: undefined
          symbol:
          <br>
          pdfset_
          <br>
          <br>
          Do you have any idea what might cause this or what I could try
          to
          <br>
          trace it back further? I'm entirely puzzled by the fact that
          <br>
          everything is fine when processing locally and not when
          submitting to
          <br>
          the grid, both methods are accessing the same hard drive with
          the
          <br>
          agile & rivet distributions on it. I tried tracking from
          the
          <br>
          agile-runmc script and got to FPythia.cc which calls PYEVT (at
          which
          <br>
          point the symbol lookup error arrives, no events are
          produced), but I
          <br>
          can't figure out where it goes wrong exactly or how to solve
          it.
          <br>
          <br>
          I checked when running on the grid what the output of
          'lhapdf-config
          <br>
          --pdfsets-path' is, and it is returning the correct folder and
          the
          <br>
          needed LHpdf file is there. If versions are relevant, I'm
          using agile
          <br>
          1.3.0, rivet 1.6.0, pythia 6.425, lhapdf 5.8.6, python 2.4.3
          and gcc
          <br>
          4.1.2. I hope you can shed some light on this.
          <br>
          <br>
          Best regards and thanks in advance,
          <br>
          Sara
           
          <br>
        </blockquote>
      </blockquote>
    </blockquote>
    <div class="moz-signature">-- <br>
      <p style="color:#505050;font-size:11px">
        <tt>Sara Alderweireldt        <a
            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 href="http://www.ua.ac.be/edf"><span
              style="color:#003366">http://www.ua.ac.be/edf</span></a><br>
          Belgium</tt>
      </p>
    </div>
  </body>
</html>