-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AddressSanitizer failed to allocate on iOS devices #1458
Comments
I am using an iPhone XR iOS 15.0 and memory information about this phone is:
|
I meet similar error. Have you found the root cause? |
遇到相同问题,排查下来原因是内存限制因素,解决方法有两种 |
Lately when I use Xcode 13.0 to build a sanitizer version of my app, it will crash when the app start:
Here is the memory map list:
It seems like the memory map macro in <asan_mapping.h> hadn't check the boundary so
kHighMemBeg
exceedkHighMemEnd
and lead the shadow region to be a negative value:I have modified some code to debug this problem so the line number may not exactly match the upstream repository. After add some sanity check:
This time I failed with
ENOMEM
:I'm not familiar with the iOS kernel, but the memory region seems have plenty free space to allocate 0xdfc000 bytes. Hope someone can give me some hints to fix this.
The text was updated successfully, but these errors were encountered: