]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph.in: only preload asan library if it is enabled 27190/head
authorKefu Chai <kchai@redhat.com>
Tue, 26 Mar 2019 10:11:58 +0000 (18:11 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 27 Mar 2019 01:55:43 +0000 (09:55 +0800)
commit62a4019b2e00abcf5a5b989a96e6e0dd37911361
tree83ce8b70dffd440d324eb6e5dafd9738ccd6db8d
parent44cb44425ce19ee293a0e0f012229cf2389ac271
ceph.in: only preload asan library if it is enabled

my ceph cli hung when i build ceph using `CMAKE_BUILD_TYPE=RelWithDebInfo` and
`WITH_SEASTAR=ON`. because in that case, seastar detects for Sanitize flags
support of the compiler, but it does not pull in the build flags to enable
sanitizers. while `ceph` cli still preloaded the `asan_lib_path` because
`ASAN_LIBRARY` was set. this is not right, as we should enable ASAN at
runtime only if we enable it at compile-time.

so, in this change, we preload the ASAN library when `CMAKE_BUILD_TYPE`
is `Debug` and `WITH_SEASTAR=ON`, or `WITH_ASAN=ON`.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/ceph.in