-
Notifications
You must be signed in to change notification settings - Fork 30k
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
build: use Clang 12 for test-asan workflow #40238
Conversation
This comment has been minimized.
This comment has been minimized.
/cc @addaleax @gengjiawen |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wish I could tell you how to fix this :) It’s good that it’s reproducible, though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@targos does asan still complain when we replace memcpy
s with memmove
s?
diff --git a/deps/zlib/zutil.h b/deps/zlib/zutil.h
index 4425bcf75e..312f350011 100644
--- a/deps/zlib/zutil.h
+++ b/deps/zlib/zutil.h
@@ -238,7 +238,7 @@ extern z_const char * const z_errmsg[10]; /* indexed by 2-zlib_error */
# define zmemcmp _fmemcmp
# define zmemzero(dest, len) _fmemset(dest, 0, len)
# else
-# define zmemcpy memcpy
+# define zmemcpy memmove
# define zmemcmp memcmp
# define zmemzero(dest, len) memset(dest, 0, len)
# endif
@RaisinTen feel free to push to my branch to try |
@addaleax What do you think we should do, then? If I land this, test-asan will be red until someone fixes the issue. |
@targos I think somebody needs to reproduce this locally, then figure out which zlib calls exactly are leading to this error. :/ |
LINK: clang++ | ||
CC: clang-12 | ||
CXX: clang++-12 | ||
LINK: clang++-12 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is LINK
here neccessary ?
Context: https://www.gnu.org/software/make/manual/html_node/Implicit-Variables.html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, it doesn't seem useful. /cc @mmarchini
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't remember why LINK
was necessary (to force clang
linker instead of ld
when linking? idk that's the only thing I can think of). We can always remove and see what happens
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do think it was more of a GitHub Actions thing and less of a gnu thing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok I remember now. ld
would consume too much memory for ASAN to be possible on Actions, given the size of the instances available (see #32776). I'm almost sure LINK
is not standard but is used by gyp. What I'm not entirely sure is if CXX
being set to clang++-12
is enough. Again, someone would need to experiment (specifically looking at peak memory usage when LINK
is set or not).
@addaleax This will trigger the ASAN error. Make sure
Also I am confused why it's not using debug node since I pass |
|
When I force debug build using |
CC: clang | ||
CXX: clang++ | ||
LINK: clang++ | ||
CC: clang-12 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also latest clang is 13. Not sure github action bundled it yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GitHub runners only have clang 10,11 and 12: https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-README.md#language-and-runtime
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tried clang-13 locally, same result.
With
|
4a57b14
to
6ba702e
Compare
rebased output
|
Thank you for the approvals but we still can't merge this because of the error spotted by clang-12. |
It's green now :) Can I have a new review? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM but how did this get fixed?
I have no idea. |
Could it be flaky? I was wondering if we should rerun CI a couple of times before landing. |
I force-pushed again to run with latest master (will need another review to land). We can then rerun it a couple times. |
Green. Rerunning... |
You were right, it's flaky!
|
I have issues with the default (version 11) in the PR to update V8: #39945
I hope it will fail here too and someone knows how to fix it :)