Bug #2213

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

Added by pospelov about 1 year ago. Updated 12 months ago.

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

0%

Category:-
Target version:Sprint 39

Description

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.

History

#1 Updated by pospelov 12 months ago

  • Assignee set to pospelov

#2 Updated by pospelov 12 months 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