Skip to content

Conversation

@al45tair
Copy link
Contributor

@al45tair al45tair commented Nov 1, 2023

There's no need for fatalError() to try to generate its own backtraces when the runtime's backtracer is enabled. Not only is the code it uses more fragile but it also doesn't support async or inline frames and it can't look-up symbols properly either.

rdar://117470489

…s active.

There's no need for fatalError() to try to generate its own backtraces
when the runtime's backtracer is enabled.  Not only is the code it uses
more fragile but it also doesn't support async or inline frames and it
can't look-up symbols properly either.

rdar://117470489
@al45tair al45tair requested a review from a team as a code owner November 1, 2023 10:27
@al45tair al45tair requested a review from mikeash November 1, 2023 10:27
@al45tair
Copy link
Contributor Author

al45tair commented Nov 1, 2023

@swift-ci Please smoke test

The Runtime/backtrace test is a test of the fatalError() backtracer,
which gets turned off when we have the new backtracer enabled.  So,
to make this test work, we need to turn off the new backtracer.

rdar://117470489
@al45tair
Copy link
Contributor Author

al45tair commented Nov 1, 2023

@swift-ci Please smoke test

@al45tair
Copy link
Contributor Author

al45tair commented Nov 8, 2023

@swift-ci Please smoke test

When backtracing is disabled, don't try to refer to
`_swift_backtraceSettings`.

rdar://117470489
@al45tair
Copy link
Contributor Author

al45tair commented Nov 8, 2023

@swift-ci Please smoke test

@al45tair
Copy link
Contributor Author

al45tair commented Nov 9, 2023

@swift-ci Please smoke test Windows platform.

@al45tair al45tair merged commit 3d9533d into swiftlang:main Nov 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants