malloc - Redis under asan with jemalloc -


i compiling redis 3.0.6 in 4 different ways:

  1. jemalloc
  2. libc malloc
  3. asan + jemalloc (-fsanitize=address -fno-omit-frame-pointer)
  4. 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

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -