Port-RISCV archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
sudo segfault on startup, within libc
Hi!
I have a brand-new StarFive VisionFive 2 running NetBSD-current. I tried
to install sudo on it, but it segfaults immediately. Running it in gdb
shows that the crash happens even before main:
(gdb) bt
#0 0x00000000000165d4 in getenv_unhooked ()
#1 0x000000000001665e in getenv ()
#2 0x0000003ff7f15a8c in malloc_conf_init_helper () from
/usr/lib/libc.so.12
#3 0x0000003ff7f18216 in malloc_init_hard_a0_locked ()
from /usr/lib/libc.so.12
#4 0x0000003ff7f18528 in malloc_init_hard () from /usr/lib/libc.so.12
#5 0x0000003ff7f1a07c in malloc_default () from /usr/lib/libc.so.12
#6 0x0000003ff7e2e8e4 in btree_allocate_node () from
/usr/lib/libgcc_s.so.1
#7 0x0000003ff7e2eba8 in btree_insert.isra () from /usr/lib/libgcc_s.so.1
#8 0x0000003ff7e2fd2e in __register_frame_info_bases ()
from /usr/lib/libgcc_s.so.1
#9 0x0000003ff86e4d38 in _rtld_call_init_function ()
from /usr/libexec/ld.elf_so
#10 0x0000003ff86e4e7c in _rtld_call_init_functions ()
from /usr/libexec/ld.elf_so
#11 0x0000003ff86e59e0 in _rtld () from /usr/libexec/ld.elf_so
#12 0x0000003ff86e0890 in _rtld_start () from /usr/libexec/ld.elf_so
Backtrace stopped: frame did not save the PC
So far, sudo is the only binary that I saw with this behavior. A trivial C
program, set suid root, works fine.
Any ideas?
--
Benny
Home |
Main Index |
Thread Index |
Old Index