Skip to content

Fix TSAN flakes and data races in msgqueue syscall tests - #13857

Merged
copybara-service[bot] merged 1 commit into
masterfrom
test/cl954724776
Jul 28, 2026
Merged

Fix TSAN flakes and data races in msgqueue syscall tests#13857
copybara-service[bot] merged 1 commit into
masterfrom
test/cl954724776

Conversation

@copybara-service

Copy link
Copy Markdown

Fix TSAN flakes and data races in msgqueue syscall tests

In test/syscalls/linux/msgqueue.cc:

  • Fixed a TSAN data race in MsgSndRmWhileBlocking and MsgRcvRmWhileBlocking by
    passing the message queue ID by-value into background threads instead of
    evaluating queue.get() on the raw shared pointer.
  • Fixed a multi-run global state bleed in MsgCtlMsgInfo by checking global
    msgpool queue offsets relative to their existing background state rather than
    hardcoding strict zeros.

@copybara-service copybara-service Bot added the exported Issue was exported automatically label Jul 27, 2026
@copybara-service
copybara-service Bot force-pushed the test/cl954724776 branch 4 times, most recently from 6b272cc to ebd5406 Compare July 28, 2026 21:14
In test/syscalls/linux/msgqueue.cc:
- Fixed a TSAN data race in MsgSndRmWhileBlocking and MsgRcvRmWhileBlocking by
passing the message queue ID by-value into background threads instead of
evaluating queue.get() on the raw shared pointer.
- Fixed a multi-run global state bleed in MsgCtlMsgInfo by checking global
msgpool queue offsets relative to their existing background state rather than
hardcoding strict zeros.

PiperOrigin-RevId: 955474605
@copybara-service
copybara-service Bot merged commit 177c633 into master Jul 28, 2026
@copybara-service
copybara-service Bot deleted the test/cl954724776 branch July 28, 2026 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

exported Issue was exported automatically

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant