]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
tools/ceph-dencoder: link against libtcmalloc
authorKefu Chai <kchai@redhat.com>
Mon, 5 Apr 2021 08:14:10 +0000 (16:14 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 5 Apr 2021 08:30:04 +0000 (16:30 +0800)
commit2365f265b14836a0ac9332d00a0a0edeade255ad
treefaac32ae96b59babde1a26ff9ae46a66a2173b63
parent7fb0569ec36305cd9d6c36073a7ea78c8ab7d14c
tools/ceph-dencoder: link against libtcmalloc

to address the failure like

src/tcmalloc.cc:332] Attempt to free invalid pointer 0x5627da496130
Aborted

we need to link and load libtcmalloc before it is loaded by a shared
library, otherwise the memory chunk allocated by libc will be freed
by tcmalloc after it is loaded.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/tools/ceph-dencoder/CMakeLists.txt