segfault on musl due to vmalloc
Steps to reproduce
simply run gvpr
with musl-libc, segfault, 2.44.1
Additional info
It seems that the stub vmalloc from lib/vmalloc/malloc.c overrides the musl-libc malloc
(linker and loader things). So malloc
in gvpr always return NULL.
And everything works if I add -Dcray
to CFLAGS/CXXFLAGS to disable those stubs in lib/vmalloc/{malloc.c,vmbest.c}. You can check my working building sciprts here.