-
Notifications
You must be signed in to change notification settings - Fork 5.9k
8357826: Avoid running some jtreg tests when asan is configured #25575
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
base: master
Are you sure you want to change the base?
Conversation
👋 Welcome back mbaesken! A progress list of the required criteria for merging this PR into |
The change to src/hotspot/cpu/x86/gc/z/zAddress_x86.cpp was added because of zgc issues with ASAN but we will address this in another change so I remove it from here. |
❗ This change is not yet ready to be integrated. |
Webrevs
|
TestBreakSignalThreadDump shows this, so it does not work well with asan too
|
Can you document why each tests fails so we have it on record? Can be done in the PR or the CR. |
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.
Changes look fine but I agree with Chris that we need to document why these tests don't work with ASAN, though I think I'd prefer to see an @comment
before the @requires !vm.asan
in the actual test files - assuming the reason can be stated clearly and succinctly.
In ASAN built JDK, some gtests and some other JTREG tests in runtime/ErrorHandling also fail. |
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.
Thank you for implementing exclusion this way. I'll approve PR once you address feedback about commenting.
ulimit clashes with the memory requirements of ASAN
loading of the jsig lib does currently not work well with ASAN lib
loading of the jsig lib does currently not work well with ASAN lib
this will be fixed hopefully so we could maybe remove the !asan tagging
ASAN changes the memory map dump slightly, but the test has rather strict requirements
ASAN changes the memory map dump slightly, but the test has rather strict requirements
Seems no core was written, maybe ASAN is to blame or my test environment ?
Looks similar to ClhsdbCDSCore issue |
Turns out cds/appcds/aotCode/AOTCodeCompressedOopsTest.java was a real bug, so I guess we should remove it from this exclusion. Are you fine with the short explanations given, if yes I would add them as comment to the tests . |
Yes it is not strict ; I did mostly tests with ASAN on Linux x86_64 and Linux ppc64le so far . |
There are a couple of jtreg tests, especially in the HS area, with very special assumptions about memory layout/sizes .
Those fail when the address sanitizer is configured ( --enable-asan ).
The change adds a way to tag those tests with 'requires' so that they can be avoided easily when running jtreg tests with ASAN enabled.
Adjusting the tests for "pleasing" the sanitizer is not always desired (if possible for some tests it can be done later) .
While at it, also same is also added for ubsan .
Progress
Issue
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/25575/head:pull/25575
$ git checkout pull/25575
Update a local copy of the PR:
$ git checkout pull/25575
$ git pull https://git.openjdk.org/jdk.git pull/25575/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 25575
View PR using the GUI difftool:
$ git pr show -t 25575
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/25575.diff
Using Webrev
Link to Webrev Comment