-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Remove fast_unwind_on_malloc and malloc_context_size restrictions in ASAN CI #42515
Conversation
Ah great!
…On Tue, Oct 5, 2021 at 8:30 PM Takafumi Arakaki ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In contrib/asan/Make.user.asan
<#42515 (comment)>:
> @@ -18,6 +18,3 @@ override WITH_GC_DEBUG_ENV=1
# default to a debug build for better line number reporting
override JULIA_BUILD_MODE=debug
-
-# make ASAN consume less memory
-export ASAN_OPTIONS=detect_leaks=0:fast_unwind_on_malloc=0:allow_user_segv_handler=1:malloc_context_size=2
@maleadt <https://github.com/maleadt> added this in #41675
<#41675>
https://github.com/JuliaLang/julia/blob/5d87cb92a2abb5bc62dcd777af01a831de1f51cf/cli/loader_exe.c#L18-L20
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#42515 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABDO2SDEHTSUQPPPNXKSVTUFOKA5ANCNFSM5FNATNZQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
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.
The options were mainly for reducing memory usage when running the tests, which apparently we do not do on CI (understandably so, it takes a really long time to finish the test suite under ASAN, but maybe it should perform some smoke tests at least?).
There was a simple check to see if ASAN can detect a bug but we removed it #42229 since my implementation @DilumAluthge Do you want to wait for merging this until the issue in #41936 is resolved? |
Yeah I think that makes sense. |
These options are already set in loader_exe.c.
1e4182d
to
edfa95d
Compare
Rebased. |
We need to fix the ASAN tests first (#42540) |
Oh oops, I thought that had been fixed already. Sorry for the noise then. |
…ASAN CI (JuliaLang#42515) No need to set ASAN_OPTIONS any more either: these options are already set in `loader_exe.c` with `__asan_default_options`.
…ASAN CI (JuliaLang#42515) No need to set ASAN_OPTIONS any more either: these options are already set in `loader_exe.c` with `__asan_default_options`.
This implements @maleadt's suggestion #42498 (comment)
A quick benchmark (#42498 (comment)) suggests the peak memory consumption is about 5GB. I think the CI machines can handle this.