Fix PluginService segfault at initialize when LD_LIBRARY_PATH is not defined
I noticed by chance that when LD_LIBRARY_PATH
is not defined and the PluginService is initialized we get a segfault.
This happens because I had (the equivalent of)
std::string_view s{std::getenv("LD_LIBRARY_PATH")};
but std::getenv
returns nullptr
if the variable is not defined and std::string_view{nullptr}
segfaults.
Merge request reports
Activity
changed milestone to %v36r5
added lhcb-gaudi-head label
- [2022-03-24 00:04] Validation started with lhcb-gaudi-head#3196
- [2022-03-24 00:34] Validation started with lhcb-run2-gaudi-head#295
- [2022-03-25 00:06] Validation started with lhcb-gaudi-head#3197
- [2022-03-25 00:39] Validation started with lhcb-run2-gaudi-head#296
Edited by Software for LHCbmentioned in commit e5a28ebe
mentioned in issue #229
mentioned in merge request lhcb/LHCb!3528 (merged)
Please register or sign in to reply