tech-toolchain archive

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

Re: ld.elf_so core dump: NULL ehdr in _rtld_init



On Sat, 27 Jul 2024, Thomas Klausner wrote:

I've filed a bug report because backtrace-rs (the backtrace support in
rust) has a self test that dumps core.

https://github.com/rust-lang/backtrace-rs/issues/644

When asked for details, I noticed that it's actually a core dump in
ld.elf_so.


The program is trying to run the executable like this[1]:

	/libexec/ld.elf_so prog args...

This works on Linux and FreeBSD, but, "direct execution mode" isn't supported
on NetBSD as far as I can see.

Better turn this test off on NetBSD.

-RVP

[1] https://github.com/rust-lang/backtrace-rs/blob/master/tests/current-exe-mismatch.rs#L56


Home | Main Index | Thread Index | Old Index