JeffersonLab / remoll

Simulations for the MOLLER Experiment at Jefferson Lab, http://moller.jlab.org
http://jeffersonlab.github.io/remoll/
11 stars 55 forks source link

Test macro commit/test_pion.mac fails on travis in develop due to TF1 error #120

Open wdconinc opened 6 years ago

wdconinc commented 6 years ago

Environment: (where does this bug occur, have you tried other environments)

Steps to reproduce: (give a step by step account of how to trigger the bug)

  1. build/remoll macros/tests/commit/test_pion.mac
  2. not sure how to trigger beyond this.

Expected Result: (what do you expect when you execute the steps above)

Should complete without error

Actual Result: (what do you get when you execute the steps above)

### Run 0 start.
Initialized tree.
G4WT0 > --> Event 0 starts with initial seeds (70003157,20804345).
G4WT1 > remoll: <0.1 MeV neutrals simulated but not stored for all detectors.
G4WT1 > remoll: To save low energy neutral hits, use the following in gdml:
G4WT1 > remoll:   <auxiliary auxtype="DetType" auxvalue="lowenergyneutral"/>
G4WT0 > --> Event 100 starts with initial seeds (71324086,22468847).
G4WT1 > --> Event 200 starts with initial seeds (14116734,96899086).
G4WT1 > --> Event 300 starts with initial seeds (84231173,65850168).
G4WT1 > --> Event 400 starts with initial seeds (5426889,14012455).
G4WT1 > --> Event 500 starts with initial seeds (47447377,55636239).

 *** Break *** segmentation violation
 Generating stack trace...
 0x00007f4e66cdbb99 in TF1::~TF1() + 0x9 from /usr/lib/x86_64-linux-gnu/libHist.so.5.34
 0x00007f4e6c1794c1 in remollGenPion::wiser_sigma(double, double, double, double, int) at /home/travis/build/JeffersonLab/remoll/src/remollGenPion.cc:246 (discriminator 2) from /home/travis/build/JeffersonLab/remoll/build/libremoll.so
 0x00007f4e6c179913 in remollGenPion::SamplePhysics(remollVertex*, remollEvent*) at /home/travis/build/JeffersonLab/remoll/src/remollGenPion.cc:73 from /home/travis/build/JeffersonLab/remoll/build/libremoll.so
 0x00007f4e6c1ac57f in remollVEventGen::GenerateEvent() at /home/travis/build/JeffersonLab/remoll/src/remollVEventGen.cc:125 from /home/travis/build/JeffersonLab/remoll/build/libremoll.so
 0x00007f4e6c1a03a9 in remollPrimaryGeneratorAction::GeneratePrimaries(G4Event*) at /usr/include/c++/4.8/bits/stl_vector.h:646 from /home/travis/build/JeffersonLab/remoll/build/libremoll.so
 0x00007f4e6a14e8a4 in G4WorkerRunManager::GenerateEvent(int) + 0x2e4 from /usr/lib/x86_64-linux-gnu/libG4run.so.10.3
 0x00007f4e6a14c8dd in G4WorkerRunManager::ProcessOneEvent(int) + 0xd from /usr/lib/x86_64-linux-gnu/libG4run.so.10.3
 0x00007f4e6a14ca79 in G4WorkerRunManager::DoEventLoop(int, char const*, int) + 0x139 from /usr/lib/x86_64-linux-gnu/libG4run.so.10.3
 0x00007f4e6a141a2e in G4RunManager::BeamOn(int, char const*, int) + 0x5e from /usr/lib/x86_64-linux-gnu/libG4run.so.10.3
 0x00007f4e6a14da35 in G4WorkerRunManager::DoWork() + 0x335 from /usr/lib/x86_64-linux-gnu/libG4run.so.10.3
 0x00007f4e6a15797c in G4MTRunManagerKernel::StartThread(void*) + 0x1ac from /usr/lib/x86_64-linux-gnu/libG4run.so.10.3
 0x00007f4e62e72184 in <unknown> from /lib/x86_64-linux-gnu/libpthread.so.0
 0x00007f4e688b0ffd in clone + 0x6d from /lib/x86_64-linux-gnu/libc.so.6

Full log at https://api.travis-ci.org/v3/job/405034698/log.txt and https://travis-ci.org/JeffersonLab/remoll/builds/405034697

wdconinc commented 6 years ago

Likely due to TF and MT interaction. This is at delete wiserfit. Probably needs mutex due to TF.