microsoft / microsoft/mimalloc
Test problems on Raspberry Pi
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 13.4k
- Forks
- 1.2k
- Avg merge
- 4d 45m
- Merged PRs (30d)
- 13
Description
mimalloc-test-api and mimalloc-test-stress problems after
successful build on Raspberry Pi Model B Plus, OS - Raspberry Pi OS 10 (Buster) (32-bit).
gcc - (Raspbian 8.3.0-6+rpi1) 8.3.0, cmake - 3.13.4.
Output from tests and cpuinfo (CPU overlocked):
```
# ./mimalloc-test-api
test: malloc-zero... ok.
test: malloc-nomem1...
FAILED: /var/tmp/gh/mimalloc/test/test-api.c:87:
{ result = (mi_malloc(SIZE_MAX/2) == NULL); }
test: malloc-null... ok.
test: calloc-overflow... ok.
test: calloc0... ok.
test: posix_memalign1... ok.
test: posix_memalign_no_align... ok.
test: posix_memalign_zero... ok.
test: posix_memalign_nopow2... ok.
test: posix_memalign_nomem... ok.
test: malloc-aligned1... ok.
test: malloc-aligned2... ok.
test: malloc-aligned3... ok.
test: malloc-aligned4... ok.
test: malloc-aligned5... ok.
test: malloc-aligned-at1... ok.
test: malloc-aligned-at2... ok.
test: memalign1... ok.
test: heap_destroy... ok.
test: heap_delete... ok.
test: realpath... ok.
test: stl_allocator1... ok.
test: stl_allocator2... ok.
---------------------------------------------
succeeded: 22
failed : 1
# ./mimalloc-test-stress
Using 32 threads with a 10% load-per-thread and 50 iterations
heap stats: peak total freed unit count
reserved: 386.1 mb 720.2 mb 336.2 mb 1 b not all freed!
committed: 2.9 gb 3.4 gb 524.7 mb 1 b not all freed!
reset: 0 b 0 b 0 b 1 b ok
touched: 0 b 0 b 7.6 gb 1 b ok
segments: 12.7 k 15.0 k 15.0 k not all freed!
-abandoned: 1.4 k 4.0 k 4.0 k not all freed!
-cached: 0 0 0 ok
pages: 50.8 k 61.1 k 61.0 k not all freed!
-abandoned: 9.4 k 19.5 k 19.4 k not all freed!
-extended: 0
-noretire: 0
mmaps: 0
commits: 3.1 k
threads: 32 1.5 k 3.1 k ok
searches: 0.0 avg
numa nodes: 1
elapsed: 113.000 s
process: user: 93.000 s, system: 15.000 s, faults: 5, rss: 358.4 mb, commit: 2.9 gb
# cat /proc/cpuinfo
processor : 0
model name : ARMv6-compatible processor rev 7 (v6l)
BogoMIPS : 697.95
Features : half thumb fastmult vfp edsp java tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xb76
CPU revision : 7
Hardware : BCM2835
Revision : 0010
Serial : 00000000fa7548bf
Model : Raspberry Pi Model B Plus Rev 1.2
# free
total used free shared buff/cache available
Mem: 474640 34012 420060 568 20568 405484
Swap: 1023996 16384 1007612
```
Regards.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing mimalloc-test-api and mimalloc-test-stress on the reported Raspberry Pi Model B Plus environment. Inspect test/test-api.c at line 87 and compare both test outputs with a supported system; done means the Raspberry Pi-specific failures are explained and the appropriate test or allocator behavior is corrected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, cmake, linux, raspberry-pi
- Domain
- embedded-iot, operating-systems, testing-qa
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100