JDK-8159619 : hotspot/runtime/NMT/MallocSiteHashOverflow.java fails with java.lang.NoClassDefFoundError: jdk/test/lib/StreamPumper
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 9
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2016-06-15
  • Updated: 2016-06-18
  • Resolved: 2016-06-17
Related Reports
Duplicate :  
Description
hotspot/runtime/NMT/MallocSiteHashOverflow.java fails with java.lang.NoClassDefFoundError: jdk/test/lib/StreamPumper in the nightly run.

#section:build
----------messages:(3/105)----------
command: build MallocSiteHashOverflow
reason: Named class compiled on demand
elapsed time (seconds): 0.0
result: Passed. All files up to date

#section:main
----------messages:(4/374)----------
command: main -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:NativeMemoryTracking=detail MallocSiteHashOverflow
reason: User specified action: run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:NativeMemoryTracking=detail MallocSiteHashOverflow 
Mode: othervm [/othervm specified]
elapsed time (seconds): 1.514
----------configuration:(4/138)----------
Boot Layer
  add exports:              java.base/jdk.internal.misc ALL-UNNAMED 
  boot class path (append): .                           

----------System.out:(0/0)----------
----------System.err:(20/1398)----------
java.lang.NoClassDefFoundError: jdk/test/lib/StreamPumper
	at jdk.test.lib.ProcessTools.getOutput(ProcessTools.java:65)
	at jdk.test.lib.OutputAnalyzer.<init>(OutputAnalyzer.java:50)
	at MallocSiteHashOverflow.main(MallocSiteHashOverflow.java:57)
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-internal/Native Method)
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-internal/NativeMethodAccessorImpl.java:62)
	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-internal/DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(java.base@9-internal/Method.java:531)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110)
	at java.lang.Thread.run(java.base@9-internal/Thread.java:843)
Caused by: java.lang.ClassNotFoundException: jdk.test.lib.StreamPumper
	at jdk.internal.loader.BuiltinClassLoader.loadClass(java.base@9-internal/BuiltinClassLoader.java:366)
	at jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(java.base@9-internal/ClassLoaders.java:185)
	at java.lang.ClassLoader.loadClass(java.base@9-internal/ClassLoader.java:419)
	... 9 more

JavaTest Message: Test threw exception: java.lang.NoClassDefFoundError: jdk/test/lib/StreamPumper
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.NoClassDefFoundError: jdk/test/lib/StreamPumper
----------rerun:(41/3370)*----------
DISPLAY= \\
JTREG_COF=false \\
JTREG_EFH_HOME=/export/home/aurora/CommonData/JTREG_EFH_HOME \\
JTREG_EFH_HOME_arl=aurora://jprt/2016-06-14-224520.daholme.jdk9-hs-dev/binaries/fastdebug-tests/linux-i586/failure_handler \\
JTREG_EFH_OPTS='-thd:/export/home/aurora/CommonData/JTREG_EFH_HOME/jtregFailureHandler.jar -th:jdk.test.failurehandler.jtreg.GatherProcessInfoTimeoutHandler -od:/export/home/aurora/CommonData/JTREG_EFH_HOME/jtregFailureHandler.jar -o:jdk.test.failurehandler.jtreg.GatherDiagnosticInfoObserver' \\
JTREG_HOME=/export/home/aurora/CommonData/jtreg_dir \\
JTREG_NATIVEPATH=/export/home/aurora/sandbox/JTREG_NATIVEPATH_LIBRARY_PREPARED \\
JTREG_NATIVEPATH_LIBRARY=/export/home/aurora/CommonData/JTREG_NATIVEPATH_LIBRARY \\
JTREG_NATIVEPATH_LIBRARY_arl=aurora://jprt/2016-06-14-224520.daholme.jdk9-hs-dev/binaries/fastdebug-tests/linux-i586 \\
JTREG_VERBOSE_LEVEL=time \\
LANG=C \\
LD_LIBRARY_PATH=/export/home/aurora/sandbox/JTREG_NATIVEPATH_LIBRARY_PREPARED \\
PATH=/bin:/usr/bin \\
CLASSPATH=/scratch/home/aurora/sandbox/results/workDir/classes/2/runtime/NMT:/scratch/home/aurora/CommonData/j2se_jdk/hotspot/test/runtime/NMT:/scratch/home/aurora/sandbox/results/workDir/classes/2/testlibrary:/scratch/home/aurora/CommonData/j2se_jdk/hotspot/test/testlibrary:/scratch/home/aurora/sandbox/results/workDir/classes/2/test/lib:/scratch/home/aurora/CommonData/j2se_jdk/test/lib:/scratch/home/aurora/CommonData/jtreg_dir/lib/javatest.jar:/scratch/home/aurora/CommonData/jtreg_dir/lib/jtreg.jar \\
    /export/home/aurora/CommonData/TEST_JAVA_HOME/bin/java \\
        -Dtest.src=/scratch/home/aurora/CommonData/j2se_jdk/hotspot/test/runtime/NMT \\
        -Dtest.src.path=/scratch/home/aurora/CommonData/j2se_jdk/hotspot/test/runtime/NMT:/scratch/home/aurora/CommonData/j2se_jdk/hotspot/test/testlibrary:/scratch/home/aurora/CommonData/j2se_jdk/test/lib \\
        -Dtest.classes=/scratch/home/aurora/sandbox/results/workDir/classes/2/runtime/NMT \\
        -Dtest.class.path=/scratch/home/aurora/sandbox/results/workDir/classes/2/runtime/NMT:/scratch/home/aurora/sandbox/results/workDir/classes/2/testlibrary:/scratch/home/aurora/sandbox/results/workDir/classes/2/test/lib \\
        -Dtest.vm.opts= \\
        -Dtest.tool.vm.opts= \\
        -Dtest.compiler.opts= \\
        -Dtest.java.opts='-Xmixed -server -XX:MaxRAMFraction=8 -XX:+CreateCoredumpOnCrash -XX:+IgnoreUnrecognizedVMOptions -XX:+UseSerialGC' \\
        -Dtest.jdk=/export/home/aurora/CommonData/TEST_JAVA_HOME \\
        -Dcompile.jdk=/export/home/aurora/CommonData/TEST_JAVA_HOME \\
        -Dtest.timeout.factor=16.0 \\
        -Dtest.modules=java.base/jdk.internal.misc \\
        -Dtest.nativepath=/export/home/aurora/sandbox/JTREG_NATIVEPATH_LIBRARY_PREPARED \\
        -XaddExports:java.base/jdk.internal.misc=ALL-UNNAMED \\
        -Xmixed \\
        -server \\
        -XX:MaxRAMFraction=8 \\
        -XX:+CreateCoredumpOnCrash \\
        -XX:+IgnoreUnrecognizedVMOptions \\
        -XX:+UseSerialGC \\
        -Djava.library.path=/export/home/aurora/sandbox/JTREG_NATIVEPATH_LIBRARY_PREPARED \\
        -Xbootclasspath/a:. \\
        -XX:+UnlockDiagnosticVMOptions \\
        -XX:+WhiteBoxAPI \\
        -XX:NativeMemoryTracking=detail \\
        com.sun.javatest.regtest.agent.MainWrapper /scratch/home/aurora/sandbox/results/workDir/runtime/NMT/MallocSiteHashOverflow.d/main.1.jta
result: Failed. Execution failed: `main' threw exception: java.lang.NoClassDefFoundError: jdk/test/lib/StreamPumper


test result: Failed. Execution failed: `main' threw exception: java.lang.NoClassDefFoundError: jdk/test/lib/StreamPumper