RFR: 8281822: serviceability/7170638/SDTProbesGNULinuxTest.java test fails on !DTRACE_ENABLED builds after JDK-8278423

Aleksey Shipilev shade at openjdk.java.net
Tue Feb 15 12:00:40 UTC 2022


This reproduces in GHA in x86_32 mode.

Reproduces locally too:


$ CONF=linux-x86-server-fastdebug make run-test TEST=serviceability/7170638/SDTProbesGNULinuxTest.java

java.lang.Error: java.lang.RuntimeException: '.note.stapsd' missing from stdout

at SDTProbesGNULinuxTest.testLibJvm(SDTProbesGNULinuxTest.java:76)
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)


The reason is that the new test now enables `DTraceMethodProbes`, `DTraceAllocProbes`, `DTraceMonitorProbes`, but VM never actually checks those options are available. So test thinks dtrace support is there, yet there are no relevant section in `libjvm.so`, so it fails. We should extend the checks to these new options too.

Additional testing:
 - [ ] Linux x86_64 fastdebug (dtrace enabled), affected test still passes
 - [x] Linux x86_32 fastdebug (dtrace disabled due to missing dependencies), affected test now passes

-------------

Commit messages:
 - Fix

Changes: https://git.openjdk.java.net/jdk/pull/7477/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=7477&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8281822
  Stats: 12 lines in 1 file changed: 12 ins; 0 del; 0 mod
  Patch: https://git.openjdk.java.net/jdk/pull/7477.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/7477/head:pull/7477

PR: https://git.openjdk.java.net/jdk/pull/7477


More information about the hotspot-runtime-dev mailing list