Ivan Maidanski
Ivan Maidanski
Do you use bdwgc master?
Is USE_MMAP_ANON defined or not? Try the opposite, because GC_unix_mmap_get_mem logic is different. The difference in gcconfig.h between arm64 and x64: MPROTECT_VDB is not defined for arm64. I don't think...
> Do you think it may be related to mmap issues other projects have encountered, eg. [nodejs/node#37061 (comment)](https://github.com/nodejs/node/issues/37061#issuecomment-774175983). ? Probably. What's the solution possible? [Apple docs](https://developer.apple.com/documentation/bundleresources/entitlements/com_apple_security_cs_allow-jit) says about MAP_JIT and...
It looks like we need a fix similar to that in [Chromium](https://github.com/inSilo/chromium/blob/9b6d42aea5f897927c0e01775416b215ceb7dfff/src/base/allocator/partition_allocator/page_allocator_internals_posix.h#L87). Will it help? You can quickly try it by adding MAP_JIT
> f I set NO_EXECUTE_PERMISSION in bdwgc for gctest, it appears to run okay. > What are the consequences of not having PROT_EXEC memory for bdwgc ? NO_EXECUTE_PERMISSION is defined...
If someone needs this functionality, patches are welcomed.
Got it. Thank you for the W/A idea.
Okay. It is better to open another issue for this.
Latest build: https://app.travis-ci.com/github/ivmai/bdwgc/jobs/564340279 Source: master (7aa23f4) Compiler: clang-12/ppc64le Config: CFLAGS_EXTRA="-fsanitize=memory,undefined -fno-omit-frame-pointer" CONF_OPTIONS="--disable-shared" Output (gctest): ``` Switched to incremental mode Reading dirty bits from /proc mark.c:223:17: runtime error: member access within...
Build: https://app.travis-ci.com/github/ivmai/bdwgc/jobs/578950319 Source: release-8_2 (295488c) Compiler: clang-12/ppc64le Config: CFLAGS_EXTRA="-fsanitize=memory,undefined -fno-omit-frame-pointer" CONF_OPTIONS="--disable-shared" Output (gctest.log): ``` Switched to incremental mode Reading dirty bits from /proc tests/test.c:518:9: runtime error: member access within null...