> Date: Mon, 15 Apr 2024 00:21:32 +0000 > From: Emmanuel Dreyfus <m...@netbsd.org> > > I cross-build i386 packages on an amd64 machine, using pkg_comp with > CFLAHS-m32 in /etc/mk.conf. > > That worked well on NetBSD-9 but after upgradint to NetBSD-10.0, I get > random SIGSEGV. Here are a few backtrace examples: > > In sed: > #0 0xf0d63c00 in je_malloc_tsd_boot0 () from /lib/libc.so.12 > #1 0xf0dc17ea in malloc_init_hard () from /lib/libc.so.12 > #2 0xfb8d6633 in _rtld_call_init_function () from /usr/libexec/ld.elf_so > #3 0xfb8d68f0 in _rtld_call_init_functions () from /usr/libexec/ld.elf_so > #4 0xfb8d7297 in _rtld () from /usr/libexec/ld.elf_so > #5 0xfb8d051a in rtld_start () from /usr/libexec/ld.elf_so
Can you get a stack trace with debug.tgz installed so we have source location for all of this? Can you share `disas 0xf0d63c00' output? > In perl: > #0 0xf47fd5d9 in calloc () from /lib/libc.so.12 same with 0xf47fd5d9 > In rm: > #0 0xf7bec157 in free () from /lib/libc.so.12 same here > In sh: > #) 0xefe46ae7 in _malloc_postfork_child () from /lib/libc.so.12 same here