-
Notifications
You must be signed in to change notification settings - Fork 6
additional checks for pointer validity #96
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
base: develop
Are you sure you want to change the base?
Conversation
|
I set up dunetrigger to be in the same state that was throwing the error, but unfortunately this check does not raise a more graceful error than a segfault. It seems that Note that I replaced the throw with a simple cerr, since in offline we cannot use Output of execution: |
|
So I tried something not elegant at all (possibly just wrong), but the behavior changes. If I change the check lines to be: I get Which is better, even though I don't understand why the cerr is not printed (maybe art replaces cerr with an art message?). But I don't know, maybe it's such a particular situation that will never happen in the DAQ, or in the offline (unless includes go missing again for some weird reason) and it's not worth spending more time on it. |
|
Hi @emanuele-villa, thanks for the additional details. Your solution is not applicable in this case. Another thing I wanted to check is whether the map is empty. However, this is not an actual issue, as the code covers the case when the map is empty (same case actually as if the passed algo was not found in the map) and the passed algo is added to the map, so this case does not need covering with an exception. You mentioned that in offline we cannot use I'm happy to give this another go, but would you be able to share the setup that reproduces this issue please? Maybe the issue is before this step completely. |
|
For completeness, this is how the code handles the registration. It starts empty, and one-by-one registers all available algos: |
|
@MRiganSUSX & @emanuele-villa what is the status of this PR, and the related issue? |
This PR adds additional checks for pointers insides a custom map.
This addresses issue #94