You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to use CacheLib with a ARM64 machine, however, it failed to complete unit tests related to AllocationClass:
[==========] Running 20 tests from 1 test suite.
[----------] Global test environment set-up.
[----------] 20 tests from AllocationClassTest
[ RUN ] AllocationClassTest.Basic
[ OK ] AllocationClassTest.Basic (1 ms)
[ RUN ] AllocationClassTest.AllocFree
[ OK ] AllocationClassTest.AllocFree (40 ms)
[ RUN ] AllocationClassTest.BadFree
[ OK ] AllocationClassTest.BadFree (40 ms)
[ RUN ] AllocationClassTest.AddReleaseSlab
[ OK ] AllocationClassTest.AddReleaseSlab (77 ms)
[ RUN ] AllocationClassTest.CurrentSlabRelease
[ OK ] AllocationClassTest.CurrentSlabRelease (5 ms)
[ RUN ] AllocationClassTest.SlabReleaseAbort
[ OK ] AllocationClassTest.SlabReleaseAbort (5 ms)
[ RUN ] AllocationClassTest.SlabReleaseAllFree
[ OK ] AllocationClassTest.SlabReleaseAllFree (6 ms)
[ RUN ] AllocationClassTest.ReleaseSlabWithActiveAllocations
[ OK ] AllocationClassTest.ReleaseSlabWithActiveAllocations (6 ms)
[ RUN ] AllocationClassTest.ReleaseSlabMultithread
Core dumped
After our investigation, we believe the problem is caused by the wrong use (or even the incorrect implementation) of folly::DistributedMutex. By replacing it with std::mutex avoids core dump, but it is just for temporary rather than production.
The text was updated successfully, but these errors were encountered:
alogfans
changed the title
Potential race in AllocationClass
[Bug] Core dump when running MemoryAllocatorTest & MemoryPoolTest
Dec 18, 2024
I want to use CacheLib with a ARM64 machine, however, it failed to complete unit tests related to AllocationClass:
After our investigation, we believe the problem is caused by the wrong use (or even the incorrect implementation) of
folly::DistributedMutex
. By replacing it withstd::mutex
avoids core dump, but it is just for temporary rather than production.The text was updated successfully, but these errors were encountered: