Skip to content

Fix crash on shutdown if log sink couldn't be created#9781

Open
mszabo-wikia wants to merge 1 commit into
facebook:masterfrom
mszabo-wikia:fix-log-segfault
Open

Fix crash on shutdown if log sink couldn't be created#9781
mszabo-wikia wants to merge 1 commit into
facebook:masterfrom
mszabo-wikia:fix-log-segfault

Conversation

@mszabo-wikia
Copy link
Copy Markdown
Contributor

Through a misconfiguration, we ended up in a situation where HHVM wasn't able to create its admin server log file. This caused a segfault on shutdown because m_filelog was a null pointer. Avoid crashing in this situation by not trying to close the log sink if it is nullptr.

Through a misconfiguration, we ended up in a situation where
HHVM wasn't able to create its admin server log file.
This caused a segfault on shutdown because `m_filelog` was
a null pointer. Avoid crashing in this situation by not trying
to close the log sink if it is `nullptr`.
@meta-cla meta-cla Bot added the CLA Signed label May 20, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented May 20, 2026

@facebook-github-bot has imported this pull request. If you are a Meta employee, you can view this in D105868587. (Because this pull request was imported automatically, there will not be any future comments.)

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant