Skip to content

fix: prevent TLS panic in shutdown_on_exit atexit handler#377

Merged
DorianZheng merged 1 commit intomainfrom
fix/shutdown-tls-panic
Mar 13, 2026
Merged

fix: prevent TLS panic in shutdown_on_exit atexit handler#377
DorianZheng merged 1 commit intomainfrom
fix/shutdown-tls-panic

Conversation

@DorianZheng
Copy link
Copy Markdown
Member

Replace tracing::warn!/info! with eprintln! in shutdown_sync() since this function runs in atexit/Drop contexts where the tracing dispatcher's TLS has already been destroyed by the Rust runtime.

Replace tracing::warn!/info! with eprintln! in shutdown_sync() since
this function runs in atexit/Drop contexts where the tracing
dispatcher's TLS has already been destroyed by the Rust runtime.
@DorianZheng DorianZheng merged commit 1c5bd74 into main Mar 13, 2026
17 checks passed
@DorianZheng DorianZheng deleted the fix/shutdown-tls-panic branch March 13, 2026 09:09
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.

1 participant