qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DISPATCH-809) Add options to enable Sanitizers to CMake build
Date Fri, 15 Sep 2017 18:10:00 GMT

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

ASF subversion and git services commented on DISPATCH-809:
----------------------------------------------------------

Commit e584a3ebaaccca545ec3a716ad2eddce91b3a06b in qpid-dispatch's branch refs/heads/master
from [~jdanek]
[ https://git-wip-us.apache.org/repos/asf?p=qpid-dispatch.git;h=e584a3e ]

DISPATCH-809 Add options to enable Sanitizers to CMake build

Tested to work with gcc 5.4.0, 7.1.0 and clang 4.0.1


> Add options to enable Sanitizers to CMake build
> -----------------------------------------------
>
>                 Key: DISPATCH-809
>                 URL: https://issues.apache.org/jira/browse/DISPATCH-809
>             Project: Qpid Dispatch
>          Issue Type: Improvement
>    Affects Versions: 1.0.0
>            Reporter: Jiri Danek
>            Assignee: Ted Ross
>            Priority: Minor
>             Fix For: 1.0.0
>
>
> The usage is to first enable sanitizers during compilation
> {noformat}
> cmake .. -DUSE_SANITIZERS=ON -DProton_DIR=... -DCMAKE_BUILD_TYPE=Release
> {noformat}
> or
> {noformat}
> cmake .. -DUSE_TSAN=ON -DProton_DIR=... -DCMAKE_BUILD_TYPE=Release
> {noformat}
> (TSan is incompatible with the other sanitizers.)
> Then, either run unit tests with the usual {{ctest -VV}}, or run {{qdrouterd}}.
> Sanitizers can be given parameters in environment variable. For example, {{TSAN_OPTIONS="color=always"
ctest -VV}} to see colored error messages in ctest output. Other options are described on
the Sanitizers website, e.g. https://github.com/google/sanitizers/wiki/ThreadSanitizerFlags
> For best results, also compile Proton with sanitizers.



--
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