Skip to content

dev3 crashes on Android #1058

Description

After fixing infinite recursion in #1057 I was able to launch a build with MI_DEBUG_FULL on Android and it's failing with such callstack:

abort (@abort:44)
_mi_assert_fail (mimalloc/src/options.c:540)
_mi_page_map_register (mimalloc/src/page-map.c:284)
mi_arenas_page_alloc_fresh (mimalloc/src/arena.c:703)
mi_arenas_page_regular_alloc (mimalloc/src/arena.c:727)
_mi_arenas_page_alloc (mimalloc/src/arena.c:766)
mi_page_fresh_alloc (mimalloc/src/page.c:305)
mi_page_fresh (mimalloc/src/page.c:335)
mi_page_queue_find_free_ex (mimalloc/src/page.c:807)
mi_find_free_page (mimalloc/src/page.c:848)
mi_find_page (mimalloc/src/page.c:929)
_mi_malloc_generic (mimalloc/src/page.c:965)
_mi_page_malloc_zero (mimalloc/src/alloc.c:42)
mi_heap_malloc_small_zero (mimalloc/src/alloc.c:151)
_mi_heap_malloc_zero_ex (mimalloc/src/alloc.c:176)
_mi_heap_malloc_zero (mimalloc/src/alloc.c:200)
mi_heap_malloc (mimalloc/src/alloc.c:204)
mi_malloc (mimalloc/src/alloc.c:208)
__register_atfork (@__register_atfork:14)
pthread_once (@pthread_once:37)
scudo_malloc_set_zero_contents (@scudo_malloc_set_zero_contents:55)
__libc_preinit_impl() (@__libc_preinit_impl():16)
__dl__ZL13call_functionPKcPFviPPcS2_ES0_ (@__dl__ZL13call_functionPKcPFviPPcS2_ES0_:38)
__dl__ZL10call_arrayIPFviPPcS1_EEvPKcPT_mbS5_ (@__dl__ZL10call_arrayIPFviPPcS1_EEvPKcPT_mbS5_:46)
__dl__ZN6soinfo17call_constructorsEv (@__dl__ZN6soinfo17call_constructorsEv:96)
__dl__ZN6soinfo17call_constructorsEv (@__dl__ZN6soinfo17call_constructorsEv:40)
__dl__ZN6soinfo17call_constructorsEv (@__dl__ZN6soinfo17call_constructorsEv:40)
__dl__ZN6soinfo17call_constructorsEv (@__dl__ZN6soinfo17call_constructorsEv:40)
__dl__ZL29__linker_init_post_relocationR19KernelArgumentBlockR6soinfo (@__dl__ZL29__linker_init_post_relocationR19KernelArgumentBlockR6soinfo:1048)
__dl___linker_init (@__dl___linker_init:129)
__dl__start (@__dl__start:5)

So the _mi_page_map is NULL in page-map.c:_mi_page_map_register. Any idea what's happening here?
Note: it's happening before mi_process_attach was called, but I suspect it's also the case on dev2.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleIssue has seen no recent activity

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions