Segmentation fault in fInterface.crmc_generate(...)
Dear CRMC Team, I'm trying to run on WSL Ubuntu 22.04.2 LTS, and I've taken the following steps:
1. Installed Boost 1.78.0 from source code.
2. Installed HepMC 3.2.4 using pip.
3. Cloned the master branch of CRMC
and I successfully built CRMC with the following cmake command:
cmake ../ \
-DCRMC_GEANT4=ON \
-DCRMC_GEANT4PHYS=ON \
-DCRMC_DPMJET06=ON \
-DCRMC_DPMJET17=OFF \
-DCRMC_DPMJET19=OFF \
-DCRMC_PHOJET=ON \
-DCRMC_PYTHIA=ON \
-DCRMC_QGSJET01=ON \
-DCRMC_QGSJETII03=ON \
-DCRMC_QGSJETII04=ON \
-DCRMC_SIBYLL=ON \
-DCMAKE_INSTALL_PREFIX=../install \
-DBOOST_ROOT=/home/cmo/packages/install
make install -j9
The entire build process runs without any errors, except for a warning about the Fastjet library during the cmake session.
However, when I attempt to run tests or execute ./crmc -c crmc.param, I consistently encounter a segmentation fault. Here is the full output:
>> crmc << seed: 412774043 (automatic) projectile id: 1 (p) projectile momentum: 3500 target id: 1 (p) target momentum: -3500 number of collisions: 500 parameter file name: crmc.param output file format: HepMC3+gzip output file name: /home/cmo/jb_dataspell/trident/crmc/crmc/build/crmc_eposlhc_412774043_p_p_3500.hepmc.gz HE model: 0 (EPOS-LHC) Opening: libEpos.so initializations ... ################################################################### # EPOS LHC K. WERNER, T. PIEROG # # Contact: tanguy.pierog@kit.edu # ################################################################### # WARNING: This is a special retuned version !!! # # Do not publish results without contacting the authors. # ################################################################### read from /home/cmo/jb_dataspell/trident/crmc/crmc/tabs/epos.iniev ... read from /home/cmo/jb_dataspell/trident/crmc/crmc/tabs/epos.initl ... read from /home/cmo/jb_dataspell/trident/crmc/crmc/tabs/epos.inirj.lhc ... read from /home/cmo/jb_dataspell/trident/crmc/crmc/tabs/epos.inics.lhc ... seedj: 412774043 0.2000000000000000D+01 Segmentation fault
After some debugging, I've traced the fault to line 79 of CRMC.cc, specifically in the fInterface.crmc_generate(...).
I would greatly appreciate your guidance and assistance in resolving this segmentation fault issue.
Please do let me know if you need more information.
Best regards, Cen Mo