Bug #2213

Unit tests crashing if user system contains own googletest library in LD_LIBRARY_PATH

Added by pospelov about 2 years ago. Updated about 2 years ago.

Status:RejectedStart date:30 Oct 2018
Priority:NormalDue date:
Assignee:pospelov% Done:


Target version:Sprint 39


See https://github.com/scgmlz/BornAgain/issues/677

Within this item, add rpath to our own google tests library location to every unit test executable.


#1 Updated by pospelov about 2 years ago

  • Assignee set to pospelov

#2 Updated by pospelov about 2 years ago

  • Status changed from Sprint to Rejected

It turned out that there is no good way to handle third party libraries appearing in LD_LIBRARY_PATH. Hacking RPATH is possible, but considered as bad practice and it has lots of side effects (for example, the behavior of BornAgain unit test in IDE). That's why we have decided to drop any attempts to protect against malicious libraries in LD_LIBRARY_PATH.

It is a responsibility of the user for LD_LIBRARY_PATH content.

Also available in: Atom PDF