[ 
https://issues.apache.org/jira/browse/PROTON-1540?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16158770#comment-16158770
 ] 

Jiri Danek edited comment on PROTON-1540 at 9/8/17 3:17 PM:
------------------------------------------------------------

[~aconway] The only way I can think of is to create a "custom python 
interpreter" using libpython, which would run the tests. It should be possible 
to modify some embedded python tutorial to do this. This custom interpreter can 
then be linked with the sanitizers and should not need LD_PRELOAD.

I do not know how to detect path to sanitizer libs in CMake, in a portable way. 
Having users confiture LD_PRELOAD for themselves is OK, I think.

In case of go, there is https://golang.org/doc/articles/race_detector.html. It 
should be possible to enable that somehow in the build. I will try to have a 
look at it.


was (Author: jdanek):
[~aconway] The only way I can think of is to create a "custom python 
interpreter" using libpython, which would run the tests. It should be possible 
to modify some embedded python tutorial to do this. This custom interpreter can 
then be linked with the sanitizers and should not need LD_PRELOAD.

I do not know how to detect path to sanitizer libs in CMake, in a portable way.

In case of go, there is https://golang.org/doc/articles/race_detector.html. It 
should be possible to enable that somehow in the build. I will try to have a 
look at it.

> Add options to enable Sanitizers to CMake build
> -----------------------------------------------
>
>                 Key: PROTON-1540
>                 URL: https://issues.apache.org/jira/browse/PROTON-1540
>             Project: Qpid Proton
>          Issue Type: Improvement
>          Components: build
>            Reporter: Jiri Danek
>            Assignee: Alan Conway
>            Priority: Minor
>              Labels: patch
>             Fix For: proton-c-0.18.0
>
>
> To get the most out of sanitizers in Qpid Dispatch, it helps to compile 
> Proton with sanitizers as well.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org

Reply via email to