Summary: | dev-libs/mimalloc-2.1.4: fails test-api test on 32-bit architectures | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Sam James <sam> |
Component: | Current packages | Assignee: | Matthew Smith <matthew> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | matthew, sam |
Priority: | Normal | Keywords: | TESTFAILURE |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://github.com/microsoft/mimalloc/issues/882 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
LastTest.log |
Description
Sam James
![]() ![]() ![]() ![]() Created attachment 891585 [details]
LastTest.log
```
[...]
1/3 Testing: test-api
1/3 Test: test-api
Command: "/var/tmp/portage/dev-libs/mimalloc-2.1.4/work/mimalloc-2.1.4_build-abi_x86_32.x86/mimalloc-test-api"
Directory: /var/tmp/portage/dev-libs/mimalloc-2.1.4/work/mimalloc-2.1.4_build-abi_x86_32.x86
"test-api" start time: Apr 23 20:52 BST
Output:
----------------------------------------------------------
test: malloc-zero... ok.
test: malloc-nomem1...
FAILED: malloc-nomem1: /var/tmp/portage/dev-libs/mimalloc-2.1.4/work/mimalloc-2.1.4/test/test-api.c:77
```
I haven't poked at this at all yet to see if flags are causing it etc. Looks like it fails with ABI_X86=32. The line that fails in the test is... > mi_malloc((size_t)PTRDIFF_MAX + (size_t)1) == NULL The test hasn't changed since 2.1.2, and (seemingly) the only code change in this area is https://github.com/microsoft/mimalloc/commit/5050b630389bb4d2013d1e82cc1b2c2d9b65b963 which looks innocent enough. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb65f4903f9b72a0ac51b6192762d659009baf4d commit cb65f4903f9b72a0ac51b6192762d659009baf4d Author: Sam James <sam@gentoo.org> AuthorDate: 2024-05-20 08:10:19 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-05-20 08:10:52 +0000 dev-libs/mimalloc: add 2.1.6 Includes a note to cleanup the libatomic hack in the next release. Bug: https://bugs.gentoo.org/923177 Bug: https://bugs.gentoo.org/931778 Closes: https://bugs.gentoo.org/930519 Signed-off-by: Sam James <sam@gentoo.org> dev-libs/mimalloc/Manifest | 1 + dev-libs/mimalloc/mimalloc-2.1.6.ebuild | 39 +++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) |