Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ddsim error: corrupted double-linked list and infinite hang on sample with "stable" quarks #1282

Closed
1 task done
Zehvogel opened this issue Jun 26, 2024 · 3 comments · Fixed by #1284
Closed
1 task done
Assignees
Labels

Comments

@Zehvogel
Copy link

Zehvogel commented Jun 26, 2024

Check duplicate issues.

  • Checked for duplicates

Goal

I am interested in the behavior of electrons in a certain process (e+e- to e nu qq). To save on simulation (and reconstruction) time I generated the process without running the parton shower, i.e. the two quarks show up in the file with generator status 1 (stable). My understanding was that the quarks would just not be simulated due to being in the rejection list here:

self._rejectPDGs = {1, 2, 3, 4, 5, 6, # quarks

When I try to run ddsim on the file it hangs after

LCIOFileReader   INFO  Created file reader. Try to open input data/gen/simple_whizard/enuqq.slcio
GenerationInit   INFO  +++ Initializing event 1. Within run:0 event 1.
LCIOFileReader   INFO  read collection MCParticle from event 1 in run 1 
LCIO4            INFO  +++ Particle interaction with 8 generator particles and 2 vertices ++++++++++++++++++++++++
PrimaryHandler   INFO  +++++ G4PrimaryVertex at (+0.00e+00,+0.00e+00,+0.00e+00) [mm] +0.00e+00 [ns]
PrimaryHandler   INFO  +++++ G4PrimaryVertex at (+0.00e+00,+0.00e+00,+0.00e+00) [mm] +0.00e+00 [ns]
ParticleHandler  INFO  +++ Event 0 Begin event action. Access event related information.
### Birks coefficients used in run time
corrupted double-linked list
 *** Break *** abort

when I run with edm4hep output the message is slightly different

LCIOFileReader   INFO  Created file reader. Try to open input data/gen/simple_whizard/enuqq.slcio
Geant4Output2EDM4hep INFO  Opened data/gen/simple_whizard/enuqq.10.SIM.edm4hep.root for output
GenerationInit   INFO  +++ Initializing event 1. Within run:0 event 1.
LCIOFileReader   INFO  read collection MCParticle from event 1 in run 1 
LCIO4            INFO  +++ Particle interaction with 8 generator particles and 2 vertices ++++++++++++++++++++++++
PrimaryHandler   INFO  +++++ G4PrimaryVertex at (+0.00e+00,+0.00e+00,+0.00e+00) [mm] +0.00e+00 [ns]
PrimaryHandler   INFO  +++++ G4PrimaryVertex at (+0.00e+00,+0.00e+00,+0.00e+00) [mm] +0.00e+00 [ns]
ParticleHandler  INFO  +++ Event 0 Begin event action. Access event related information.
### Birks coefficients used in run time
Geant4Output2EDM4hep INFO  +++ Saving EDM4hep event 1 run 1.
corrupted double-linked list
 *** Break *** abort

At first I suspected that my .slcio file is broken but checking it with dumpevent and anajob looks fine...

Operating System and Version

Alma9

compiler

gcc 11.4.1

ROOT Version

6.30/06

DD4hep Version

f3304b4

Reproducer

wget https://cernbox.cern.ch/remote.php/dav/public-files/2LYvjagyMP6ytAl/enuqq.slcio
source /cvmfs/sw-nightlies.hsf.org/key4hep/setup.sh
ddsim --compactFile $K4GEO/FCCee/CLD/compact/CLD_o2_v06/CLD_o2_v06.xml \
      --outputFile enuqq.SIM.slcio \
      --inputFile enuqq.slcio \
      --numberOfEvents 10

Additional context

No response

@Zehvogel Zehvogel added the bug label Jun 26, 2024
@andresailer andresailer self-assigned this Jun 26, 2024
@andresailer
Copy link
Member

andresailer commented Jun 26, 2024

This goes via

if ( status.isSet(G4PARTICLE_GEN_STABLE) ) {
if ( prim.find(p->id) == prim.end() ) {
G4PrimaryParticle* p4 = createG4Primary(p);
prim[p->id] = p4;
res.emplace_back(p,p4);
}
}

No rejections implemented here yet.

@andresailer
Copy link
Member

Please see #1284.

@Zehvogel
Copy link
Author

thx!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants