Skip to content
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

mmap_fixed somehow broken with newer musl #21

Closed
thehajime opened this issue Oct 10, 2024 · 3 comments
Closed

mmap_fixed somehow broken with newer musl #21

thehajime opened this issue Oct 10, 2024 · 3 comments
Labels
bug Something isn't working
Milestone

Comments

@thehajime
Copy link
Owner

finally crashed on assert at mallocng(free).

Thread 1 "vmlinux" received signal SIGSEGV, Segmentation fault.
                                                               get_meta (p=p@entry=0x703b47d0 "") at
 src/malloc/mallocng/meta.h:141
141    assert(meta->mem == base);
(gdb) bt
#0  get_meta (p=p@entry=0x703b47d0 "") at src/malloc/mallocng/meta.h:141
#1  0x0000000070724db3 in __libc_free (p=0x703b47d0) at src/malloc/mallocng/free.c:105
#2  0x00000000708a7c61 in ?? ()
#3  0x0000000000000000 in ?? ()
@thehajime thehajime added the bug Something isn't working label Oct 10, 2024
@thehajime thehajime added this to the RFC milestone Oct 10, 2024
@thehajime
Copy link
Owner Author

built with DL_NOMMU_SUPPORT=1 seems to fix this issue.

@thehajime
Copy link
Owner Author

mmap_fixed workaround under arch/x86/um doesn't cover all the case of DL_NOMMU_SUPPORT of musl.
the commit should be dropped and use proper musl build (or introduce a switch of #13) to fix this issue.

@thehajime
Copy link
Owner Author

closing as we're now using NOMMU-built musl libc (with custom alpine-CI)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant