]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
librbd: use custom allocator for aligned boost::lockfree::queue
authorJason Dillaman <dillaman@redhat.com>
Tue, 14 May 2019 13:34:04 +0000 (09:34 -0400)
committerJason Dillaman <dillaman@redhat.com>
Wed, 15 May 2019 12:47:41 +0000 (08:47 -0400)
commit7f6685383dfdab1b685c9c4df609feb7fdc97a91
tree63fb3d9c208a8f49abd65e51c23dcc3acadf4ae1
parent99826fbe755c534ec6a8b917c6a9c45c3e08c1e5
librbd: use custom allocator for aligned boost::lockfree::queue

If tcmalloc is in-use as the allocator and its version is less than 2.6.2,
it might be missing support for 'aligned_alloc'. This can result in the
glibc version of 'aligned_alloc' being used to allocate memory that is
then freed by tcmalloc -- resulting in a crash.

Fixes: http://tracker.ceph.com/issues/39703
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
CMakeLists.txt
src/common/allocator.h [new file with mode: 0644]
src/include/config-h.in.cmake
src/librbd/ImageCtx.h