-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
Poorly-documented safety assumptions in unix::stack_overflow::init #127841
Copy link
Copy link
Open
Labels
A-runtimeArea: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflowsArea: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflowsA-stack-probeArea: Stack probing and guard pagesArea: Stack probing and guard pagesA-threadArea: `std::thread`Area: `std::thread`T-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-runtimeArea: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflowsArea: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflowsA-stack-probeArea: Stack probing and guard pagesArea: Stack probing and guard pagesA-threadArea: `std::thread`Area: `std::thread`T-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Relevant history:
It's not clear, to me, why the update of the
NEEDS_ALTSTACKvariable is occurring. I don't know everything there is to know about signal handlers, but I do knowWe have two fairly distinct codepaths for
make_handler. In code we control, we only call one or the other (i.e. a constant input). They're really quite different functions. So it's not clear where the logical dependencies emerge between the two.