qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alan Conway (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PROTON-1540) Add options to enable Sanitizers to CMake build
Date Fri, 08 Sep 2017 14:57:00 GMT

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

Alan Conway commented on PROTON-1540:
-------------------------------------

[~jdanek] The python, ruby and go bindings need LD_PRELOAD because the interpreters are not
linked directly by clang/gcc (as our tests and examples are) which automatically adds the
required link to lib*san when -fsanitize flags are present.

Maybe we can avoid the PRELOAD by explicitly linking those libs ourselves somewhere - but
after a few experiments I'm not sure where. 
So PRELOAD is a good solution until we find a better one. We could add it to CMake but I'm
worried about guessing  the library paths wrong and confusing everybody, since a bad LD_PRELOAD
will cause an error message from literally every executable you run, not just our tests/examples.
So for now I think it best to let the user set that.

> 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-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


Mime
View raw message