Repository navigation
Fix nightly asan builds - #212
Conversation
|
🔧 Report generated by pr-comment-scanbuild |
2ad764f to
a97d28d
Compare
| def content = file.getText('UTF-8') | ||
| def original = content | ||
|
|
||
| // Add no_sanitize to unwindStub |
There was a problem hiding this comment.
why not add compiler directives ? because this is upstream I assume
There was a problem hiding this comment.
Yep. It's upstream.
I am not thrilled by this but the find-replace turned out to be the least intrusive measure - I will try proposing to add the directive upstream. Ideally, we should not be patching the upstream code.
There was a problem hiding this comment.
Good idea! tell me if this can not make it upstream. we can revisit how we include these changes (wrapper around the header on Datadog side)?
| compilerArgs.add('-D__musl__') | ||
| } | ||
| compilerArgs.add('-std=c++14') | ||
| compilerArgs.add('-std=c++17') |
| // snappy is problematic on musl; we are not running it | ||
| assertTrue(isMusl || libraryCounters.containsKey("SNAPPY"), "no snappy-java samples"); | ||
| // for some reason it is not also appearing in sanitized runs | ||
| assertTrue(isMusl || isSanitizer || libraryCounters.containsKey("SNAPPY"), "no snappy-java samples"); |
There was a problem hiding this comment.
That's a curious discovery
There was a problem hiding this comment.
Yep. The assertion was failing reliably on sanitized runs :/
| @Test | ||
| public void test() throws Throwable { | ||
| assumeFalse(Platform.isJ9() && Platform.isJavaVersion(17)); // JVMTI::GetClassSignature() is reliably crashing on a valid 'class' instance ¯\_(ツ)_/¯ | ||
| assumeFalse(Platform.isJ9() && isAsan()); // running this test on j9 and asan is weirdly crashy |
There was a problem hiding this comment.
Is this the same crashing as the j9jit issue discussed this morning? Ideally, we could use ASan for J9 as well.
There was a problem hiding this comment.
No, this might have something to do with J9 mishandling jmethodids or something similar. I could not get the stacktrace for what was happening, as the attempt to get stacktrace in asan also crashed :/
The other issue is about crash when parsing a j9 library elf file.
What does this PR do?:
The PR addresses a handful of issues causing our nightly sanitizer runs to fail
Motivation:
Well, we want to have the CI green such that we can capture any new error :)
Additional Notes:
How to test the change?:
For Datadog employees:
credentials of any kind, I've requested a review from
@DataDog/security-design-and-guidance.Unsure? Have a question? Request a review!