Skip to content

[upstream][dragonwell11][11.0.26.23.4][Xcomp]serviceability/sa/ClhsdbFindPC.java#id2失败:'In interpreter codelet' missing from stdout/stderr #935

@sendaoYan

Description

@sendaoYan

任务链接:https://tone.aliyun-inc.com/ws/xesljfzh/test_result/464846

【环境准备】

BINARY_URL=oss://dragonwell/11.0.26.23.4-test-dragonwell_extended/Alibaba_Dragonwell_Extended_11.0.26.23.4_aarch64_linux.tar.gz
TEST_IMAGE=oss://dragonwell/11.0.26.23.4-test-dragonwell_extended/Alibaba_Dragonwell_Extended_11.0.26.23.4_aarch64_linux-testimage.tar.gz
[email protected]:dragonwell-project/dragonwell11.git
JDK_BRANCH=dragonwell_extended-11.0.26.23.4

jtreg=oss://compiler-ci-bucket/jdk/tools/jtreg-7.4.1.zip


#下载解压jtreg,cd jtreg并配置
export JT_HOME=$PWD ; export PATH=$PWD/bin:$PATH
#下载解压jdk,cd <目录>并配置;如果有test-image,下载test-image包
export JAVA_HOME=$PWD ; export PATH=$JAVA_HOME/bin:$PATH ; export TEST_JDK_HOME=$JAVA_HOME
#下载jdk-repo
git clone ${JDK_REPO} --depth 1 -b $JDK_BRANCH jdk-repo



#执行测试
jtreg -w tmp -nr -v:fail,error -nativepath:/root/11/test-image/hotspot/jtreg/native  -Xcomp -e:TEST_IMAGE_DIR=/root/11/test-image -e:LD_LIBRARY_PATH=/root/11/jdk-repo/build/tools/lib serviceability/sa/ClhsdbFindPC.java#id2

【测试分析】

arm x64上-Xcomp 均出现fail。默认选项pass

release和temurin -Xcomp都是fail的。

【版本信息】

#jdk信息

openjdk version "11.0.26.22" 2025-01-21
OpenJDK Runtime Environment (Alibaba Dragonwell Extended Edition)-11.0.25.22+9-GA (build 11.0.26.22+9)
OpenJDK 64-Bit Server VM (Alibaba Dragonwell Extended Edition)-11.0.25.22+9-GA (build 11.0.26.22+9, mixed mode)
OpenJDK 64-Bit Server VM (11.0.26.22+9) for linux-aarch64 JRE (11.0.26.22+9), built on Feb 12 2025 02:19:53 by "" with gcc 7.5.0



#测试机信息jdk环境信息

Linux CompilerTest-aarch64-2 5.10.134-16.1.al8.aarch64 #1 SMP Thu Dec 7 22:04:51 CST 2023 aarch64 aarch64 aarch64 GNU/Linux
NAME="Alibaba Cloud Linux"
VERSION="3 (Soaring Falcon)"
ID="alinux"
ID_LIKE="rhel fedora centos anolis"
VERSION_ID="3"
UPDATE_ID="9"
PLATFORM_ID="platform:al8"
PRETTY_NAME="Alibaba Cloud Linux 3 (Soaring Falcon)"
ANSI_COLOR="0;31"
HOME_URL="https://www.aliyun.com/"

              total        used        free      shared  buff/cache   available
Mem:          122Gi       4.4Gi        87Gi        15Mi        30Gi       116Gi
Swap:            0B          0B          0B
Architecture:        aarch64
Byte Order:          Little Endian
CPU(s):              32
On-line CPU(s) list: 0-31
Thread(s) per core:  1
Core(s) per socket:  32
Socket(s):           1
NUMA node(s):        1
Vendor ID:           ARM
BIOS Vendor ID:      Alibaba Cloud
Model:               0
Model name:          Neoverse-N2
BIOS Model name:     virt-rhel7.6.0
Stepping:            r0p0
CPU MHz:             3000.000
CPU max MHz:         3000.0000
CPU min MHz:         3000.0000
BogoMIPS:            100.00
L1d cache:           64K
L1i cache:           64K
L2 cache:            1024K
L3 cache:            65536K
NUMA node0 CPU(s):   0-31
Flags:               fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm ssbs sb dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh
# dmidecode 3.3
Getting SMBIOS data from sysfs.
SMBIOS 3.0.0 present.

Handle 0x0300, DMI type 3, 21 bytes
Chassis Information
        Manufacturer: Alibaba Cloud
        Type: Other
        Lock: Not Present
        Version: virt-rhel7.6.0
        Serial Number: Not Specified
        Asset Tag: Not Specified
        Boot-up State: Safe
        Power Supply State: Safe
        Thermal State: Safe
        Security Status: Unknown
        OEM Information: 0x00000000
        Height: Unspecified
        Number Of Power Cords: Unspecified
        Contained Elements: 0



【用例日志】

command: main ClhsdbFindPC false false
reason: User specified action: run main/othervm/timeout=480 ClhsdbFindPC false false
started: Wed Feb 12 17:27:51 CST 2025
Mode: othervm [/othervm specified]
finished: Wed Feb 12 17:28:02 CST 2025
elapsed time (seconds): 10.972
configuration:
STDOUT:
Starting the ClhsdbFindPC test
Started LingeredApp (-Xint) with pid 2497003
Starting clhsdb against 2497003
[2025-02-12T09:27:57.324994Z] Gathering output for process 2497035
[2025-02-12T09:27:59.550522Z] Waiting for completion for process 2497035
[2025-02-12T09:27:59.553750Z] Waiting for completion finished for process 2497035
Warning! JS Engine can't start, some commands will not be available.
hsdb> Deadlock Detection:

No deadlocks found.

"Common-Cleaner" #22 daemon prio=8 tid=0x0000ffffb4534800 nid=0x261a04 in Object.wait() [0x0000ffff220cd000]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
   JavaThread state: _thread_blocked
 - java.lang.Object.wait(long) @bci=0, pc=0x0000ffffa4188f38, Method*=0x0000ffff48af5cc8 (Compiled frame; information may be imprecise)
        - waiting on <no object reference available>
 - java.lang.ref.ReferenceQueue.remove(long) @bci=76, line=158, pc=0x0000ffff9c7a6e50, Method*=0x0000ffff48c74920 (Compiled frame)
        - waiting to re-lock in wait() <0x00000000fc89efb0> (a java.lang.ref.ReferenceQueue$Lock)
 - jdk.internal.ref.CleanerImpl.run() @bci=65, line=154, pc=0x0000ffff9c7a4b48, Method*=0x0000ffff48ecf630 (Compiled frame)
 - java.lang.Thread.run() @bci=11, line=955, pc=0x0000ffff9c7a1050, Method*=0x0000ffff48b30dc0 (Compiled frame)
 - jdk.internal.misc.InnocuousThread.run() @bci=20, line=161, pc=0x0000ffff9c7a1050, Method*=0x0000ffff48ed78b0 (Compiled frame)

Locked ownable synchronizers:
    - None

"Signal Dispatcher" #4 daemon prio=9 tid=0x0000ffffb44b9000 nid=0x2619f5 runnable [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE
   JavaThread state: _thread_blocked

Locked ownable synchronizers:
    - None

"Finalizer" #3 daemon prio=8 tid=0x0000ffffb4494000 nid=0x2619f4 in Object.wait() [0x0000ffff485ee000]
   java.lang.Thread.State: WAITING (on object monitor)
   JavaThread state: _thread_blocked
 - java.lang.Object.wait(long) @bci=0, pc=0x0000ffffa3926cfc, Method*=0x0000ffff48af5cc8 (Interpreted frame)
        - waiting on <0x00000000fc80c4b8> (a java.lang.ref.ReferenceQueue$Lock)
 - java.lang.ref.ReferenceQueue.remove(long) @bci=76, line=158, pc=0x0000ffffa392219c, Method*=0x0000ffff48c74920 (Interpreted frame)
        - waiting to re-lock in wait() <0x00000000fc80c4b8> (a java.lang.ref.ReferenceQueue$Lock)
 - java.lang.ref.ReferenceQueue.remove() @bci=2, line=180, pc=0x0000ffffa3921ee0, Method*=0x0000ffff48c749d0 (Interpreted frame)
 - java.lang.ref.Finalizer$FinalizerThread.run() @bci=37, line=170, pc=0x0000ffffa3921ee0, Method*=0x0000ffff48c76cd8 (Interpreted frame)

Locked ownable synchronizers:
    - None

"Reference Handler" #2 daemon prio=10 tid=0x0000ffffb4492000 nid=0x2619f3 waiting on condition [0x0000ffff487ee000]
   java.lang.Thread.State: RUNNABLE
   JavaThread state: _thread_blocked
 - java.lang.ref.Reference.waitForReferencePendingList() @bci=0, pc=0x0000ffffa3926cfc, Method*=0x0000ffff48b2ac68 (Interpreted frame)
 - java.lang.ref.Reference.processPendingReferences() @bci=0, line=246, pc=0x0000ffffa392219c, Method*=0x0000ffff48b2ae10 (Interpreted frame)
 - java.lang.ref.Reference$ReferenceHandler.run() @bci=0, line=216, pc=0x0000ffffa392219c, Method*=0x0000ffff48c72d18 (Interpreted frame)

Locked ownable synchronizers:
    - None

"main" #1 prio=5 tid=0x0000ffffb4025800 nid=0x2619ec waiting on condition [0x0000ffffba3fe000]
   java.lang.Thread.State: TIMED_WAITING (sleeping)
   JavaThread state: _thread_blocked
 - java.lang.Thread.sleep0(long) @bci=0, pc=0x0000ffffa41bbe40, Method*=0x0000ffff48b2fef0 (Compiled frame; information may be imprecise)
 - java.lang.Thread.sleep(long) @bci=49, line=402, pc=0x0000ffffa41bba70, Method*=0x0000ffff48b2fd60 (Compiled frame)
 - jdk.test.lib.apps.LingeredApp.main(java.lang.String[]) @bci=135, line=557, pc=0x0000ffffa392219c, Method*=0x0000ffff48f12fa8 (Interpreted frame)
 - LingeredAppWithTrivialMain.main(java.lang.String[]) @bci=1, line=33, pc=0x0000ffff9c7eb70c, Method*=0x0000ffff48eff250 (Compiled frame)

Locked ownable synchronizers:
    - None

hsdb>
Starting clhsdb against 2497003
[2025-02-12T09:27:59.623940Z] Gathering output for process 2497087
[2025-02-12T09:28:01.097552Z] Waiting for completion for process 2497087
[2025-02-12T09:28:01.097651Z] Waiting for completion finished for process 2497087
Warning! JS Engine can't start, some commands will not be available.
hsdb> Address 0x0000ffff9c7eb70c: In code in NMethod for LingeredAppWithTrivialMain.main([Ljava/lang/String;)V content: [0x0000ffff9c7eb6c0, 0x0000ffff9c7eb830),  code: [0x0000ffff9c7eb6c0, 0x0000ffff9c7eb830),  data: [0x0000ffff9c7eb830, 0x0000ffff9c7eb8b0),  oops: [0x0000ffff9c7eb830, 0x0000ffff9c7eb838),  frame size: 64
hsdb>
STDERR:
Command line: ['/root/11/new/bin/java' '-Xint' '-XX:-AlwaysPreTouch' '-Xcomp' '-cp' '/root/11/tmp/classes/serviceability/sa/ClhsdbFindPC_id2.d:/root/11/tmp/classes/test/lib' 'LingeredAppWithTrivialMain' '60b9a3b8-9382-4b84-92eb-80f7930a74bc.lck' ]
Attaching to process 2497003, please wait...
Warning: Nashorn engine is planned to be removed from a future JDK release
javax.script.ScriptException: TypeError: sapkg.runtime.VM.getVM is not a function in sa.js at line number 54
javax.script.ScriptException: TypeError: sapkg.runtime.VM.getVM is not a function in sa.js at line number 54
Attaching to process 2497003, please wait...
Warning: Nashorn engine is planned to be removed from a future JDK release
javax.script.ScriptException: TypeError: sapkg.runtime.VM.getVM is not a function in sa.js at line number 54
javax.script.ScriptException: TypeError: sapkg.runtime.VM.getVM is not a function in sa.js at line number 54
 stdout: [ Address 0x0000ffff9c7eb70c: In code in NMethod for LingeredAppWithTrivialMain.main([Ljava/lang/String;)V content: [0x0000ffff9c7eb6c0, 0x0000ffff9c7eb830),  code: [0x0000ffff9c7eb6c0, 0x0000ffff9c7eb830),  data: [0x0000ffff9c7eb830, 0x0000ffff9c7eb8b0),  oops: [0x0000ffff9c7eb830, 0x0000ffff9c7eb838),  frame size: 64
];
 stderr: [ Address 0x0000ffff9c7eb70c: In code in NMethod for LingeredAppWithTrivialMain.main([Ljava/lang/String;)V content: [0x0000ffff9c7eb6c0, 0x0000ffff9c7eb830),  code: [0x0000ffff9c7eb6c0, 0x0000ffff9c7eb830),  data: [0x0000ffff9c7eb830, 0x0000ffff9c7eb8b0),  oops: [0x0000ffff9c7eb830, 0x0000ffff9c7eb838),  frame size: 64
]
 exitValue = -1

 LingeredApp stdout: [];
 LingeredApp stderr: []
 LingeredApp exitValue = 0
java.lang.RuntimeException: Test ERROR java.lang.RuntimeException: 'In interpreter codelet' missing from stdout/stderr

        at ClhsdbFindPC.testFindPC(ClhsdbFindPC.java:155)
        at ClhsdbFindPC.main(ClhsdbFindPC.java:167)
        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:566)
        at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
        at java.base/java.lang.Thread.run(Thread.java:955)
Caused by: java.lang.RuntimeException: 'In interpreter codelet' missing from stdout/stderr

        at jdk.test.lib.process.OutputAnalyzer.shouldMatch(OutputAnalyzer.java:282)
        at ClhsdbLauncher.runCmd(ClhsdbLauncher.java:140)
        at ClhsdbLauncher.run(ClhsdbLauncher.java:177)
        at ClhsdbFindPC.testFindPC(ClhsdbFindPC.java:150)
        ... 7 more

JavaTest Message: Test threw exception: java.lang.RuntimeException: Test ERROR java.lang.RuntimeException: 'In interpreter codelet' missing from stdout/stderr

JavaTest Message: shutting down test


Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions