G4-FLUKA interface seg fault

Hi everyone,

I have been testing the recent GEANT4/FLUKA interface. I have followed the instructions for the hadron-nucleus reaction cross sections example step by step. I didn’t have any problems compiling anything, but when I run it I get:

./build/HadronNucleusXS all_XS.in G4_HP_CFLUKAHI


Geant4 version Name: geant4-11-02-patch-01 [MT] (16-February-2024)
Copyright : Geant4 Collaboration
References : NIM A 506 (2003), 250-303
: IEEE-TNS 53 (2006), 270-278
: NIM A 835 (2016), 186-225
WWW : http://geant4.org/


<<< Geant4 Physics List simulation engine: G4_HP_CernFLUKAHadronInelastic_PhysicsList

    !!!!!!!!!!!!! fluka_interface::initialize()

CALL CMSPPR
Segmentation fault (core dumped)

Running the same example for FTFP_BERT ( ./build/HadronNucleusXS all_XS.in FTFP_BERT_HP) works well.

Dear Lucas,

First of all, sorry for the late reply, I was on holiday for 2 weeks.

With geant4-11-02-patch-01 [MT] (16-February-2024) and FLUKA 4-4.0, I could not reproduce this issue, running ./build/HadronNucleusXS all_XS.in G4_HP_CFLUKAHI at examples/extended/hadronic/FlukaCern/ProcessLevel/CrossSection.

This issue appears when a FLUKA subroutine is called for the first time.

  • Which is your OS?
  • Did you not forget to source FlukaInterface/env_FLUKA_G4_interface.sh?
  • With echo $FLUKADATA, what do you get?

Thanks in advance, and sorry again for the delayed answer,
Gabrielle