Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-24971

valgrind not run if working directory set.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • valgrind-plugin
    • None

      When I set the working directory and I attempt to build the prohject in Jenkins using the valgrind plugin to run valgrind (valgrind-3.8.1) all I get in the log is:

      [Valgrind] includes files:
      $ valgrind --version
      [Valgrind] detected valgrind version (valgrind): 3.8.1
      [FINDBUGS] Collecting findbugs analysis files...

      If I delete the setting in the working directory and build again I see:

      (I have tried both "BasicStartExitSendOrders*" and "BasicStartExitSendOrdersTest" and get the same result.)

      [Valgrind] includes files: BasicStartExitSendOrdersTest
      $ valgrind --version
      [Valgrind] detected valgrind version (valgrind): 3.8.1
      [Valgrind] working dir: /home/jenkins/workspace/NxtGateway_Centos_v6_4_SNAPSHOT_HEAD_Sender
      [NxtGateway_Centos_v6_4_SNAPSHOT_HEAD_Sender] $ valgrind --tool=memcheck --leak-check=full --show-reachable=no --undef-value-errors=no --track-origins=no --child-silent-after-fork=no --trace-children=no --xml=yes --xml-file=/home/jenkins/workspace/NxtGateway_Centos_v6_4_SNAPSHOT_HEAD_Sender/sender/reports/valgrind/BasicStartExitSendOrdersTest.%p.xml /home/jenkins/workspace/NxtGateway_Centos_v6_4_SNAPSHOT_HEAD_Sender/sender/build/cpp/src/Test/BasicStartExitSendOrdersTest

      [Valgrind] valgrind exit code: 201
      [Valgrind] valgrind standard out:
      ERROR: Unable to initialize logger - configuration file is not specified. Please set environment variable LOG4CXX_CONFIG_FILE
      Running 8 test cases...
      unknown location(0): fatal error in "SenderCtor": std::runtime_error: Required parameter 'MSG_SIZE' has no specified value.
      unknown location(0): fatal error in "SenderInit": std::runtime_error: Required parameter 'MSG_SIZE' has no specified value.
      unknown location(0): fatal error in "SenderInitWithMITSim": std::exception: Error loading NXTG configuration file [mit.xml]: Failed to open file.
      unknown location(0): fatal error in "SenderInitWithMITSimAndRunner": std::exception: Error loading NXTG configuration file [mit.xml]: Failed to open file.
      unknown location(0): fatal error in "SenderProcessANewOrderMsg": std::exception: Error loading NXTG configuration file [mit.xml]: Failed to open file.
      unknown location(0): fatal error in "SenderProcessACancelOrderMsg": std::exception: Error loading NXTG configuration file [mit.xml]: Failed to open file.
      unknown location(0): fatal error in "SenderProcessAReplaceOrderMsg": std::exception: Error loading NXTG configuration file [mit.xml]: Failed to open file.
      unknown location(0): fatal error in "SenderSoakTestNewOrderParallel": std::exception: Error loading NXTG configuration file [mit.xml]: Failed to open file.
      [Valgrind] valgrind error out:
      log4cxx: No appender could be found for logger (com.nomura.nxtdirect.nxt-direct-user.NxtDirectSender).
      log4cxx: Please initialize the log4cxx system properly.

          • 8 failures detected in test suite "Master Test Suite"
            Build step 'Run Valgrind' marked build as failure
            [FINDBUGS] Skipping publisher since build result is FAILURE

      Also please clarify the help text on the "Executable Include Pattern" edit box to indicate if it is relative to the entry in the "Working Directory" edit box. Thank you.

            existence Johannes Ohlemacher
            jmmcg1 J McG
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: