-
Notifications
You must be signed in to change notification settings - Fork 157
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
fix: Output ROOT file closing on destruct #1296
fix: Output ROOT file closing on destruct #1296
Conversation
While I believe the writing should happen in `endRun`, I've seen segfaults when ROOT's exit handler tries to close them and sees corrupted memory. This PR should fix that for these two classes.
Codecov Report
@@ Coverage Diff @@
## main #1296 +/- ##
=======================================
Coverage 47.43% 47.43%
=======================================
Files 375 375
Lines 19785 19785
Branches 9290 9290
=======================================
Hits 9385 9385
Misses 4020 4020
Partials 6380 6380 📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
Does this problem affect only these two classes? I am asking, because we use the same approach for some/all other writer-classes. |
We certainly could. I saw crashes for these two classes specifically, so those are the ones I touched for now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes look good to me, but I think we should do one of the following:
- Check and adapt the other writer-classes
- Open an Issue to not forget about ^ in the future
We could extend the scope of #881 for this purpose, @AJPfleger? |
Yes, #881 seems well suited. |
While I believe the writing should happen in
endRun
, I've seensegfaults when ROOT's exit handler tries to close them and sees
corrupted memory. This PR should fix that for these two classes.