Skip to content
Snippets Groups Projects

Fix segfault on exit of macros: unpacking and digitization

Merged Pierre-Alain Loizeau requested to merge p.-a.loizeau/cbmroot:exit_segfault_fix into master
  1. Deletion of source pointer already present at l.145 of the FairRootManager (source), so we should not do it ourselves in CbmDigitization
  2. There is a problem with ownership and pointer deletion of ROOT objects attached to the ROOT global lists when shared pointers are used: if the owners count does not reach 0 before the end of the root session, ROOT "cleans out" the objects in its lists before the end of scope, so any destructor trying to be nice an clean memory it allocated for such objects and never made public will trigger a segmentation violation
    • List of ParAsic in the StsUnpackConfig class sub-members, due to the internal TF1
    • List of histograms and canvases in the UnpackMonitor classes of STS, MUCH, TRD, TOF and RICH

For the TF1 a trick was found to tell ROOT to ignore them.

Edited by Pierre-Alain Loizeau

Merge request reports

Merge request pipeline #17998 passed

Merge request pipeline passed for d5af4b0a

Merged by Florian UhligFlorian Uhlig 2 years ago (Jul 24, 2022 6:15pm UTC)

Loading

Pipeline #18013 passed

Pipeline passed for d5af4b0a on master

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading