dragonwell-project / dragonwell8

Alibaba Dragonwell8 JDK
http://dragonwell-jdk.io
GNU General Public License v2.0
4.21k stars 497 forks source link

【上游问题】serviceability/sa/jmap-hashcode/Test8028623.java大概率随机失败 #530

Open sendaoYan opened 1 year ago

sendaoYan commented 1 year ago

https://tone.aliyun-inc.com/ws/xesljfzh/test_result/161526?tab=2

ACTION: main -- Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Test failed with: java.lang.RuntimeException: jmap returns: 1
REASON: User specified action: run main Test8028623 
TIME:   5.664 seconds
messages:
command: main Test8028623
reason: User specified action: run main Test8028623 
Mode: othervm
elapsed time (seconds): 5.664
configuration:
STDOUT:
1
stdout:
Attaching to process ID 286502, please wait...
Debugger attached successfully.
Server compiler detected.
JVM version is 25.362-b01
Dumping heap to heap.out ...

stderr:
Exception in thread "main" java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at sun.tools.jmap.JMap.runTool(JMap.java:201)
    at sun.tools.jmap.JMap.main(JMap.java:130)
Caused by: java.lang.NullPointerException
    at sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeSymbolID(HeapHprofBinWriter.java:1001)
    at sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeFieldDescriptors(HeapHprofBinWriter.java:834)
    at sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeClassDumpRecord(HeapHprofBinWriter.java:587)
    at sun.jvm.hotspot.utilities.HeapHprofBinWriter.access$000(HeapHprofBinWriter.java:310)
    at sun.jvm.hotspot.utilities.HeapHprofBinWriter$1.visit(HeapHprofBinWriter.java:524)
    at sun.jvm.hotspot.memory.SystemDictionary$2.visit(SystemDictionary.java:179)
    at sun.jvm.hotspot.memory.Dictionary.classesDo(Dictionary.java:68)
    at sun.jvm.hotspot.memory.SystemDictionary.classesDo(SystemDictionary.java:190)
    at sun.jvm.hotspot.memory.SystemDictionary.allClassesDo(SystemDictionary.java:183)
    at sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeClassDumpRecords(HeapHprofBinWriter.java:520)
    at sun.jvm.hotspot.utilities.HeapHprofBinWriter.write(HeapHprofBinWriter.java:430)
    at sun.jvm.hotspot.tools.HeapDumper.run(HeapDumper.java:62)
    at sun.jvm.hotspot.tools.Tool.startInternal(Tool.java:260)
    at sun.jvm.hotspot.tools.Tool.start(Tool.java:223)
    at sun.jvm.hotspot.tools.Tool.execute(Tool.java:118)
    at sun.jvm.hotspot.tools.HeapDumper.main(HeapDumper.java:83)
    ... 6 more

STDERR:
java.lang.RuntimeException: jmap returns: 1
    at Test8028623.main(Test8028623.java:70)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
    at java.lang.Thread.run(Thread.java:750)
java.lang.RuntimeException: Test failed with: java.lang.RuntimeException: jmap returns: 1
    at Test8028623.main(Test8028623.java:77)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
    at java.lang.Thread.run(Thread.java:750)

JavaTest Message: Test threw exception: java.lang.RuntimeException: Test failed with: java.lang.RuntimeException: jmap returns: 1
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Test failed with: java.lang.RuntimeException: jmap returns: 1
rerun:
cd /tmp/tone/run/jtreg/jt-work/hotspot_test/serviceability/sa/jmap-hashcode/Test8028623 && \
DISPLAY=:7 \
HOME=/root \
LANG=en_US.UTF-8 \
PATH=/bin:/usr/bin:/usr/sbin \
CLASSPATH=/tmp/tone/run/jtreg/jt-work/hotspot_test/classes/27/serviceability/sa/jmap-hashcode:/tmp/tone/run/jtreg/jdk-repo/hotspot/test/serviceability/sa/jmap-hashcode:/tmp/tone/run/jtreg/jt-work/hotspot_test/classes/27/testlibrary:/tmp/tone/run/jtreg/jdk-repo/hotspot/test/testlibrary:/opt/java/openjdk/lib/tools.jar:/tmp/tone/run/jtreg/jtreg/lib/javatest.jar:/tmp/tone/run/jtreg/jtreg/lib/jtreg.jar \
    /opt/java/openjdk/bin/java \
        -Dtest.vm.opts='-Djdk.lang.processReaperUseDefaultStackSize=true -Xmixed -ea -esa' \
        -Dtest.tool.vm.opts='-J-Djdk.lang.processReaperUseDefaultStackSize=true -J-Xmixed -J-ea -J-esa' \
        -Dtest.compiler.opts= \
        -Dtest.java.opts= \
        -Dtest.jdk=/opt/java/openjdk \
        -Dcompile.jdk=/opt/java/openjdk \
        -Dtest.timeout.factor=4.0 \
        -Dtest.root=/tmp/tone/run/jtreg/jdk-repo/hotspot/test \
        -Dtest.name=serviceability/sa/jmap-hashcode/Test8028623.java \
        -Dtest.file=/tmp/tone/run/jtreg/jdk-repo/hotspot/test/serviceability/sa/jmap-hashcode/Test8028623.java \
        -Dtest.src=/tmp/tone/run/jtreg/jdk-repo/hotspot/test/serviceability/sa/jmap-hashcode \
        -Dtest.src.path=/tmp/tone/run/jtreg/jdk-repo/hotspot/test/serviceability/sa/jmap-hashcode:/tmp/tone/run/jtreg/jdk-repo/hotspot/test/testlibrary \
        -Dtest.classes=/tmp/tone/run/jtreg/jt-work/hotspot_test/classes/27/serviceability/sa/jmap-hashcode \
        -Dtest.class.path=/tmp/tone/run/jtreg/jt-work/hotspot_test/classes/27/serviceability/sa/jmap-hashcode:/tmp/tone/run/jtreg/jt-work/hotspot_test/classes/27/testlibrary \
        -Djdk.lang.processReaperUseDefaultStackSize=true \
        -Xmixed \
        -ea \
        -esa \
        com.sun.javatest.regtest.agent.MainWrapper /tmp/tone/run/jtreg/jt-work/hotspot_test/serviceability/sa/jmap-hashcode/Test8028623.d/main.0.jta

TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Test failed with: java.lang.RuntimeException: jmap returns: 1