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

RVP <[email protected]>
Newsgroups gmane.os.netbsd.devel.toolchain
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.