Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
eic_container
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
containers
eic_container
Commits
9835be3f
Commit
9835be3f
authored
3 years ago
by
Sylvester Joosten
Browse files
Options
Downloads
Patches
Plain Diff
Add Whit's patch to fix dd4hep particle refcount underflow issue for now
parent
8016ecfe
No related branches found
No related tags found
1 merge request
!215
Add Whit's patch to fix dd4hep particle refcount underflow issue for now
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
spack/packages/dd4hep/package.py
+3
-0
3 additions, 0 deletions
spack/packages/dd4hep/package.py
spack/packages/dd4hep/refcount_underflow.patch
+14
-0
14 additions, 0 deletions
spack/packages/dd4hep/refcount_underflow.patch
with
17 additions
and
0 deletions
spack/packages/dd4hep/package.py
+
3
−
0
View file @
9835be3f
...
...
@@ -51,6 +51,9 @@ class Dd4hep(CMakePackage):
# See https://github.com/spack/spack/issues/24232
patch
(
'
cmake_language.patch
'
,
when
=
'
@:1.16.1
'
)
# hack to fix refcount underflow
patch
(
'
refcount_underflow.patch
'
,
when
=
'
@1.17:
'
)
# custom hash for the 2021-07-27 version, needed to include
# https://github.com/AIDASoft/DD4hep/pull/849
# https://github.com/AIDASoft/DD4hep/pull/851
...
...
This diff is collapsed.
Click to expand it.
spack/packages/dd4hep/refcount_underflow.patch
0 → 100644
+
14
−
0
View file @
9835be3f
diff --git a/DDG4/src/Geant4Particle.cpp b/DDG4/src/Geant4Particle.cpp
index 1db6105c..7f8d7482 100644
--- a/DDG4/src/Geant4Particle.cpp
+++ b/DDG4/src/Geant4Particle.cpp
@@ -57,7 +57,9 @@
Geant4Particle::~Geant4Particle() {
void Geant4Particle::release() {
//::printf("************ Release Geant4Particle[%p]: ID:%d pdgID %d ref:%d\n",(void*)this,id,pdgID,ref-1);
if ( --ref <= 0 ) {
+ if( (ref > -1) ) {
delete this;
+ }
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment