mirror of
https://github.com/ceph/ceph
synced 2024-12-19 01:46:00 +00:00
ff8d6a730b
the commit d406f228 in gperf implements a c11 feature used by a recent change in rocksdb: 16e03882, which uses aligned_alloc(). and 16e03882 in rocksdb was merged after v5.7 was tagged, while 16e03882 in gperf was merged after v2.6.1 was tagged. because aligned_alloc() is not implemented by tcmalloc until the not-yet-released 2.6.2, if we call aligned_alloc() in an application linked against tcmalloc, what gets called will be the glibc's aligned_alloc(). but if we free() the memory chunk allocated by aligned_alloc(), the tcmalloc's implementation kicks in, then InvalidFree() is called, because the memory chunk being freed was allocated by tcmalloc. in short, "mixing allocators", quote from Dan Mick. in rocksdb, aligned_alloc() is used if _ISOC11_SOURCE is defined, this makes sense, because aligned_alloc() is a C11 function. we could avoid using it by not defining _ISOC11_SOURCE. but as long as _GNU_SOURCE is defined, glibc defines _ISOC11_SOURCE. and libstdc++ requires _GNU_SOURCE, because it uses a fair amount of GNU extensions. Fixes: http://tracker.ceph.com/issues/21422 Signed-off-by: Kefu Chai <kchai@redhat.com> |
||
---|---|---|
.. | ||
AddCephTest.cmake | ||
BuildBoost.cmake | ||
BuildRocksDB.cmake | ||
CTags.cmake | ||
Distutils.cmake | ||
Findaio.cmake | ||
Findbabeltrace.cmake | ||
FindBacktrace.cmake | ||
Findblkid.cmake | ||
Findcryptopp.cmake | ||
FindCython.cmake | ||
Finddpdk.cmake | ||
Findfcgi.cmake | ||
Findfio.cmake | ||
Findfuse.cmake | ||
Findgperftools.cmake | ||
FindJeMalloc.cmake | ||
Findkeyutils.cmake | ||
Findleveldb.cmake | ||
FindLTTngUST.cmake | ||
FindLZ4.cmake | ||
FindNSPR.cmake | ||
FindNSS.cmake | ||
FindOpenLdap.cmake | ||
Findpmem.cmake | ||
FindPython3Interp.cmake | ||
FindPython3Libs.cmake | ||
Findrdma.cmake | ||
Findrocksdb.cmake | ||
Findsnappy.cmake | ||
Findudev.cmake | ||
Findxfs.cmake | ||
Findxio.cmake | ||
Findzfs.cmake | ||
GetGitRevisionDescription.cmake | ||
GetGitRevisionDescription.cmake.in | ||
MergeStaticLibraries.cmake | ||
SIMDExt.cmake |