microsoft / mimalloc

mimalloc is a compact general purpose allocator with excellent performance.
MIT License
10.54k stars 854 forks source link

APP crash issue #952

Open XuSai1998 opened 6 days ago

XuSai1998 commented 6 days ago

I am working on the Windows on ARM app compatibility ecosystem and encountered an issue where the app ZWCAD (https://www.zwcad.com/download-thanks/MTcyOTc2MDQyMmh0dHBzOi8vZGwuendzb2Z0LmNuL3p3Y2FkL2NhZC8yMDI1L1JlbGVhc2UxLjJfTmV3L1pXQ0FEXzIwMjVfMS4yX0Noc19XaW5fNjRiaXQuZXhl/zw) crashes in mimalloc-override.dll, showing a segment pointing to an invalid address. Initially, I suspected that the crash might be due to a double free or other issue within the app. However, I couldn’t reproduce the issue when running the same app on Windows x64.

I noticed the following issue, which I believe might be related to the crash:

mimalloc: option 'disallow_arena_alloc': 0 mimalloc: option 'retry_on_oom': 400 mimalloc: option 'visit_abandoned': 0 mimalloc: option 'debug_guarded_min': 0 mimalloc: option 'debug_guarded_max': 0 mimalloc: guarded build: disabled mimalloc: malloc is redirected. mimalloc-redirect: warning: unable to resolve "ucrtbase.dll!_expand_base" -- enabling MIMALLOC_PATCH_IMPORTS to prevent allocation errors. mimalloc-redirect: warning: unable to resolve "ucrtbase.dll!_recalloc_base" -- enabling MIMALLOC_PATCH_IMPORTS to prevent allocation errors. mimalloc-redirect: warning: unable to resolve "ucrtbase.dll!_msize_base" -- enabling MIMALLOC_PATCH_IMPORTS to prevent allocation errors.

ZW.dmp

XuSai1998 commented 5 days ago

can you provide ARM64EC mimalloc-redirect?