JDK-8217582 : 20 hotspot_jtreg_tier1/serviceability fail after JDK-8215544 on Linux
  • Type: Bug
  • Component: hotspot
  • Sub-Component: svc-agent
  • Affected Version: 13
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux_ubuntu
  • CPU: x86_64
  • Submitted: 2019-01-22
  • Updated: 2019-01-31
  • Resolved: 2019-01-31
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 13
13Resolved
Related Reports
Duplicate :  
Relates :  
Description
I'm seeing the following 20 tests fail in my jdk/jdk tier1
testing on my Linux-X64 machine:

    serviceability/sa/ClhsdbAttach.java
    serviceability/sa/ClhsdbField.java
    serviceability/sa/ClhsdbJdis.java
    serviceability/sa/ClhsdbFlags.java
    serviceability/sa/ClhsdbInspect.java
    serviceability/sa/ClhsdbJstack.java
    serviceability/sa/ClhsdbLongConstant.java
    serviceability/sa/ClhsdbJhisto.java
    serviceability/sa/ClhsdbPmap.java
    serviceability/sa/ClhsdbFindPC.java
    serviceability/sa/ClhsdbCDSJstackPrintAll.java
    serviceability/sa/ClhsdbPrintAll.java
    serviceability/sa/ClhsdbPrintAs.java
    serviceability/sa/ClhsdbPrintStatics.java
    serviceability/sa/ClhsdbPstack.java
    serviceability/sa/ClhsdbSource.java
    serviceability/sa/ClhsdbThread.java
    serviceability/sa/ClhsdbVmStructsDump.java
    serviceability/sa/ClhsdbWhere.java
    serviceability/sa/ClhsdbRegionDetailsScanOopsForG1.java

Here's a snippet from one of the failing tests:

----------System.out:(3/119)----------
Starting ClhsdbAttach test
Started LingeredApp with pid 28826
SA attach not expected to work. Insufficient privileges.
----------System.err:(18/1458)----------
Command line: ['/work/shared/mirrors/src_clones/jdk/jdk_baseline/build/linux-x86_64-normal-server-fastdebug/images/jdk/bin/java' '-XX:MaxRAMPercentage=1' '-cp' '/work/shared/mirrors/src_clones/jdk/jdk_baseline/build/linux-x86_64-normal-server-fastdebug/test-support/jtreg_open_test_hotspot_jtreg_tier1/classes/13/serviceability/sa/ClhsdbAttach.d:/work/shared/mirrors/src_clones/jdk/jdk_baseline/build/linux-x86_64-normal-server-fastdebug/test-support/jtreg_open_test_hotspot_jtreg_tier1/classes/13/test/lib' 'jdk.test.lib.apps.LingeredApp' '590c76e4-2b08-42e6-9372-e4b4f0209566.lck' ]
 LingeredApp stdout: [];
 LingeredApp stderr: []
 LingeredApp exitValue = 0
java.lang.Error: Cannot attach.
        at ClhsdbLauncher.run(ClhsdbLauncher.java:194)
        at ClhsdbAttach.main(ClhsdbAttach.java:70)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:567)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
        at java.base/java.lang.Thread.run(Thread.java:835)

JavaTest Message: Test threw exception: java.lang.Error: Cannot attach.
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.Error: Cannot attach.
Comments
Thanks for closing it as a duplicate. That makes more sense.
31-01-2019

The earlier closure as 'Fixed' was an oversight -- this was meant to be closed as a 'Duplicate'.
31-01-2019

Only bugs associated with changesets should be closed as 'Fixed'. If this bug was fixed by another bug, then please link to the other bug as a duplicate and close this bug as a duplicate.
30-01-2019

Here are the log files from my first sighting of these failures: $ unzip -l test_failures.2019-01-16-232644.zip Archive: test_failures.2019-01-16-232644.zip Length Date Time Name --------- ---------- ----- ---- 12421 2019-01-16 23:35 test_failures.2019-01-16-232644/ClhsdbAttach.jtr.fastdebug 14215 2019-01-16 23:36 test_failures.2019-01-16-232644/ClhsdbCDSJstackPrintAll.jtr.fastdebug 12378 2019-01-16 23:35 test_failures.2019-01-16-232644/ClhsdbField.jtr.fastdebug 12524 2019-01-16 23:36 test_failures.2019-01-16-232644/ClhsdbFindPC.jtr.fastdebug 12645 2019-01-16 23:35 test_failures.2019-01-16-232644/ClhsdbFlags.jtr.fastdebug 12470 2019-01-16 23:35 test_failures.2019-01-16-232644/ClhsdbInspect.jtr.fastdebug 12343 2019-01-16 23:35 test_failures.2019-01-16-232644/ClhsdbJdis.jtr.fastdebug 12637 2019-01-16 23:36 test_failures.2019-01-16-232644/ClhsdbJhisto.jtr.fastdebug 12477 2019-01-16 23:35 test_failures.2019-01-16-232644/ClhsdbJstack.jtr.fastdebug 12548 2019-01-16 23:35 test_failures.2019-01-16-232644/ClhsdbLongConstant.jtr.fastdebug 12376 2019-01-16 23:36 test_failures.2019-01-16-232644/ClhsdbPmap.jtr.fastdebug 12549 2019-01-16 23:36 test_failures.2019-01-16-232644/ClhsdbPrintAll.jtr.fastdebug 12420 2019-01-16 23:36 test_failures.2019-01-16-232644/ClhsdbPrintAs.jtr.fastdebug 12544 2019-01-16 23:36 test_failures.2019-01-16-232644/ClhsdbPrintStatics.jtr.fastdebug 12422 2019-01-16 23:36 test_failures.2019-01-16-232644/ClhsdbPstack.jtr.fastdebug 13088 2019-01-16 23:36 test_failures.2019-01-16-232644/ClhsdbRegionDetailsScanOopsForG1.jtr.fastdebug 12384 2019-01-16 23:36 test_failures.2019-01-16-232644/ClhsdbSource.jtr.fastdebug 12416 2019-01-16 23:36 test_failures.2019-01-16-232644/ClhsdbThread.jtr.fastdebug 12592 2019-01-16 23:36 test_failures.2019-01-16-232644/ClhsdbVmStructsDump.jtr.fastdebug 12358 2019-01-16 23:36 test_failures.2019-01-16-232644/ClhsdbWhere.jtr.fastdebug --------- ------- 251807 20 files
22-01-2019