JDK-8219559 : sa/TestJmapCoreMetaspace.java still fail with ZGC
  • Type: Bug
  • Component: hotspot
  • Sub-Component: svc-agent
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux
  • CPU: x86_64
  • Submitted: 2019-02-22
  • Updated: 2019-02-22
  • Resolved: 2019-02-22
Related Reports
Cloners :  
Duplicate :  
Description
The following test failed in the jdk/jdk CI:

serviceability/sa/TestJmapCoreMetaspace.java

Here's a snippet from the log file:

----------System.out:(8/2064)----------
Command line: [/scratch/opt/mach5/mesos/work_dir/jib-master/install/jdk12-jdk.765/linux-x64-debug.jdk/jdk-12/fastdebug/bin/java -cp /scratch/opt/mach5/mesos/work_dir/slaves/2dd962d0-8988-479b-a804-57ab764ada59-S1286/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/fe39d8f5-fc7e-45b6-b5e2-16c89abb4f7b/runs/51fc07b3-4431-4386-8a86-963ce8a43824/testOutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_serviceability/classes/3/serviceability/sa/TestJmapCoreMetaspace.d:/scratch/opt/mach5/mesos/work_dir/jib-master/install/jdk12-jdk.765/src.full/open/test/hotspot/jtreg/serviceability/sa:/scratch/opt/mach5/mesos/work_dir/slaves/2dd962d0-8988-479b-a804-57ab764ada59-S1286/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/fe39d8f5-fc7e-45b6-b5e2-16c89abb4f7b/runs/51fc07b3-4431-4386-8a86-963ce8a43824/testOutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_serviceability/classes/3/test/lib:/scratch/opt/mach5/mesos/work_dir/jib-master/install/java/re/jtreg/4.2/promoted/all/b13/bundles/jtreg_bin-4.2.zip/jtreg/lib/javatest.jar:/scratch/opt/mach5/mesos/work_dir/jib-master/install/java/re/jtreg/4.2/promoted/all/b13/bundles/jtreg_bin-4.2.zip/jtreg/lib/jtreg.jar -XX:MaxRAMPercentage=6 -XX:+UnlockExperimentalVMOptions -XX:+UseZGC -XX:+IgnoreUnrecognizedVMOptions -XX:+CreateCoredumpOnCrash -Xmx512m -XX:MaxMetaspaceSize=64m -XX:+CrashOnOutOfMemoryError TestJmapCore metaspace ]
Run test with ulimit: unlimited
Found corefile: /scratch/opt/mach5/mesos/work_dir/slaves/2dd962d0-8988-479b-a804-57ab764ada59-S1286/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/fe39d8f5-fc7e-45b6-b5e2-16c89abb4f7b/runs/51fc07b3-4431-4386-8a86-963ce8a43824/testOutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_serviceability/scratch/2/./core.6246
Attaching to core ./core.6246 from executable /scratch/opt/mach5/mesos/work_dir/jib-master/install/jdk12-jdk.765/linux-x64-debug.jdk/jdk-12/fastdebug/bin/java, please wait...
Debugger attached successfully.
Server compiler detected.
JVM version is 12-internal+0-jdk12-jdk.765

----------System.err:(37/2537)----------
Exception in thread "main" sun.jvm.hotspot.oops.UnknownOopException
	at jdk.hotspot.agent/sun.jvm.hotspot.oops.ObjectHeap.newOop(ObjectHeap.java:193)
	at jdk.hotspot.agent/sun.jvm.hotspot.oops.Klass.getJavaMirror(Klass.java:118)
	at jdk.hotspot.agent/sun.jvm.hotspot.utilities.HeapHprofBinWriter$4.visit(HeapHprofBinWriter.java:1107)
	at jdk.hotspot.agent/sun.jvm.hotspot.classfile.ClassLoaderData.classesDo(ClassLoaderData.java:108)
	at jdk.hotspot.agent/sun.jvm.hotspot.classfile.ClassLoaderDataGraph.classesDo(ClassLoaderDataGraph.java:82)
	at jdk.hotspot.agent/sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeClasses(HeapHprofBinWriter.java:1104)
	at jdk.hotspot.agent/sun.jvm.hotspot.utilities.HeapHprofBinWriter.write(HeapHprofBinWriter.java:434)
	at jdk.hotspot.agent/sun.jvm.hotspot.tools.JMap.writeHeapHprofBin(JMap.java:182)
	at jdk.hotspot.agent/sun.jvm.hotspot.tools.JMap.run(JMap.java:97)
	at jdk.hotspot.agent/sun.jvm.hotspot.tools.Tool.startInternal(Tool.java:260)
	at jdk.hotspot.agent/sun.jvm.hotspot.tools.Tool.start(Tool.java:223)
	at jdk.hotspot.agent/sun.jvm.hotspot.tools.Tool.execute(Tool.java:118)
	at jdk.hotspot.agent/sun.jvm.hotspot.tools.JMap.main(JMap.java:176)
	at jdk.hotspot.agent/sun.jvm.hotspot.SALauncher.runJMAP(SALauncher.java:326)
	at jdk.hotspot.agent/sun.jvm.hotspot.SALauncher.main(SALauncher.java:455)

java.io.EOFException
	at java.base/java.io.DataInputStream.readFully(DataInputStream.java:202)
	at java.base/java.io.DataInputStream.readLong(DataInputStream.java:421)
	at jdk.test.lib.hprof.parser.HprofReader.readID(HprofReader.java:542)
	at jdk.test.lib.hprof.parser.HprofReader.read(HprofReader.java:230)
	at jdk.test.lib.hprof.parser.Reader.readFile(Reader.java:91)
	at jdk.test.lib.hprof.HprofParser.parse(HprofParser.java:85)
	at jdk.test.lib.hprof.HprofParser.parse(HprofParser.java:54)
	at TestJmapCore.test(TestJmapCore.java:140)
	at TestJmapCore.main(TestJmapCore.java:72)
	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.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:246)
	at java.base/java.lang.Thread.run(Thread.java:835)

JavaTest Message: Test threw exception: java.io.EOFException
JavaTest Message: shutting down test

result: Failed. Execution failed: `main' threw exception: java.io.EOFException


test result: Failed. Execution failed: `main' threw exception: java.io.EOFException
Comments
Closing this as duplicate since we already have JDK-8219443 to track this.
22-02-2019

The test still fails with: Command line: [/scratch/opt/mach5/mesos/work_dir/jib-master/install/jdk13-jdk.450/linux-x64-debug.jdk/jdk-13/fastdebug/bin/java -cp /scratch/opt/mach5/mesos/work_dir/slaves/2dd962d0-8988-479b-a804-57ab764ada59-S1552/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/3cfa06f0-f00b-4a08-bad1-b0a166a97f58/runs/15796dab-9a06-439a-bd86-bc7f91ff1d31/testOutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_serviceability/classes/1/serviceability/sa/TestJmapCoreMetaspace.d:/scratch/opt/mach5/mesos/work_dir/jib-master/install/jdk13-jdk.450/src.full/open/test/hotspot/jtreg/serviceability/sa:/scratch/opt/mach5/mesos/work_dir/slaves/2dd962d0-8988-479b-a804-57ab764ada59-S1552/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/3cfa06f0-f00b-4a08-bad1-b0a166a97f58/runs/15796dab-9a06-439a-bd86-bc7f91ff1d31/testOutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_serviceability/classes/1/test/lib:/scratch/opt/mach5/mesos/work_dir/jib-master/install/java/re/jtreg/4.2/promoted/all/b14/bundles/jtreg_bin-4.2.zip/jtreg/lib/javatest.jar:/scratch/opt/mach5/mesos/work_dir/jib-master/install/java/re/jtreg/4.2/promoted/all/b14/bundles/jtreg_bin-4.2.zip/jtreg/lib/jtreg.jar -XX:MaxRAMPercentage=6 -XX:+UnlockExperimentalVMOptions -XX:+UseZGC -XX:+IgnoreUnrecognizedVMOptions -XX:+CreateCoredumpOnCrash -Xmx512m -XX:MaxMetaspaceSize=64m -XX:+CrashOnOutOfMemoryError TestJmapCore metaspace ] Run test with ulimit: unlimited Found corefile: /scratch/opt/mach5/mesos/work_dir/slaves/2dd962d0-8988-479b-a804-57ab764ada59-S1552/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/3cfa06f0-f00b-4a08-bad1-b0a166a97f58/runs/15796dab-9a06-439a-bd86-bc7f91ff1d31/testOutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_serviceability/scratch/1/./core.8164 Attaching to core ./core.8164 from executable /scratch/opt/mach5/mesos/work_dir/jib-master/install/jdk13-jdk.450/linux-x64-debug.jdk/jdk-13/fastdebug/bin/java, please wait... Debugger attached successfully. Server compiler detected. JVM version is 13-internal+0-jdk13-jdk.450 ----------System.err:(20/1050)---------- null java.io.EOFException at java.base/java.io.DataInputStream.readInt(DataInputStream.java:397) at jdk.test.lib.hprof.parser.HprofReader.read(HprofReader.java:229) at jdk.test.lib.hprof.parser.Reader.readFile(Reader.java:91) at jdk.test.lib.hprof.HprofParser.parse(HprofParser.java:85) at jdk.test.lib.hprof.HprofParser.parse(HprofParser.java:54) at TestJmapCore.test(TestJmapCore.java:139) at TestJmapCore.main(TestJmapCore.java:73) 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.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298) at java.base/java.lang.Thread.run(Thread.java:835) JavaTest Message: Test threw exception: java.io.EOFException JavaTest Message: shutting down test result: Failed. Execution failed: `main' threw exception: java.io.EOFException test result: Failed. Execution failed: `main' threw exception: java.io.EOFException
22-02-2019