Andrew Stitcher created PROTON-2372:
---------------------------------------

             Summary: [macOS] python/ruby tests don't work with ASAN build
                 Key: PROTON-2372
                 URL: https://issues.apache.org/jira/browse/PROTON-2372
             Project: Qpid Proton
          Issue Type: Bug
          Components: proton-c
    Affects Versions: proton-c-0.34.0
         Environment: macOSX 10.15, AppleClang 12
            Reporter: Andrew Stitcher


Running python-test under ASAN requires preloading the asan dynamic library 
into the python process before any other library. Under Linux this is achieved 
with a combination of ldd (to figure out if the asan library is being used and 
LD_PRELOAD to tell ld.so to preload the asan library found with ldd before 
anything else.

MacOS has no {{ldd}} tool - it does have a similar tool - {{otool}} and the 
dynamic loader ({{dyld}}) doesn't use the LD_PRELOAD variable either. It uses 
{{DYLD_INSERT_LIBRARIES}}.

So changes will need to made to the {{tests/preload_asan.sh}} script to take 
account of these differences to run all the tests under ASAN.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to