Bug 1492175

Summary: [systemtap] Hotspot tapsets have wrong path reference to libjvm.so
Product: [Fedora] Fedora Reporter: Severin Gehwolf <sgehwolf>
Component: java-9-openjdkAssignee: Severin Gehwolf <sgehwolf>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: ahughes, dbhole, jerboaa, jvanek, mvala, omajid
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: java-9-openjdk-9.0.4.11-2.fc27 java-9-openjdk-9.0.4.11-3.fc27 java-9-openjdk-9.0.4.11-4.fc26 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-14 17:09:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Spec file patch with proposed fix. none

Description Severin Gehwolf 2017-09-15 16:15:09 UTC
Description of problem:
No systemtap probes in JDK 9 work, since the reference to libjvm.so is wrong. It used to be /usr/lib/jvm/{NVRA}/lib/amd64/server/libjvm.so in JDK 8 but is now /usr/lib/jvm/{NVRA}/lib/server/libjvm.so in JDK 9.

Version-Release number of selected component (if applicable):
$ rpm -q java-9-openjdk
java-9-openjdk-9.0.0.181-1.fc26.x86_64

How reproducible:
100%

Steps to Reproduce:
$ cat > HelloWorld.java <<EOF
public class HelloWorld {
  public static void main(String[] args) {
    System.out.println("Hello World");
  }
}
EOF
$ javac HelloWorld.java
$ wget http://icedtea.classpath.org/~vanaltj/stapexamples/jobjectstats2.stp
$ cp /usr/lib/jvm/java/include/jni.h /usr/lib/jvm/java/include/linux/jni_md.h . && \
  sudo stap -c "/usr/lib/jvm/java/bin/java -XX:+DTraceAllocProbes -XX:+ExtendedDTraceProbes HelloWorld" jobjectstats2.stp && \
  sudo rm -rf /root/.systemtap/cache; rm jni.h jni_md.h

Actual results:
semantic error: while resolving probe point: identifier 'process' at /usr/share/systemtap/tapset/x86_64/hotspot-9.0.0.181-1.fc26.x86_64.stp:163:3
        source:   process("/usr/lib/jvm/java-9-openjdk-9.0.0.181-1.fc26.x86_64/lib/amd64/server/libjvm.so").mark("thread__start")
                  ^

semantic error: no match

Pass 2: analysis failed.  [man error::pass2]

Expected results:
jobjectstats2.stp runs as expected.

Additional info:
Note that bug 1492139 applies to JDK 9 too. So once this issue is fixed, JDK 9 will need a similar fix than what JDK 8 will recieve via bug 1492139.

Comment 1 Severin Gehwolf 2017-09-15 16:19:07 UTC
Created attachment 1326558 [details]
Spec file patch with proposed fix.

Comment 2 Severin Gehwolf 2017-10-26 09:41:28 UTC
Any movement on this?

Comment 3 Fedora Update System 2018-01-24 10:31:23 UTC
java-9-openjdk-9.0.4.11-3.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-e2e52fb0bf

Comment 4 Fedora Update System 2018-01-25 08:37:58 UTC
java-9-openjdk-9.0.4.11-3.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-e2e52fb0bf

Comment 5 Fedora Update System 2018-01-25 09:36:07 UTC
java-9-openjdk-9.0.4.11-3.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2018-9e6e636c60

Comment 6 Fedora Update System 2018-01-26 18:10:09 UTC
java-9-openjdk-9.0.4.11-3.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2018-01-26 19:11:57 UTC
java-9-openjdk-9.0.4.11-3.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-9e6e636c60

Comment 8 Fedora Update System 2018-01-29 09:45:30 UTC
java-9-openjdk-9.0.4.11-4.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2018-9718389704

Comment 9 Fedora Update System 2018-01-29 19:14:20 UTC
java-9-openjdk-9.0.4.11-4.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-9718389704

Comment 10 Fedora Update System 2018-02-14 17:09:11 UTC
java-9-openjdk-9.0.4.11-4.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.