tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: rust-1.66.1 stalls



> Date: Sat, 11 Mar 2023 08:26:29 +0900
> From: Makoto Fujiwara <makoto%ki.nu@localhost>
> 
> On NetBSD/9.0 amd64, process is being stalled, and I did kill it (17371) manually
> ...
> 0x00007f7e9380c3aa in ___lwp_park60 () from /usr/libexec/ld.elf_so
> (gdb) bt
> #0  0x00007f7e9380c3aa in ___lwp_park60 () from /usr/libexec/ld.elf_so
> #1  0x00007f7e93801595 in _rtld_shared_enter () from /usr/libexec/ld.elf_so
> #2  0x00007f7e93800b9b in _rtld_bind () from /usr/libexec/ld.elf_so
> #3  0x00007f7e938007fd in _rtld_bind_start () from /usr/libexec/ld.elf_so
> #4  0x0000000000000246 in ?? ()
> #5  0x000071568c4a1d20 in opendir () from /usr/lib/libc.so.12
> #6  0x000071568c506cf9 in je_jemalloc_prefork () from /usr/lib/libc.so.12
> #7  0x000071568d037c00 in ?? ()
> #8  0x0000000000000144 in ?? ()
> #9  0x0000000165ca82c1 in std::sys::unix::process::process_inner::<impl std::sys::unix::process::process_common::Command>::do_exec ()
> #10 0x0000000165ca7d41 in std::sys::unix::process::process_inner::<impl std::sys::unix::process::process_common::Command>::spawn ()

This looks like it could be the rtld fork locking bug, which has been
fixed and pulled up to netbsd-9:

https://mail-index.netbsd.org/source-changes/2020/04/16/msg116256.html
https://releng.netbsd.org/cgi-bin/req-9.cgi?show=907

Can you try with a newer rtld?  It should suffice to take
/usr/libexec/ld.elf_so from 9.1 or later and copy it into your 9.0
installation.

Alternatively, if you just want to ensure the packages appear to be
compiled against 9.0 for the sake of pkg_add's version check warning,
you could use pkgtools/libkver to forge the uname version output.


Home | Main Index | Thread Index | Old Index