malloc - Redis under asan with jemalloc -
i compiling redis 3.0.6 in 4 different ways:
- jemalloc
- libc malloc
- asan + jemalloc (
-fsanitize=address -fno-omit-frame-pointer
) - asan + libc malloc
then run standard redis-bench
under of binaries. don't understand scenario 3
has performance very close scenario 1
.
can explain me how possible? didn't find on asan manual doesn't support jemalloc or relevant.
you didn't provide exact repro-case guess you
- use gcc
- link jemalloc using ld_preload
in case, jemalloc's allocator override asan's interceptors , heap allocations won't checked (which explain no slowdown in run). instead should statically link executable jemalloc:
ldflags += -ljemalloc
i think ideally asan should report helpful warning when fails intercept heap allocator may want file bug @ github.
Comments
Post a Comment