]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crimson: keep seastar's sanitizers in lockstep with WITH_ASAN 69856/head
authorKefu Chai <k.chai@proxmox.com>
Wed, 1 Jul 2026 05:01:05 +0000 (13:01 +0800)
committerKefu Chai <k.chai@proxmox.com>
Wed, 1 Jul 2026 05:02:57 +0000 (13:02 +0800)
commit2b638869b2986386733fbb29ed95c57f84c4f931
treeb52abee571dd30319531fc77e041cf58a09a1dad
parent94bf1d7087d15fe7d6c036a1ef52c4941fdffc0e
crimson: keep seastar's sanitizers in lockstep with WITH_ASAN

Seastar_SANITIZE defaults to "DEFAULT", which turns on ASan and UBSan for
Debug and Sanitize builds regardless of ceph's WITH_ASAN. A Debug build
with WITH_ASAN=OFF then instruments seastar while ceph links tcmalloc, and
the seastar tests crash before main() because ASan calls the allocator via
dlsym before it is initialized.

Force Seastar_SANITIZE to follow WITH_ASAN, next to the other forced
Seastar_* cache variables, so seastar is sanitized only when ceph is. This
keeps the fix on the ceph side instead of carrying a seastar fork patch.

Signed-off-by: Kefu Chai <k.chai@proxmox.com>
src/CMakeLists.txt