Skip to content

fix(Logger): disable channels instead of destroying the map on shutdo…#5325

Open
aleks-f wants to merge 5 commits intomainfrom
5324-logger-use-after-fee
Open

fix(Logger): disable channels instead of destroying the map on shutdo…#5325
aleks-f wants to merge 5 commits intomainfrom
5324-logger-use-after-fee

Conversation

@aleks-f
Copy link
Copy Markdown
Member

@aleks-f aleks-f commented Apr 19, 2026

…wn #5324

@aleks-f aleks-f linked an issue Apr 19, 2026 that may be closed by this pull request
@aleks-f aleks-f self-assigned this Apr 19, 2026
matejk added 3 commits April 20, 2026 20:20
Reflect the post-#5324 behavior: channels are detached and released
while Logger instances are kept alive, so cached Logger references
remain valid. Document the intended one-shot, pre-exit usage.
Regression test for the use-after-free fix: caches a Logger reference
before Logger::shutdown(), then logs through it after shutdown and
verifies the reference is still valid and logging is a safe no-op.
Replace the unbounded thread.join() at the end of testTrySleep with
tryJoin(5000) plus an isRunning() assertion, so a regression in
Thread::wakeUp() surfaces as a fast test failure rather than a CI
hang.
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.

Logger::shutdown() use-after-free

2 participants