foonathan / memory

STL compatible C++ memory allocator library using a new RawAllocator concept that is similar to an Allocator but easier to use and write.
https://memory.foonathan.net
zlib License
1.5k stars 194 forks source link

Test fails on Android arm64-v8a #176

Open hutorny opened 9 months ago

hutorny commented 9 months ago

The tests are build on main branch with the latest NDK When run on Android prints three errors

FATAL ERROR: REQUIRE( detail::is_aligned(ptr, def_alignment) ) is NOT correct!

The test log and a dockerfile to build the library and test for Android are attached in the zip file foonathan_memory_test.zip

The following script can be used to build and reproduce the issue:

sudo apt-get install docker-buildx
docker buildx build -t foonathan_memory -f foonathan_memory.dockerfile .
mkdir -p -m 777 output/android-21/arm64-v8a && docker run -v $(pwd)/output:/output foonathan_memory bash -c 'cp foonathan_memory/build/android-21/arm64-v8a/test/foonathan_memory_test /output/android-21/arm64-v8a'
adb push /output/android-21/arm64-v8a/foonathan_memory_test /data/local/tmp/
adb shell /data/local/tmp/foonathan_memory_test