-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[DocDB] ASAN issue: ODR violation with Clang 15, mentioning global variable alignment #14672
Closed
Labels
area/docdb
YugabyteDB core features
kind/bug
This issue is a bug
priority/medium
Medium priority issue
Comments
mbautin
added
area/docdb
YugabyteDB core features
status/awaiting-triage
Issue awaiting triage
labels
Oct 26, 2022
yugabyte-ci
added
kind/bug
This issue is a bug
priority/medium
Medium priority issue
labels
Oct 26, 2022
When rebuilding without
|
mbautin
added a commit
to yugabyte/llvm-project
that referenced
this issue
Oct 27, 2022
The main open issue is google/sanitizers#1017 |
mbautin
added a commit
to yugabyte/llvm-project
that referenced
this issue
Oct 29, 2022
mbautin
added a commit
that referenced
this issue
Nov 4, 2022
Summary: Use Clang 15 for ASAN (instead of Clang 13 used prior to this diff). This requires using an updated version of LLVM which suppresses an ODR violation error (#14672) due to issues with symbol alignment reported by ASAN in Clang 14 or later ( our custom patch is yugabyte/llvm-project@0b8d118 ), as well as specifying special flags (`-mllvm -asan-use-private-alias=1`). Thanks to @NatashaSerebryanaya for investigating the root cause of the false-positive ODR violation warning. Once we upgrade to LLVM version using the fix at llvm/llvm-project@1ada819, these workarounds might not be necessary. Other improvements: - Fix log rewriting for the `std::__1:: prefix`, to avoid the extra curly braces. - Replace the test host name with `{test_host_name}` when rewriting the log. - thirdparty_tool should be able to read the GitHub token from a file specified by an environment variable (`YB_GITHUB_TOKEN_FILE_PATH`). - Update llvm-installer Python module version to pick up LLVM archives where clang and lld executables have been built with LTO for increased compilation speed. Test Plan: Jenkins Reviewers: nserebryanaya, steve.varnau Reviewed By: nserebryanaya, steve.varnau Differential Revision: https://phabricator.dev.yugabyte.com/D20487
mbautin
added a commit
to yugabyte/llvm-project
that referenced
this issue
Nov 30, 2022
jayant07-yb
pushed a commit
to jayant07-yb/yugabyte-db
that referenced
this issue
Dec 7, 2022
Summary: Use Clang 15 for ASAN (instead of Clang 13 used prior to this diff). This requires using an updated version of LLVM which suppresses an ODR violation error (yugabyte#14672) due to issues with symbol alignment reported by ASAN in Clang 14 or later ( our custom patch is yugabyte/llvm-project@0b8d118 ), as well as specifying special flags (`-mllvm -asan-use-private-alias=1`). Thanks to @NatashaSerebryanaya for investigating the root cause of the false-positive ODR violation warning. Once we upgrade to LLVM version using the fix at llvm/llvm-project@1ada819, these workarounds might not be necessary. Other improvements: - Fix log rewriting for the `std::__1:: prefix`, to avoid the extra curly braces. - Replace the test host name with `{test_host_name}` when rewriting the log. - thirdparty_tool should be able to read the GitHub token from a file specified by an environment variable (`YB_GITHUB_TOKEN_FILE_PATH`). - Update llvm-installer Python module version to pick up LLVM archives where clang and lld executables have been built with LTO for increased compilation speed. Test Plan: Jenkins Reviewers: nserebryanaya, steve.varnau Reviewed By: nserebryanaya, steve.varnau Differential Revision: https://phabricator.dev.yugabyte.com/D20487
mbautin
added a commit
to yugabyte/llvm-project
that referenced
this issue
Mar 28, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area/docdb
YugabyteDB core features
kind/bug
This issue is a bug
priority/medium
Medium priority issue
Jira Link: DB-4034
Description
This was in fact observed with Clang 14 too.
https://gist.githubusercontent.com/mbautin/a42e30005058fd905fb1baf41e082de4/raw
The text was updated successfully, but these errors were encountered: