Skip to content

Fix segfault in TSan on _exit#23616

Merged
alexey-milovidov merged 2 commits intomasterfrom
tsan-segfault-shutdown
Apr 25, 2021
Merged

Fix segfault in TSan on _exit#23616
alexey-milovidov merged 2 commits intomasterfrom
tsan-segfault-shutdown

Conversation

@alexey-milovidov
Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

This closes #23056

@robot-clickhouse robot-clickhouse added the pr-not-for-changelog This PR should not be mentioned in the changelog label Apr 25, 2021
@alexey-milovidov
Copy link
Copy Markdown
Member Author

@Mergifyio update

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Apr 25, 2021

Command update: success

Branch has been successfully updated

@alexey-milovidov
Copy link
Copy Markdown
Member Author

Stress tests ok.

@alexey-milovidov alexey-milovidov self-assigned this Apr 25, 2021
@alexey-milovidov alexey-milovidov merged commit 4fd56ef into master Apr 25, 2021
@alexey-milovidov alexey-milovidov deleted the tsan-segfault-shutdown branch April 25, 2021 07:33
@alexey-milovidov alexey-milovidov added the pr-must-backport Pull request should be backported intentionally. Use this label with great care! label May 20, 2021
@alexey-milovidov
Copy link
Copy Markdown
Member Author

Need backport to 21.5.

alexey-milovidov added a commit that referenced this pull request May 21, 2021
Backport #23616 to 21.5: Fix segfault in TSan on _exit
alexey-milovidov added a commit that referenced this pull request May 21, 2021
Backport #23616 to 21.4: Fix segfault in TSan on _exit
alexey-milovidov added a commit that referenced this pull request May 21, 2021
Backport #23616 to 21.3: Fix segfault in TSan on _exit
alexey-milovidov added a commit that referenced this pull request May 31, 2021
Backport #23616 to 20.8: Fix segfault in TSan on _exit
azat added a commit to azat/ClickHouse that referenced this pull request Nov 7, 2022
Because safeExit() does not includes header with defines, it does not
know about THREAD_SANITIZER.

And it also fixes Azure blob storage, actually everything is fine with
the sdk itself, the problem is only in TSan that intercepts _exit() and
report leak, even thoug that tread will be joined later.

Refs: ClickHouse#23056 (ClickHouse#23616)
Fixes: ClickHouse#38474
Closes: ClickHouse#42640
Fixes: ClickHouse#42638
Fixes: ClickHouse#34988
Cc: @alexey-milovidov, @tavplubix

Signed-off-by: Azat Khuzhin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-must-backport Pull request should be backported intentionally. Use this label with great care! pr-not-for-changelog This PR should not be mentioned in the changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TSan: Segfault in _exit interceptor (false positive report in CI)

2 participants