New jemalloc breaks mipsn64 (the 64bit userland)
Martin Husemann <[email protected]> Mon, 3 Feb 2025 07:28:40 +0100
| Newsgroups | gmane.os.netbsd.ports.mips.devel |
|---|---|
| Message-ID | <[email protected]> |
Hey folks, the recent switch to newer jemalloc in libc causes my 64bit userland (evbmipsn64-eb) to break big time, I get coredumps from most binaries including sshd and login. The obvious change between both versions is the default minimum alignment: Old code had #define LG_QUANTUM 3 unconditionally for mips (so jemalloc guarantees 2^3 bytes alignment for all allocations). New code does: # ifdef __mips__ # if defined(__mips_n32) || defined(__mips_n64) # define LG_QUANTUM 4 # else # define LG_QUANTUM 3 # endif # endif so in my case alignment should increase from 2^3 to 2^4. But I don't see how an increased default alignement could break things. I will try to get more info out of the cores with a cross-gdb, but need to extract the files first... Any ideas? Martin