Page MenuHomeFreeBSD

libthr: Add a stop indicator to thread_start to satisfy unwinders
AbandonedPublic

Authored by dchagin on Jun 21 2023, 8:13 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Sep 30, 7:57 PM
Unknown Object (File)
Mon, Sep 29, 10:00 AM
Unknown Object (File)
Mon, Sep 29, 9:57 AM
Unknown Object (File)
Sep 9 2025, 7:30 PM
Unknown Object (File)
Aug 10 2025, 5:32 AM
Unknown Object (File)
Jul 6 2025, 10:24 AM
Unknown Object (File)
Jun 29 2025, 5:44 PM
Unknown Object (File)
Jun 27 2025, 10:54 PM
Subscribers

Details

Reviewers
andrew
Summary

The right unwinding stop indicator should be CFI-undefined PC.
https://dwarfstd.org/doc/Dwarf3.pdf - page 118:

  • If a Return Address register is defined in the virtual unwind table,

and its rule is undefined (for example, by DW_CFA_undefined), then
there is no return address and no call address, and the virtual
unwind of stack activations is complete.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 52246
Build 49137: arc lint + arc unit