Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JDK24 java/lang/Class/ProtectionDomainRace.java AssertionError: sun.security.util.ResourcesMgr (PD) #20704

Closed
JasonFengJ9 opened this issue Nov 28, 2024 · 2 comments

Comments

@JasonFengJ9
Copy link
Member

JasonFengJ9 commented Nov 28, 2024

Failure link

From an internal build(ubu22-aarch64-2):

00:07:31  openjdk version "24-internal" 2025-03-18
00:07:31  OpenJDK Runtime Environment (build 24-internal-adhoc.jenkins.BuildJDKnextaarch64linuxPersonal)
00:07:31  Eclipse OpenJ9 VM (build master-4ee9b77dbbd, JRE 24 Linux aarch64-64-Bit Compressed References 20241128_142 (JIT enabled, AOT enabled)
00:07:31  OpenJ9   - 4ee9b77dbbd
00:07:31  OMR      - 494474f6819
00:07:31  JCL      - 91383efdb6c based on jdk-24+25)

Rerun in Grinder - Change TARGET to run only the failed test targets.

Optional info

Failure output (captured from console output)

00:09:01  ===============================================
00:09:01  Running test jdk_lang_1 ...
00:09:01  ===============================================
00:09:01  jdk_lang_1 Start Time: Thu Nov 28 05:09:00 2024 Epoch Time (ms): 1732770540869
00:09:01  variation: -Xdump:system:none -Xdump:heap:none -Xdump:system:events=gpf+abort+traceassert+corruptcache -XX:-JITServerTechPreviewMessage Mode650
00:09:01  JVM_OPTIONS:  -Xdump:system:none -Xdump:heap:none -Xdump:system:events=gpf+abort+traceassert+corruptcache -XX:-JITServerTechPreviewMessage -XX:-UseCompressedOops -Xverbosegclog 

00:11:17  TEST: java/lang/Class/ProtectionDomainRace.java

00:11:17  STDERR:
00:11:17  java.lang.AssertionError: sun.security.util.ResourcesMgr (PD)
00:11:17  	at java.base/java.lang.invoke.MethodHandleImpl$BindCaller.checkInjectedInvoker(MethodHandleImpl.java:1217)
00:11:17  	at java.base/java.lang.invoke.MethodHandleImpl$BindCaller.makeInjectedInvoker(MethodHandleImpl.java:1119)
00:11:17  	at java.base/java.lang.invoke.MethodHandleImpl$BindCaller$1.computeValue(MethodHandleImpl.java:1126)
00:11:17  	at java.base/java.lang.invoke.MethodHandleImpl$BindCaller$1.computeValue(MethodHandleImpl.java:1123)
00:11:17  	at java.base/java.lang.ClassValue.getFromHashMap(ClassValue.java:237)
00:11:17  	at java.base/java.lang.ClassValue.getFromBackup(ClassValue.java:219)
00:11:17  	at java.base/java.lang.ClassValue.get(ClassValue.java:125)
00:11:17  	at java.base/java.lang.invoke.MethodHandleImpl$BindCaller.bindCallerWithInjectedInvoker(MethodHandleImpl.java:1098)
00:11:17  	at java.base/java.lang.invoke.MethodHandleImpl$BindCaller.bindCaller(MethodHandleImpl.java:1086)
00:11:17  	at java.base/java.lang.invoke.MethodHandleImpl.bindCaller(MethodHandleImpl.java:1039)
00:11:17  	at java.base/java.lang.invoke.MethodHandles$Lookup.maybeBindCaller(MethodHandles.java:3910)
00:11:17  	at java.base/java.lang.invoke.MethodHandles$Lookup.getDirectMethodCommon(MethodHandles.java:3894)
00:11:17  	at java.base/java.lang.invoke.MethodHandles$Lookup.getDirectMethod(MethodHandles.java:3837)
00:11:17  	at java.base/java.lang.invoke.MethodHandles$Lookup.getDirectMethodForConstant(MethodHandles.java:4051)
00:11:17  	at java.base/java.lang.invoke.MethodHandles$Lookup.linkMethodHandleConstant(MethodHandles.java:4004)
00:11:17  	at java.base/java.lang.invoke.MethodHandleNatives.linkMethodHandleConstant(MethodHandleNatives.java:636)
00:11:17  	at java.base/java.lang.invoke.MethodHandleResolver.sendResolveMethodHandle(MethodHandleResolver.java:297)
00:11:17  	at java.base/java.lang.invoke.MethodHandleResolver.getCPMethodHandleAt(Native Method)
00:11:17  	at java.base/java.lang.invoke.MethodHandleResolver.getAdditionalBsmArg(MethodHandleResolver.java:412)
00:11:17  	at java.base/java.lang.invoke.MethodHandleResolver.resolveInvokeDynamic(MethodHandleResolver.java:186)
00:11:17  	at java.base/sun.security.util.ResourcesMgr.getBundle(ResourcesMgr.java:54)
00:11:17  	at java.base/sun.security.util.ResourcesMgr.getString(ResourcesMgr.java:40)
00:11:17  	at java.base/javax.security.auth.Subject.doAs(Subject.java:389)
00:11:17  	at ProtectionDomainRace.lambda$main$1(ProtectionDomainRace.java:66)
00:11:17  	at java.base/java.lang.Thread.run(Thread.java:1458)
00:11:17  
00:11:17  JavaTest Message: Test threw exception: java.lang.AssertionError: sun.security.util.ResourcesMgr (PD)

01:44:37  jdk_lang_1_FAILED

50x grinder - 35/47 failed

Copy link

Issue Number: 20704
Status: Open
Recommended Components: comp:vm, comp:jclextensions, comp:jit

@pshipton
Copy link
Member

Dup of #20351

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants