Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixup(#7160 / tokio_epoll_uring_ext): double-panic caused by info! in thread-local's drop() #7164

Merged
merged 2 commits into from Mar 18, 2024

Conversation

problame
Copy link
Contributor

Manual testing of the changes in #7160 revealed that, if the
thread-local destructor ever runs (it apparently doesn't in our test
suite runs, otherwise #7160 would not have auto-merged), we can
encounter an abort() due to a double-panic in the tracing code.

This github comment here contains the stack trace:
#7160 (comment)

This PR reverts #7160 and uses a atomic counter to identify the
thread-local in log messages, instead of the memory address of the
thread local, which may be re-used.

… thread-local's drop()

Manual testing of the changes in #7160 revealed that, if the
thread-local destructor ever runs (it apparently doesn't in our test
suite runs, otherwise #7160 would not have auto-merged), we can
encounter an `abort()` due to a double-panic in the tracing code.

This github comment here contains the stack trace:
#7160 (comment)

This PR reverts #7160 and uses a atomic counter to identify the
thread-local in log messages, instead of the memory address of the
thread local, which may be re-used.
@problame problame requested a review from a team as a code owner March 18, 2024 13:52
@problame problame requested review from jcsp and arpad-m and removed request for jcsp March 18, 2024 13:52
@problame problame merged commit 2bc2fd9 into main Mar 18, 2024
50 checks passed
@problame problame deleted the problame/fixup-7141-double-panic branch March 18, 2024 15:12
Copy link

2700 tests run: 2569 passed, 0 failed, 131 skipped (full report)


Flaky tests (1)

Postgres 15

  • test_ondemand_activation: debug

Code coverage* (full report)

  • functions: 28.3% (7127 of 25166 functions)
  • lines: 46.8% (43690 of 93285 lines)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
01bf967 at 2024-03-18T15:21:35.524Z :recycle:

arpad-m pushed a commit that referenced this pull request Mar 18, 2024
… thread-local's drop() (#7164)

Manual testing of the changes in #7160 revealed that, if the
thread-local destructor ever runs (it apparently doesn't in our test
suite runs, otherwise #7160 would not have auto-merged), we can
encounter an `abort()` due to a double-panic in the tracing code.

This github comment here contains the stack trace:
#7160 (comment)

This PR reverts #7160 and uses a atomic counter to identify the
thread-local in log messages, instead of the memory address of the
thread local, which may be re-used.
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.

None yet

2 participants