microsoft / microsoft/mimalloc

If mimalloc is built with MI_OSX_INTERPOSE=OFF MI_OSX_ZONE=OFF, realpath test case in test-api is broken

Open
#778 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
13.4k
Forks
1.2k
Avg merge
4d 45m
Merged PRs (30d)
13

Description

The failure confirmed on macOS Ventura (x86_64) and Snow Leopard (ppc).
See: https://github.com/macports/macports-ports/pull/19357?notification_referrer_id=NT_kwDOBXwLlrM2OTk0NjU1NzU2OjkyMDE1NTEw#issuecomment-1627030209

It seems to fail here:
```
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x96d19b68
0x00023b3c in _mi_free_generic ()
(gdb) where
#0 0x00023b3c in _mi_free_generic ()
#1 0x0002c720 in mi_heap_realpath () at _string.h:80
#2 0x00004ed4 in main ()
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the realpath case in test-api with MI_OSX_INTERPOSE=OFF and MI_OSX_ZONE=OFF on macOS, then inspect the mi_heap_realpath failure at _string.h:80 and the _mi_free_generic backtrace. Done means the test no longer crashes under these configurations and the existing test-api behavior passes on the affected platforms.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.