Page MenuHomeFreeBSD

rtld: add some dlopen tests
ClosedPublic

Authored by kevans on Feb 13 2024, 2:31 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Sep 29, 12:47 AM
Unknown Object (File)
Sun, Sep 21, 8:05 AM
Unknown Object (File)
Wed, Sep 17, 8:02 PM
Unknown Object (File)
Sep 7 2025, 3:10 PM
Unknown Object (File)
Sep 3 2025, 11:22 PM
Unknown Object (File)
Sep 3 2025, 7:38 PM
Unknown Object (File)
Sep 3 2025, 4:53 PM
Unknown Object (File)
Aug 30 2025, 3:49 PM
Subscribers

Details

Summary

dlopen_basic just tests that libthr.so can be dlopen()ed, which will
just serve as a sanity check that "libthr.so" is a thing that can be
dlopened in case we get a weird failure in dlopen_recursing.

dlopen_recursing tests a regression reported after the libsys split,
where some dlopen() may cause infinite recursion and a resulting crash.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

How fresh are processes where ATF executes tests? Would both dlopen_basic and dlopen_recursing execute in the same image sequentially, or ATF spawns/execs a new process to run each test?

In D43859#1000568, @kib wrote:

How fresh are processes where ATF executes tests? Would both dlopen_basic and dlopen_recursing execute in the same image sequentially, or ATF spawns/execs a new process to run each test?

Each individual test case within a program will always be executed in a fresh image -- ATF doesn't have any way to request multiple tests in a single execution of the test program

This revision is now accepted and ready to land.Feb 13 2024, 4:08 AM
This revision was automatically updated to reflect the committed changes.