adoptium / adoptium/aqa-tests

extended.openjdk jdk_tools jdk8 tools/pack200/Pack200Test.java fails memory leak detected

Open
#2,657 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
155
Forks
346
Avg merge
2d 9h
Merged PRs (30d)
36

Description

Test suite: extended.openjdk
Test target: jdk_tools
Release(s): jdk8
Platform(s): all

Test tools/pack200/Pack200Test.java fails with "memory leak detected". The exact value of memory leak reported varies across platforms:
```
ppc64_aix
memory leak detected 23141
aarch64_linux
memory leak detected 22873
ppc64le_linux
memory leak detected 23226
x86-64_linux
memory leak detected 23117
x86-64_mac
memory leak detected 21546
x86-64_windows
memory leak detected 22348
```
Full output of a failing test:
```
[2021-05-29T14:31:22.830Z] TEST: tools/pack200/Pack200Test.java
[2021-05-29T14:31:22.830Z] TEST JDK: /home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdkbinary/j2sdk-image
[2021-05-29T14:31:22.830Z]
[2021-05-29T14:31:22.830Z] ACTION: compile -- Passed. Compilation successful
[2021-05-29T14:31:22.830Z] REASON: User specified action: run compile -XDignore.symbol.file Utils.java Pack200Test.java
[2021-05-29T14:31:22.830Z] TIME: 0.421 seconds
[2021-05-29T14:31:22.830Z] messages:
[2021-05-29T14:31:22.830Z] command: compile -XDignore.symbol.file /home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdk-tests/openjdk/openjdk-jdk/jdk/test/tools/pack200/Utils.java /home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdk-tests/openjdk/openjdk-jdk/jdk/test/tools/pack200/Pack200Test.java
[2021-05-29T14:31:22.830Z] reason: User specified action: run compile -XDignore.symbol.file Utils.java Pack200Test.java
[2021-05-29T14:31:22.830Z] Mode: agentvm
[2021-05-29T14:31:22.830Z] Agent id: 3
[2021-05-29T14:31:22.830Z] elapsed time (seconds): 0.421
[2021-05-29T14:31:22.830Z] configuration:
[2021-05-29T14:31:22.830Z] Boot Layer (javac runtime environment)
[2021-05-29T14:31:22.830Z] class path: /home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdkbinary/j2sdk-image/lib/tools.jar
[2021-05-29T14:31:22.830Z] /home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/jvmtest/openjdk/jtreg/lib/javatest.jar
[2021-05-29T14:31:22.830Z] /home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/jvmtest/openjdk/jtreg/lib/jtreg.jar
[2021-05-29T14:31:22.830Z]
[2021-05-29T14:31:22.830Z] javac compilation environment
[2021-05-29T14:31:22.830Z] source path: /home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdk-tests/openjdk/openjdk-jdk/jdk/test/tools/pack200
[2021-05-29T14:31:22.831Z] class path: /home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdk-tests/openjdk/openjdk-jdk/jdk/test/tools/pack200
[2021-05-29T14:31:22.831Z] /home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdk-tests/TKG/output_1622296311482/jdk_tools_1/work/classes/2/tools/pack200
[2021-05-29T14:31:22.831Z] /home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdkbinary/j2sdk-image/lib/tools.jar
[2021-05-29T14:31:22.831Z]
[2021-05-29T14:31:22.831Z] rerun:
[2021-05-29T14:31:22.831Z] cd /home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdk-tests/TKG/output_1622296311482/jdk_tools_1/work/scratch/1 && \
[2021-05-29T14:31:22.831Z] DISPLAY=:0 \
[2021-05-29T14:31:22.831Z] HOME=/home/jenkins \
[2021-05-29T14:31:22.831Z] PATH=/bin:/usr/bin:/usr/sbin \
[2021-05-29T14:31:22.831Z] /home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdkbinary/j2sdk-image/bin/javac \
[2021-05-29T14:31:22.831Z] -J-ea \
[2021-05-29T14:31:22.831Z] -J-esa \
[2021-05-29T14:31:22.831Z] -J-Xmx512m \
[2021-05-29T14:31:22.831Z] -J-XX:-UseCompressedOops \
[2021-05-29T14:31:22.831Z] -J-Dtest.vm.opts='-ea -esa -Xmx512m -XX:-UseCompressedOops' \
[2021-05-29T14:31:22.831Z] -J-Dtest.tool.vm.opts='-J-ea -J-esa -J-Xmx512m -J-XX:-UseCompressedOops' \
[2021-05-29T14:31:22.831Z] -J-Dtest.compiler.opts= \
[2021-05-29T14:31:22.831Z] -J-Dtest.java.opts= \
[2021-05-29T14:31:22.831Z] -J-Dtest.jdk=/home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdkbinary/j2sdk-image \
[2021-05-29T14:31:22.831Z] -J-Dcompile.jdk=/home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdkbinary/j2sdk-image \
[2021-05-29T14:31:22.831Z] -J-Dtest.timeout.factor=8.0 \
[2021-05-29T14:31:22.831Z] -J-Dtest.root=/home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdk-tests/openjdk/openjdk-jdk/jdk/test \
[2021-05-29T14:31:22.831Z] -J-Dtest.name=tools/pack200/Pack200Test.java \
[2021-05-29T14:31:22.831Z] -J-Dtest.file=/home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdk-tests/openjdk/openjdk-jdk/jdk/test/tools/pack200/Pack200Test.java \
[2021-05-29T14:31:22.831Z] -J-Dtest.src=/home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdk-tests/openjdk/openjdk-jdk/jdk/test/tools/pack200 \
[2021-05-29T14:31:22.831Z] -J-Dtest.src.path=/home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdk-tests/openjdk/openjdk-jdk/jdk/test/tools/pack200 \
[2021-05-29T14:31:22.831Z] -J-Dtest.classes=/home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdk-tests/TKG/output_1622296311482/jdk_tools_1/work/classes/2/tools/pack200 \
[2021-05-29T14:31:22.831Z] -J-Dtest.class.path=/home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdk-tests/TKG/output_1622296311482/jdk_tools_1/work/classes/2/tools/pack200 \
[2021-05-29T14:31:22.831Z] -J-Dtest.class.path.prefix=/home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdk-tests/TKG/output_1622296311482/jdk_tools_1/work/classes/2/tools/pack200:/home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdk-tests/openjdk/openjdk-jdk/jdk/test/tools/pack200 \
[2021-05-29T14:31:22.831Z] -d /home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdk-tests/TKG/output_1622296311482/jdk_tools_1/work/classes/2/tools/pack200 \
[2021-05-29T14:31:22.831Z] -sourcepath /home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdk-tests/openjdk/openjdk-jdk/jdk/test/tools/pack200 \
[2021-05-29T14:31:22.831Z] -classpath /home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdk-tests/openjdk/openjdk-jdk/jdk/test/tools/pack200:/home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdk-tests/TKG/output_1622296311482/jdk_tools_1/work/classes/2/tools/pack200:/home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdkbinary/j2sdk-image/lib/tools.jar \
[2021-05-29T14:31:22.831Z] -XDignore.symbol.file /home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdk-tests/openjdk/openjdk-jdk/jdk/test/tools/pack200/Utils.java /home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdk-tests/openjdk/openjdk-jdk/jdk/test/tools/pack200/Pack200Test.java
[2021-05-29T14:31:22.831Z]
[2021-05-29T14:31:22.831Z] ACTION: build -- Passed. All files up to date
[2021-05-29T14:31:22.831Z] REASON: Named class compiled on demand
[2021-05-29T14:31:22.831Z] TIME: 0.0 seconds
[2021-05-29T14:31:22.831Z] messages:
[2021-05-29T14:31:22.831Z] command: build Pack200Test
[2021-05-29T14:31:22.831Z] reason: Named class compiled on demand
[2021-05-29T14:31:22.831Z] elapsed time (seconds): 0.0
[2021-05-29T14:31:22.831Z]
[2021-05-29T14:31:22.831Z] ACTION: main -- Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: java.lang.Exception: memory leak detected 23034
[2021-05-29T14:31:22.831Z] REASON: User specified action: run main/othervm/timeout=1200 -Xmx512m Pack200Test
[2021-05-29T14:31:22.831Z] TIME: 140.156 seconds
[2021-05-29T14:31:22.831Z] messages:
[2021-05-29T14:31:22.831Z] command: main -Xmx512m Pack200Test
[2021-05-29T14:31:22.831Z] reason: User specified action: run main/othervm/timeout=1200 -Xmx512m Pack200Test
[2021-05-29T14:31:22.831Z] Mode: othervm [/othervm specified]
[2021-05-29T14:31:22.831Z] elapsed time (seconds): 140.156
[2021-05-29T14:31:22.831Z] configuration:
[2021-05-29T14:31:22.831Z] STDOUT:
[2021-05-29T14:31:22.831Z] [/home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdkbinary/j2sdk-image/lib/tools.jar, /home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdkbinary/j2sdk-image/jre/lib/rt.jar, /home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdk-tests/openjdk/openjdk-jdk/jdk/test/tools/pack200/pack200-verifier/data/golden.jar]
[2021-05-29T14:31:22.831Z] Packing [/home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdkbinary/j2sdk-image/lib/tools.jar]
[2021-05-29T14:31:22.831Z] Info: memory diff = 157K
[2021-05-29T14:31:22.831Z] Unpacking using java unpacker
[2021-05-29T14:31:22.831Z] Testing...java unpacker
[2021-05-29T14:31:22.831Z] Info: memory diff = 2048K
[2021-05-29T14:31:22.831Z] added manifest
[2021-05-29T14:31:22.831Z] adding: xmlkit/(in = 0) (out= 0)(stored 0%)
[2021-05-29T14:31:22.831Z] adding: xmlkit/XMLKit$Element$1.class(in = 760) (out= 431)(deflated 43%)
[2021-05-29T14:31:22.831Z] adding: xmlkit/XMLKit$ElementFilter.class(in = 709) (out= 405)(deflated 42%)
[2021-05-29T14:31:22.831Z] adding: xmlkit/XMLKit$3.class(in = 991) (out= 534)(deflated 46%)
[2021-05-29T14:31:22.831Z] adding: xmlkit/XMLKit$Element$ANItr.class(in = 1604) (out= 898)(deflated 44%)
[2021-05-29T14:31:22.831Z] adding: xmlkit/AnnotationsElementVisitor.class(in = 4512) (out= 1503)(deflated 66%)
[2021-05-29T14:31:22.831Z] adding: xmlkit/InstructionVisitor.class(in = 5442) (out= 2004)(deflated 63%)
[2021-05-29T14:31:22.831Z] adding: xmlkit/XMLKit$2.class(in = 1122) (out= 603)(deflated 46%)
[2021-05-29T14:31:22.831Z] adding: xmlkit/XMLKit$1.class(in = 1020) (out= 558)(deflated 45%)
[2021-05-29T14:31:22.831Z] adding: xmlkit/AttributeVisitor$1.class(in = 2040) (out= 1005)(deflated 50%)
[2021-05-29T14:31:22.831Z] adding: xmlkit/XMLKit$13.class(in = 1114) (out= 621)(deflated 44%)
[2021-05-29T14:31:22.831Z] adding: xmlkit/XMLKit$Special.class(in = 1688) (out= 869)(deflated 48%)
[2021-05-29T14:31:22.831Z] adding: xmlkit/StackMapVisitor.class(in = 7288) (out= 2364)(deflated 67%)
[2021-05-29T14:31:22.831Z] adding: xmlkit/XMLKit$Element$1ESet.class(in = 1034) (out= 538)(deflated 47%)
[2021-05-29T14:31:22.831Z] adding: xmlkit/XMLKit$Builder.class(in = 5465) (out= 2908)(deflated 46%)
[2021-05-29T14:31:22.831Z] adding: xmlkit/XMLKit.class(in = 18836) (out= 8729)(deflated 53%)
[2021-05-29T14:31:22.831Z] adding: xmlkit/CommandLineParser.class(in = 5317) (out= 2942)(deflated 44%)
[2021-05-29T14:31:22.831Z] adding: xmlkit/XMLKit$1MFilt.class(in = 2456) (out= 1303)(deflated 46%)
[2021-05-29T14:31:22.831Z] adding: xmlkit/XMLKit$8.class(in = 899) (out= 532)(deflated 40%)
[2021-05-29T14:31:22.831Z] adding: xmlkit/XMLKit$4.class(in = 933) (out= 546)(deflated 41%)
[2021-05-29T14:31:22.831Z] adding: xmlkit/XMLKit$Element.class(in = 33332) (out= 15215)(deflated 54%)
[2021-05-29T14:31:22.831Z] adding: xmlkit/XMLKit$12.class(in = 993) (out= 554)(deflated 44%)
[2021-05-29T14:31:22.831Z] adding: xmlkit/XMLKit$Filter.class(in = 224) (out= 158)(deflated 29%)
[2021-05-29T14:31:22.831Z] adding: xmlkit/XMLKit$Element$1AView.class(in = 1701) (out= 786)(deflated 53%)
[2021-05-29T14:31:22.831Z] adding: xmlkit/XMLKit$7.class(in = 903) (out= 503)(deflated 44%)
[2021-05-29T14:31:22.831Z] adding: xmlkit/XMLKit$Element$1Entry.class(in = 1870) (out= 975)(deflated 47%)
[2021-05-29T14:31:22.831Z] adding: xmlkit/XMLKit$6.class(in = 860) (out= 461)(deflated 46%)
[2021-05-29T14:31:22.831Z] adding: xmlkit/XMLKit$Outputter.class(in = 2207) (out= 1206)(deflated 45%)
[2021-05-29T14:31:22.831Z] adding: xmlkit/XMLKit$AttrFilter.class(in = 1030) (out= 567)(deflated 44%)
[2021-05-29T14:31:22.831Z] adding: xmlkit/XMLKit$14.class(in = 755) (out= 461)(deflated 38%)
[2021-05-29T14:31:22.831Z] adding: xmlkit/XMLKit$Element$Itr.class(in = 1959) (out= 1032)(deflated 47%)
[2021-05-29T14:31:22.831Z] adding: xmlkit/XMLKit$ContentComparator.class(in = 1115) (out= 635)(deflated 43%)
[2021-05-29T14:31:22.831Z] adding: xmlkit/XMLKit$9.class(in = 896) (out= 529)(deflated 40%)
[2021-05-29T14:31:22.831Z] adding: xmlkit/AttributeVisitor.class(in = 25602) (out= 8022)(deflated 68%)
[2021-05-29T14:31:22.831Z] adding: xmlkit/XMLKit$Element$LView.class(in = 1902) (out= 836)(deflated 56%)
[2021-05-29T14:31:22.831Z] adding: xmlkit/TokenList.class(in = 6982) (out= 3451)(deflated 50%)
[2021-05-29T14:31:22.831Z] adding: xmlkit/XMLKit$11.class(in = 1003) (out= 532)(deflated 46%)
[2021-05-29T14:31:22.831Z] adding: xmlkit/ClassReader.class(in = 15838) (out= 7547)(deflated 52%)
[2021-05-29T14:31:22.831Z] adding: xmlkit/ConstantPoolVisitor.class(in = 13313) (out= 4138)(deflated 68%)
[2021-05-29T14:31:22.831Z] adding: xmlkit/XMLKit$10.class(in = 906) (out= 537)(deflated 40%)
[2021-05-29T14:31:22.831Z] adding: xmlkit/XMLKit$Printer.class(in = 3232) (out= 1913)(deflated 40%)
[2021-05-29T14:31:22.831Z] adding: xmlkit/XMLKit$Element$1EIter.class(in = 1228) (out= 637)(deflated 48%)
[2021-05-29T14:31:22.831Z] adding: xmlkit/XMLKit$Element$ElemW.class(in = 1990) (out= 1043)(deflated 47%)
[2021-05-29T14:31:22.831Z] adding: xmlkit/XMLKit$5.class(in = 541) (out= 336)(deflated 37%)
[2021-05-29T14:31:22.831Z] adding: sun/(in = 0) (out= 0)(stored 0%)
[2021-05-29T14:31:22.831Z] adding: sun/tools/(in = 0) (out= 0)(stored 0%)
[2021-05-29T14:31:22.831Z] adding: sun/tools/pack/(in = 0) (out= 0)(stored 0%)
[2021-05-29T14:31:22.831Z] adding: sun/tools/pack/verify/(in = 0) (out= 0)(stored 0%)
[2021-05-29T14:31:22.831Z] adding: sun/tools/pack/verify/ClassCompare.class(in = 4415) (out= 2170)(deflated 50%)
[2021-05-29T14:31:22.831Z] adding: sun/tools/pack/verify/JarFileCompare.class(in = 4989) (out= 2625)(deflated 47%)
[2021-05-29T14:31:22.831Z] adding: sun/tools/pack/verify/VerifyTreeSet.class(in = 636) (out= 373)(deflated 41%)
[2021-05-29T14:31:22.831Z] adding: sun/tools/pack/verify/Main.class(in = 3930) (out= 2074)(deflated 47%)
[2021-05-29T14:31:22.831Z] adding: sun/tools/pack/verify/Globals.class(in = 7414) (out= 3696)(deflated 50%)
[2021-05-29T14:31:22.831Z] --listing /home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdk-tests/TKG/output_1622296311482/jdk_tools_1/work/scratch/1/.---
[2021-05-29T14:31:22.831Z] d xclasses
[2021-05-29T14:31:22.831Z] - tools.jar.pack
[2021-05-29T14:31:22.831Z] - pack200-verifier.jar
[2021-05-29T14:31:22.831Z] - java-tools.jar
[2021-05-29T14:31:22.831Z] /home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdkbinary/j2sdk-image/jre/bin/java -cp /home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdkbinary/j2sdk-image/lib/tools.jar:pack200-verifier.jar sun.tools.pack.verify.Main /home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdkbinary/j2sdk-image/lib/tools.jar /home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdk-tests/TKG/output_1622296311482/jdk_tools_1/work/scratch/1/java-tools.jar -O
[2021-05-29T14:31:22.831Z] LogFile:./verifier.log
[2021-05-29T14:31:22.831Z] Reference JAR:/home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdkbinary/j2sdk-image/lib/tools.jar
[2021-05-29T14:31:22.831Z] Compared JAR:/home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdk-tests/TKG/output_1622296311482/jdk_tools_1/work/scratch/1/java-tools.jar
[2021-05-29T14:31:22.831Z] PASS
[2021-05-29T14:31:22.831Z] Unpacking using native unpacker
[2021-05-29T14:31:22.831Z] Testing...native unpacker
[2021-05-29T14:31:22.831Z] Info: memory diff = 12394K
[2021-05-29T14:31:22.832Z] --listing /home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdk-tests/TKG/output_1622296311482/jdk_tools_1/work/scratch/1/.---
[2021-05-29T14:31:22.832Z] d xclasses
[2021-05-29T14:31:22.832Z] - tools.jar.pack
[2021-05-29T14:31:22.832Z] - native-tools.jar
[2021-05-29T14:31:22.832Z] - pack200-verifier.jar
[2021-05-29T14:31:22.832Z] - java-tools.jar
[2021-05-29T14:31:22.832Z] - verifier.log
[2021-05-29T14:31:22.832Z] /home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdkbinary/j2sdk-image/jre/bin/java -cp /home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdkbinary/j2sdk-image/lib/tools.jar:pack200-verifier.jar sun.tools.pack.verify.Main java-tools.jar native-tools.jar -O -b
[2021-05-29T14:31:22.832Z] LogFile:./verifier.log
[2021-05-29T14:31:22.832Z] Reference JAR:/home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdk-tests/TKG/output_1622296311482/jdk_tools_1/work/scratch/1/java-tools.jar
[2021-05-29T14:31:22.832Z] Compared JAR:/home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdk-tests/TKG/output_1622296311482/jdk_tools_1/work/scratch/1/native-tools.jar
[2021-05-29T14:31:22.832Z] PASS
[2021-05-29T14:31:22.832Z] Done.
[2021-05-29T14:31:22.832Z] Packing [/home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdkbinary/j2sdk-image/jre/lib/rt.jar]
[2021-05-29T14:31:22.832Z] Info: memory diff = 8492K
[2021-05-29T14:31:22.832Z] Unpacking using java unpacker
[2021-05-29T14:31:22.832Z] Testing...java unpacker
[2021-05-29T14:31:22.832Z] Info: memory diff = 15974K
[2021-05-29T14:31:22.832Z] --listing /home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdk-tests/TKG/output_1622296311482/jdk_tools_1/work/scratch/1/.---
[2021-05-29T14:31:22.832Z] d xclasses
[2021-05-29T14:31:22.832Z] - rt.jar.pack
[2021-05-29T14:31:22.832Z] - tools.jar.pack
[2021-05-29T14:31:22.832Z] - native-tools.jar
[2021-05-29T14:31:22.832Z] - pack200-verifier.jar
[2021-05-29T14:31:22.832Z] - java-tools.jar
[2021-05-29T14:31:22.832Z] - verifier.log
[2021-05-29T14:31:22.832Z] - java-rt.jar
[2021-05-29T14:31:22.832Z] /home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdkbinary/j2sdk-image/jre/bin/java -cp /home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdkbinary/j2sdk-image/lib/tools.jar:pack200-verifier.jar sun.tools.pack.verify.Main /home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdkbinary/j2sdk-image/jre/lib/rt.jar /home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdk-tests/TKG/output_1622296311482/jdk_tools_1/work/scratch/1/java-rt.jar -O
[2021-05-29T14:31:22.832Z] LogFile:./verifier.log
[2021-05-29T14:31:22.832Z] Reference JAR:/home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdkbinary/j2sdk-image/jre/lib/rt.jar
[2021-05-29T14:31:22.832Z] Compared JAR:/home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdk-tests/TKG/output_1622296311482/jdk_tools_1/work/scratch/1/java-rt.jar
[2021-05-29T14:31:22.832Z] PASS
[2021-05-29T14:31:22.832Z] Unpacking using native unpacker
[2021-05-29T14:31:22.832Z] Testing...native unpacker
[2021-05-29T14:31:22.832Z] Info: memory diff = 23034K
[2021-05-29T14:31:22.832Z] STDERR:
[2021-05-29T14:31:22.832Z] Note: Some input files use unchecked or unsafe operations.
[2021-05-29T14:31:22.832Z] Note: Recompile with -Xlint:unchecked for details.
[2021-05-29T14:31:22.832Z] java.lang.RuntimeException: java.lang.Exception: memory leak detected 23034
[2021-05-29T14:31:22.832Z] at Pack200Test.doPackUnpack(Pack200Test.java:114)
[2021-05-29T14:31:22.832Z] at Pack200Test.main(Pack200Test.java:134)
[2021-05-29T14:31:22.832Z] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[2021-05-29T14:31:22.832Z] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[2021-05-29T14:31:22.832Z] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[2021-05-29T14:31:22.832Z] at java.lang.reflect.Method.invoke(Method.java:498)
[2021-05-29T14:31:22.832Z] at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
[2021-05-29T14:31:22.832Z] at java.lang.Thread.run(Thread.java:748)
[2021-05-29T14:31:22.832Z] Caused by: java.lang.Exception: memory leak detected 23034
[2021-05-29T14:31:22.832Z] at Pack200Test.leakCheck(Pack200Test.java:66)
[2021-05-29T14:31:22.832Z] at Pack200Test.doPackUnpack(Pack200Test.java:107)
[2021-05-29T14:31:22.832Z] ... 7 more
[2021-05-29T14:31:22.832Z]
[2021-05-29T14:31:22.832Z] JavaTest Message: Test threw exception: java.lang.RuntimeException: java.lang.Exception: memory leak detected 23034
[2021-05-29T14:31:22.832Z] JavaTest Message: shutting down test
[2021-05-29T14:31:22.832Z]
[2021-05-29T14:31:22.832Z] STATUS:Failed.`main' threw exception: java.lang.RuntimeException: java.lang.Exception: memory leak detected 23034
[2021-05-29T14:31:22.832Z] rerun:
[2021-05-29T14:31:22.832Z] cd /home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdk-tests/TKG/output_1622296311482/jdk_tools_1/work/scratch/1 && \
[2021-05-29T14:31:22.832Z] DISPLAY=:0 \
[2021-05-29T14:31:22.832Z] HOME=/home/jenkins \
[2021-05-29T14:31:22.832Z] PATH=/bin:/usr/bin:/usr/sbin \
[2021-05-29T14:31:22.832Z] CLASSPATH=/home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdk-tests/TKG/output_1622296311482/jdk_tools_1/work/classes/2/tools/pack200:/home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdk-tests/openjdk/openjdk-jdk/jdk/test/tools/pack200:/home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdkbinary/j2sdk-image/lib/tools.jar:/home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/jvmtest/openjdk/jtreg/lib/javatest.jar:/home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/jvmtest/openjdk/jtreg/lib/jtreg.jar \
[2021-05-29T14:31:22.832Z] /home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdkbinary/j2sdk-image/bin/java \
[2021-05-29T14:31:22.832Z] -Dtest.vm.opts='-ea -esa -Xmx512m -XX:-UseCompressedOops' \
[2021-05-29T14:31:22.832Z] -Dtest.tool.vm.opts='-J-ea -J-esa -J-Xmx512m -J-XX:-UseCompressedOops' \
[2021-05-29T14:31:22.832Z] -Dtest.compiler.opts= \
[2021-05-29T14:31:22.832Z] -Dtest.java.opts= \
[2021-05-29T14:31:22.832Z] -Dtest.jdk=/home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdkbinary/j2sdk-image \
[2021-05-29T14:31:22.832Z] -Dcompile.jdk=/home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdkbinary/j2sdk-image \
[2021-05-29T14:31:22.832Z] -Dtest.timeout.factor=8.0 \
[2021-05-29T14:31:22.832Z] -Dtest.root=/home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdk-tests/openjdk/openjdk-jdk/jdk/test \
[2021-05-29T14:31:22.832Z] -Dtest.name=tools/pack200/Pack200Test.java \
[2021-05-29T14:31:22.832Z] -Dtest.file=/home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdk-tests/openjdk/openjdk-jdk/jdk/test/tools/pack200/Pack200Test.java \
[2021-05-29T14:31:22.832Z] -Dtest.src=/home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdk-tests/openjdk/openjdk-jdk/jdk/test/tools/pack200 \
[2021-05-29T14:31:22.832Z] -Dtest.src.path=/home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdk-tests/openjdk/openjdk-jdk/jdk/test/tools/pack200 \
[2021-05-29T14:31:22.832Z] -Dtest.classes=/home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdk-tests/TKG/output_1622296311482/jdk_tools_1/work/classes/2/tools/pack200 \
[2021-05-29T14:31:22.832Z] -Dtest.class.path=/home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdk-tests/TKG/output_1622296311482/jdk_tools_1/work/classes/2/tools/pack200 \
[2021-05-29T14:31:22.832Z] -Dtest.class.path.prefix=/home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdk-tests/TKG/output_1622296311482/jdk_tools_1/work/classes/2/tools/pack200:/home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdk-tests/openjdk/openjdk-jdk/jdk/test/tools/pack200 \
[2021-05-29T14:31:22.832Z] -ea \
[2021-05-29T14:31:22.832Z] -esa \
[2021-05-29T14:31:22.832Z] -Xmx512m \
[2021-05-29T14:31:22.832Z] -XX:-UseCompressedOops \
[2021-05-29T14:31:22.833Z] -Xmx512m \
[2021-05-29T14:31:22.833Z] com.sun.javatest.regtest.agent.MainWrapper /home/jenkins/workspace/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/openjdk-tests/TKG/output_1622296311482/jdk_tools_1/work/tools/pack200/Pack200Test.d/main.0.jta
[2021-05-29T14:31:22.833Z]
[2021-05-29T14:31:22.833Z] TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: java.lang.Exception: memory leak detected 23034
```
To rerun (amend platform as required): https://ci.adoptopenjdk.net/job/Grinder/parambuild/?JDK_VERSION=8&JDK_IMPL=hotspot&JDK_VENDOR=adoptopenjdk&BUILD_LIST=openjdk&PLATFORM=x86-64_windows&TARGET=jdk_tools

Contributor guide

Open the contributing guide

Research direction

Start with tools/pack200/Pack200Test.java and Utils.java, then run the jdk_tools test using the reported Pack200Test invocation to reproduce the memory-leak failure. Compare the reported memory values across platforms and verify that the test completes without reporting a leak.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.