Skip to content

Attach backtrace signal handling with fl::init()#1132

Closed
jacobkahn wants to merge 8 commits intoflashlight:mainfrom
jacobkahn:backward_link
Closed

Attach backtrace signal handling with fl::init()#1132
jacobkahn wants to merge 8 commits intoflashlight:mainfrom
jacobkahn:backward_link

Conversation

@jacobkahn
Copy link
Copy Markdown
Member

@jacobkahn jacobkahn commented Jun 13, 2023

Downstream libs didn't properly initialize signal handling because the backward-cpp signal handler was a static in a C++ file and that could be loaded arbitrarily based on compilation options (static vs shared) and platforms.

Move signal handling init into fl::init(), which now calls initLogging() which conditionally calls initBackward() if compiled to not be a noop.

Also change the name of the directory from common/backward to common/stacktrace.

Test plan: CI

@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Jun 13, 2023
@jacobkahn jacobkahn changed the title Improve backward signal handling to attach with fl::init() Have backward signal handling to attach with fl::init() Jun 17, 2023
@jacobkahn jacobkahn changed the title Have backward signal handling to attach with fl::init() Attach backtrace signal handling with fl::init() Jun 17, 2023
@facebook-github-bot
Copy link
Copy Markdown

@jacobkahn has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Copy Markdown

@jacobkahn has updated the pull request. You must reimport the pull request before landing.

@facebook-github-bot
Copy link
Copy Markdown

@jacobkahn has updated the pull request. You must reimport the pull request before landing.

@jacobkahn jacobkahn marked this pull request as ready for review June 18, 2023 05:18
@facebook-github-bot
Copy link
Copy Markdown

@jacobkahn has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

1 similar comment
@facebook-github-bot
Copy link
Copy Markdown

@jacobkahn has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Copy Markdown

@jacobkahn merged this pull request in 7c6736d.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed Do not delete this pull request or issue due to inactivity. Merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants