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

Re-enable openjdk test - jdk_bean #20531

Open
llxia opened this issue Nov 7, 2024 · 27 comments
Open

Re-enable openjdk test - jdk_bean #20531

llxia opened this issue Nov 7, 2024 · 27 comments

Comments

@llxia
Copy link
Contributor

llxia commented Nov 7, 2024

jdk_beans got excluded as part of the general exclude a while back via #10757.

https://github.com/adoptium/aqa-tests/blob/a498becc695f7bdeaa7c4b3752c827e65aa7e123/openjdk/playlist.xml#L755

My limited testing can pass on xlinux JDK17, 21 and 23. We still need to look into xlinux JDK8 and JDK11 failures. But I think we should look into re-enabling this test.

This would help us to discover issues like https://bugs.openjdk.org/browse/JDK-8336862 early.
Presumably, we will hit the same issue on Windows: adoptium/aqa-tests#5690 (comment)

@llxia llxia added the comp:test label Nov 7, 2024
Copy link

github-actions bot commented Nov 7, 2024

Issue Number: 20531
Status: Open
Recommended Components: comp:test, comp:build, comp:vm
Recommended Assignees: pshipton, llxia, longyuzhang

@llxia
Copy link
Contributor Author

llxia commented Nov 7, 2024

@annaibm could you run the test on all platforms? Thanks

@llxia
Copy link
Contributor Author

llxia commented Nov 8, 2024

00:01:43.717  TESTING:
00:01:44.127  Directory "/home/jenkins/workspace/Grinder/aqa-tests/TKG/../TKG/output_17309940512732/jdk_beans_0/work" not found: creating
00:01:44.127  Directory "/home/jenkins/workspace/Grinder/aqa-tests/TKG/../TKG/output_17309940512732/jdk_beans_0/report" not found: creating
00:01:44.539  Error: Unexpected exception occurred! java.lang.UnsatisfiedLinkError: jdk/crypto/jniprovider/NativeCrypto.isOpenSSLFIPS()Z
00:01:44.539  java.lang.UnsatisfiedLinkError: jdk/crypto/jniprovider/NativeCrypto.isOpenSSLFIPS()Z
00:01:44.539  	at jdk.crypto.jniprovider.NativeCrypto.<clinit>(NativeCrypto.java:89)
00:01:44.539  	at sun.security.provider.SunEntries.<clinit>(SunEntries.java:104)
00:01:44.539  	at sun.security.provider.Sun.<init>(Sun.java:56)
00:01:44.539  	at java.lang.J9VMInternals.newInstanceImpl(Native Method)
00:01:44.539  	at java.lang.Class.newInstance(Class.java:2130)
00:01:44.540  	at sun.security.jca.ProviderConfig$2.run(ProviderConfig.java:237)
00:01:44.540  	at sun.security.jca.ProviderConfig$2.run(ProviderConfig.java:222)
00:01:44.540  	at java.security.AccessController.doPrivileged(AccessController.java:690)
00:01:44.540  	at sun.security.jca.ProviderConfig.doLoadProvider(ProviderConfig.java:222)
00:01:44.540  	at sun.security.jca.ProviderConfig.getProvider(ProviderConfig.java:203)
00:01:44.540  	at sun.security.jca.ProviderList.getProvider(ProviderList.java:256)
00:01:44.540  	at sun.security.jca.ProviderList$3.get(ProviderList.java:171)
00:01:44.540  	at sun.security.jca.ProviderList$3.get(ProviderList.java:166)
00:01:44.540  	at java.util.AbstractList$Itr.next(AbstractList.java:358)
00:01:44.540  	at java.security.SecureRandom.getPrngAlgorithm(SecureRandom.java:574)
00:01:44.540  	at java.security.SecureRandom.getDefaultPRNG(SecureRandom.java:208)
00:01:44.540  	at java.security.SecureRandom.<init>(SecureRandom.java:170)
00:01:44.540  	at java.io.File$TempDirectory.<clinit>(File.java:1940)
00:01:44.540  	at java.io.File.createTempFile(File.java:2049)
00:01:44.540  	at com.sun.javatest.WorkDirectory.saveInfo(WorkDirectory.java:1200)
00:01:44.540  	at com.sun.javatest.WorkDirectory.doWDinfo(WorkDirectory.java:692)
00:01:44.540  	at com.sun.javatest.WorkDirectory.<init>(WorkDirectory.java:130)
00:01:44.540  	at com.sun.javatest.WorkDirectory.createOrConvert(WorkDirectory.java:310)
00:01:44.540  	at com.sun.javatest.WorkDirectory.convert(WorkDirectory.java:259)
00:01:44.540  	at com.sun.javatest.regtest.config.TestManager.getWorkDirectory(TestManager.java:207)
00:01:44.540  	at com.sun.javatest.regtest.tool.Tool.createParameters(Tool.java:1737)
00:01:44.540  	at com.sun.javatest.regtest.tool.Tool.run(Tool.java:1328)
00:01:44.540  	at com.sun.javatest.regtest.tool.Tool.run(Tool.java:1075)
00:01:44.540  	at com.sun.javatest.regtest.tool.Tool.main(Tool.java:147)
00:01:44.540  	at com.sun.javatest.regtest.Main.main(Main.java:58)
00:01:44.540  -----------------------------------
00:01:44.540  jdk_beans_0_FAILED
00:01:44.540  -----------------------------------
  1. java/beans/XMLDecoder/8028054/TestConstructorFinder.java.TestConstructorFinder
Execution failed: `main' threw exception: java.lang.InternalError: Compile stub invoked! Apart from deliberate reflective access, this should not happen. Please report this to the project so it can be addressed 
java.lang.InternalError: Compile stub invoked! Apart from deliberate reflective access, this should not happen. Please report this to the project so it can be addressed
	at java.base/java.lang.invoke.OpenJDKCompileStub.OpenJDKCompileStubThrowError(OpenJDKCompileStub.java:38)
	at java.base/java.lang.invoke.MethodHandle.intrinsicName(MethodHandle.java:930)
	at java.base/java.lang.invoke.MethodHandleImpl.makeIntrinsic(MethodHandleImpl.java:1450)
	at java.base/java.lang.invoke.MethodHandleImpl$ArrayAccessor.<clinit>(MethodHandleImpl.java:164)
	at java.base/java.lang.Class.forNameImpl(Native Method)
	at java.base/java.lang.Class.forName(Class.java:347)
	at Task.getClasses(Task.java:134)
	at TestConstructorFinder.main(TestConstructorFinder.java:43)
	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:572)
	at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
	at java.base/java.lang.Thread.run(Thread.java:835)

JavaTest Message: Test threw exception: java.lang.InternalError: Compile stub invoked! Apart from deliberate reflective access, this should not happen. Please report this to the project so it can be addressed
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.InternalError: Compile stub invoked! Apart from deliberate reflective access, this should not happen. Please report this to the project so it can be addressed
  1. java/beans/XMLDecoder/8028054/TestMethodFinder.java.TestMethodFinder
Execution failed: `main' threw exception: java.lang.InternalError: Compile stub invoked! Apart from deliberate reflective access, this should not happen. Please report this to the project so it can be addressed 

@pshipton
Copy link
Member

pshipton commented Nov 8, 2024

The failure on jdk8 is already resolved via ibmruntimes/openj9-openjdk-jdk8#780

@babsingh pls take a look at the jdk11 failures.

@llxia
Copy link
Contributor Author

llxia commented Nov 8, 2024

Thanks @pshipton

With the latest JDK8, the NativeCrypto.isOpenSSLFIPS error is gone. However, there are 4 subtest failures, 2 of which are the same as those in JDK11. (link).

00:01:16.905  openjdk version "1.8.0_442-internal"
00:01:16.905  OpenJDK Runtime Environment (build 1.8.0_442-internal-_2024_11_08_03_05-b00)
00:01:16.905  Eclipse OpenJ9 VM (build master-26133ff75ca, JRE 1.8.0 Linux amd64-64-Bit Compressed References 20241108_912 (JIT enabled, AOT enabled)
00:01:16.905  OpenJ9   - 26133ff75ca
00:01:16.905  OMR      - a34c903d0c8
00:01:16.905  JCL      - 70a9dda9400 based on jdk8u442-b01)
00:06:30.188  FAILED test targets:
00:06:30.188  	jdk_beans_0 - Test results: passed: 346; failed: 4 
00:06:30.188  		Failed test cases: 
00:06:30.188  			TEST: java/beans/Introspector/Test5102804.java
00:06:30.188          TEST: java/beans/PropertyEditor/Test6397609.java
00:06:30.188          TEST: java/beans/XMLDecoder/8028054/TestConstructorFinder.java
00:06:30.188          TEST: java/beans/XMLDecoder/8028054/TestMethodFinder.java

annaibm added a commit to annaibm/aqa-tests that referenced this issue Nov 8, 2024
- Enable jck_beans on xlinux except for java version 8 and 11

related: eclipse-openj9/openj9#20531

Signed-off-by: Anna Babu Palathingal <[email protected]>
babsingh added a commit to babsingh/openj9 that referenced this issue Nov 12, 2024
OpenJ9 JDK8 and JDK11 currently use OpenJ9 MethodHandles.

Enabling jdk_bean in JDK8 and JDK11 triggers certain OpenJDK
MethodHandles code paths. However, OpenJ9 MethodHandles are in use
for JDK8 and JDK11, so OpenJDK MethodHandles paths shouldn't be
activated. To address this, a MethodHandleImpl stub was added,
used only with OpenJ9 MethodHandles, and not when OpenJDK
MethodHandles are enabled.

Related: eclipse-openj9#20531

Signed-off-by: Babneet Singh <[email protected]>
annaibm added a commit to annaibm/aqa-tests that referenced this issue Nov 12, 2024
- Enable jck_beans on xlinux except for java version 8 and 11

related: eclipse-openj9/openj9#20531

Signed-off-by: Anna Babu Palathingal <[email protected]>
babsingh added a commit to babsingh/openj9 that referenced this issue Nov 12, 2024
OpenJ9 JDK8 and JDK11 currently use OpenJ9 MethodHandles.

Enabling jdk_bean in JDK8 and JDK11 triggers certain OpenJDK
MethodHandles code paths. However, OpenJ9 MethodHandles are in use
for JDK8 and JDK11, so OpenJDK MethodHandles paths shouldn't be
activated. To address this, a MethodHandleImpl stub was added,
used only with OpenJ9 MethodHandles, and not when OpenJDK
MethodHandles are enabled.

Related: eclipse-openj9#20531

Signed-off-by: Babneet Singh <[email protected]>
annaibm added a commit to annaibm/aqa-tests that referenced this issue Nov 12, 2024
- Enable jdk_beans on xlinux except for java version 8 and 11

related: eclipse-openj9/openj9#20531

Signed-off-by: Anna Babu Palathingal <[email protected]>
annaibm added a commit to annaibm/aqa-tests that referenced this issue Nov 12, 2024
- Enable jdk_beans on xlinux except for java version 8 and 11

related: eclipse-openj9/openj9#20531

Signed-off-by: Anna Babu Palathingal <[email protected]>
annaibm added a commit to annaibm/aqa-tests that referenced this issue Nov 12, 2024
- Enable jdk_beans on xlinux except for java version 8 and 11

related: eclipse-openj9/openj9#20531

Signed-off-by: Anna Babu Palathingal <[email protected]>
annaibm added a commit to annaibm/aqa-tests that referenced this issue Nov 12, 2024
- Enable jdk_beans on xlinux except for java version 8 and 11

related: eclipse-openj9/openj9#20531

Signed-off-by: Anna Babu Palathingal <[email protected]>
annaibm added a commit to annaibm/aqa-tests that referenced this issue Nov 12, 2024
- Enable jdk_beans on xlinux for all java versions

related: eclipse-openj9/openj9#20531

Signed-off-by: Anna Babu Palathingal <[email protected]>
LongyuZhang pushed a commit to adoptium/aqa-tests that referenced this issue Nov 12, 2024
- Enable jdk_beans on xlinux for all java versions

related: eclipse-openj9/openj9#20531

Signed-off-by: Anna Babu Palathingal <[email protected]>
@annaibm
Copy link
Contributor

annaibm commented Nov 14, 2024

TEST TARGETS SUMMARY
16:15:15  ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
16:15:15  FAILED test targets:
16:15:15  	jdk_beans_0 - Test results: passed: 280; failed: 2; error: 68 
16:15:15  		Failed test cases: 
16:15:15  			TEST: java/beans/Introspector/Test5102804.java
16:15:15          TEST: java/beans/EventHandler/Test6179222.java
16:15:15          TEST: java/beans/EventHandler/Test6788531.java
16:15:15          TEST: java/beans/PropertyEditor/Test6397609.java
16:15:15          TEST: java/beans/Introspector/Test7195106.java
16:15:15          TEST: java/beans/PropertyChangeSupport/Test4353056.java
16:15:15          TEST: java/beans/PropertyChangeSupport/Test4682386.java
16:15:15          TEST: java/beans/PropertyChangeSupport/TestSynchronization.java
16:15:15          TEST: java/beans/PropertyEditor/6380849/TestPropertyEditor.java
16:15:15          TEST: java/beans/PropertyEditor/TestColorClass.java
16:15:15          TEST: java/beans/PropertyEditor/TestColorClassJava.java
16:15:15          TEST: java/beans/PropertyEditor/TestColorClassNull.java
16:15:15          TEST: java/beans/PropertyEditor/TestColorClassValue.java
16:15:15          TEST: java/beans/PropertyEditor/TestFontClass.java
16:15:15          TEST: java/beans/PropertyEditor/TestFontClassJava.java
16:15:15          TEST: java/beans/PropertyEditor/TestFontClassNull.java
16:15:15          TEST: java/beans/PropertyEditor/TestFontClassValue.java
16:15:15          TEST: java/beans/Statement/Test4653179.java
16:15:15          TEST: java/beans/XMLDecoder/8028054/TestConstructorFinder.java
16:15:15          TEST: java/beans/XMLDecoder/8028054/TestMethodFinder.java
16:15:15          TEST: java/beans/XMLDecoder/spec/TestObject.java
16:15:15          TEST: java/beans/XMLEncoder/6777487/TestBox.java
16:15:15          TEST: java/beans/XMLEncoder/java_awt_AWTKeyStroke.java
16:15:15          TEST: java/beans/XMLEncoder/java_awt_BorderLayout.java
16:15:15          TEST: java/beans/XMLEncoder/java_awt_CardLayout.java
16:15:15          TEST: java/beans/XMLEncoder/java_awt_Color.java
16:15:15          TEST: java/beans/XMLEncoder/java_awt_Component.java
16:15:15          TEST: java/beans/XMLEncoder/java_awt_Cursor.java
16:15:15          TEST: java/beans/XMLEncoder/java_awt_Dimension.java
16:15:15          TEST: java/beans/XMLEncoder/java_awt_Font.java
16:15:15          TEST: java/beans/XMLEncoder/java_awt_GradientPaint.java
16:15:15          TEST: java/beans/XMLEncoder/java_awt_GridBagConstraints.java
16:15:15          TEST: java/beans/XMLEncoder/java_awt_GridBagLayout.java
16:15:15          TEST: java/beans/XMLEncoder/java_awt_Insets.java
16:15:15          TEST: java/beans/XMLEncoder/java_awt_LinearGradientPaint.java
16:15:15          TEST: java/beans/XMLEncoder/java_awt_RadialGradientPaint.java
16:15:15          TEST: java/beans/XMLEncoder/java_awt_Rectangle.java
16:15:15          TEST: java/beans/XMLEncoder/java_awt_ScrollPane.java
16:15:15          TEST: java/beans/XMLEncoder/javax_swing_border_BevelBorder.java
16:15:15          TEST: java/beans/XMLEncoder/javax_swing_border_EmptyBorder.java
16:15:15          TEST: java/beans/XMLEncoder/javax_swing_border_EtchedBorder.java
16:15:15          TEST: java/beans/XMLEncoder/javax_swing_border_LineBorder.java
16:15:15          TEST: java/beans/XMLEncoder/javax_swing_border_MatteBorder.java
16:15:15          TEST: java/beans/XMLEncoder/javax_swing_border_SoftBevelBorder.java
16:15:15          TEST: java/beans/XMLEncoder/javax_swing_border_StrokeBorder.java
16:15:15          TEST: java/beans/XMLEncoder/javax_swing_border_TitledBorder.java
16:15:15          TEST: java/beans/XMLEncoder/javax_swing_Box_Filler.java
16:15:15          TEST: java/beans/XMLEncoder/javax_swing_Box.java
16:15:15          TEST: java/beans/XMLEncoder/javax_swing_BoxLayout.java
16:15:15          TEST: java/beans/XMLEncoder/javax_swing_DefaultCellEditor.java
16:15:15          TEST: java/beans/XMLEncoder/javax_swing_JButton.java
16:15:15          TEST: java/beans/XMLEncoder/javax_swing_JLayeredPane.java
16:15:15          TEST: java/beans/XMLEncoder/javax_swing_JSplitPane.java
16:15:15          TEST: java/beans/XMLEncoder/javax_swing_JTree.java
16:15:15          TEST: java/beans/XMLEncoder/javax_swing_KeyStroke.java
16:15:15          TEST: java/beans/XMLEncoder/javax_swing_OverlayLayout.java
16:15:15          TEST: java/beans/XMLEncoder/javax_swing_plaf_BorderUIResource_EmptyBorderUIResource.java
16:15:15          TEST: java/beans/XMLEncoder/javax_swing_plaf_BorderUIResource_LineBorderUIResource.java
16:15:15          TEST: java/beans/XMLEncoder/javax_swing_plaf_BorderUIResource_MatteBorderUIResource.java
16:15:15          TEST: java/beans/XMLEncoder/javax_swing_plaf_BorderUIResource_TitledBorderUIResource.java
16:15:15          TEST: java/beans/XMLEncoder/javax_swing_plaf_ColorUIResource.java
16:15:15          TEST: java/beans/XMLEncoder/javax_swing_plaf_FontUIResource.java
16:15:15          TEST: java/beans/XMLEncoder/sun_swing_PrintColorUIResource.java
16:15:15          TEST: java/beans/XMLEncoder/Test4631471.java
16:15:15          TEST: java/beans/XMLEncoder/Test4652928.java
16:15:15          TEST: java/beans/XMLEncoder/Test4903007.java
16:15:15          TEST: java/beans/XMLEncoder/Test6437265.java
16:15:15          TEST: java/beans/XMLEncoder/Test6501431.java
16:15:15          TEST: java/beans/XMLEncoder/Test6570354.java
16:15:15          TEST: java/beans/XMLEncoder/Test4822050.java
16:15:15          
16:15:15  
16:15:15  TOTAL: 1   EXECUTED: 1   PASSED: 0   FAILED: 1   SKIPPED: 0
16:15:15  ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
16:15:15  
 JVMDUMP013I Processed dump event "systhrow", detail "java/lang/OutOfMemoryError".
11:39:26  java.lang.Error: Reference is not collected
11:39:26  	at Test5102804.main(Test5102804.java:48)
11:39:26  	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
11:39:26  	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
11:39:26  	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
11:39:26  	at java.lang.reflect.Method.invoke(Method.java:503)
11:39:26  	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
11:39:26  	at java.lang.Thread.run(Thread.java:822)
11:39:26  
11:39:26  JavaTest Message: Test threw exception: java.lang.Error: Reference is not collected
11:39:26  JavaTest Message: shutting down test
11:39:26  
11:39:26  STATUS:Failed.`main' threw exception: java.lang.Error: Reference is not collected

@pshipton
Copy link
Member

@dmitripivkine pls take a look at the jdk8 failure.

@pshipton
Copy link
Member

pshipton commented Nov 14, 2024

@babsingh pls take a look at the jdk11 xmac failure:
java/beans/XMLDecoder/8028054/TestMethodFinder.java.TestMethodFinder
java/beans/XMLDecoder/8028054/TestConstructorFinder.java.TestConstructorFinder

11:42:23  java.lang.InternalError: Compile stub invoked! Apart from deliberate reflective access, this should not happen. Please report this to the project so it can be addressed
11:42:23  	at java.base/java.lang.invoke.OpenJDKCompileStub.OpenJDKCompileStubThrowError(OpenJDKCompileStub.java:38)
11:42:23  	at java.base/java.lang.invoke.MethodHandle.intrinsicName(MethodHandle.java:930)
11:42:23  	at java.base/java.lang.invoke.MethodHandleImpl.makeIntrinsic(MethodHandleImpl.java:1450)
11:42:23  	at java.base/java.lang.invoke.MethodHandleImpl$ArrayAccessor.<clinit>(MethodHandleImpl.java:164)
11:42:23  	at java.base/java.lang.Class.forNameImpl(Native Method)
11:42:23  	at java.base/java.lang.Class.forName(Class.java:347)
11:42:23  	at Task.getClasses(Task.java:134)
11:42:23  	at TestMethodFinder.main(TestMethodFinder.java:43)

@pshipton
Copy link
Member

There are some JIT asserts on xmac jdk21, which matches #20267
java/beans/Introspector/Test8027905.java
java/beans/Introspector/Test8040656.java

11:43:01  Assertion failed at /Users/jenkins/workspace/Build_JDK21_x86-64_mac_Nightly/omr/compiler/codegen/OMRTreeEvaluator.cpp:590: false
11:43:01  VMState: 0x0005ff04
11:43:01  	badILOp BadILOp cannot be evaluated
11:43:01  
11:43:01  compiling java/lang/ClassLoader.defineClassInternal(Ljava/lang/String;[BIILjava/security/ProtectionDomain;Z)Ljava/lang/Class; at level: very-hot (profiling)
11:43:01  
11:43:01  Unhandled exception
11:43:01  Type=Unhandled trap vmState=0x0005ff04
11:43:01  J9Generic_Signal_Number=00000108 Signal_Number=00000005 Error_Value=00000000 Signal_Code=00000001
11:43:01  Handler1=00000000048F0480 Handler2=0000000004644570
11:43:01  RDI=0000000000004B03 RSI=0000000000000005 RAX=0000000000000000 RBX=0000000000000005
11:43:01  RCX=0000700007121998 RDX=0000000000000000 R8=FFFFFFFFFFFFFFE9 R9=00006000033DC020
11:43:01  R10=0000700007128000 R11=0000000000000246 R12=0000000000004B03 R13=0000000041A8E288
11:43:01  R14=0000700007128000 R15=0000000000000016
11:43:01  RIP=00007FF8159567A2 GS=0000 FS=0000 RSP=0000700007121998
11:43:01  RFlags=0000000000000246 CS=0007 RBP=00007000071219C0 ERR=0000000002000148
11:43:01  TRAPNO=0200014800000085 CPU=0000020001480000 FAULTVADDR=0000000000000000
11:43:01  XMM0=00000000000000ff (f: 255.000000, d: 1.259867e-321)
11:43:01  XMM1=0000000000000000 (f: 0.000000, d: 0.000000e+00)
11:43:01  XMM2=0000000000000000 (f: 0.000000, d: 0.000000e+00)
11:43:01  XMM3=0000000000000000 (f: 0.000000, d: 0.000000e+00)
11:43:01  XMM4=0000000000000000 (f: 0.000000, d: 0.000000e+00)
11:43:01  XMM5=0000000000000000 (f: 0.000000, d: 0.000000e+00)
11:43:01  XMM6=0000000000000000 (f: 0.000000, d: 0.000000e+00)
11:43:01  XMM7=0000000000000000 (f: 0.000000, d: 0.000000e+00)
11:43:01  XMM8=0f0f0f0f0f0f0f0f (f: 252645136.000000, d: 3.815737e-236)
11:43:01  XMM9=0f0f0f0f0f0f0f0f (f: 252645136.000000, d: 3.815737e-236)
11:43:01  XMM10=0302020102010100 (f: 33620224.000000, d: 3.524484e-294)
11:43:01  XMM11=0000000000000000 (f: 0.000000, d: 0.000000e+00)
11:43:01  XMM12=0000000000000000 (f: 0.000000, d: 0.000000e+00)
11:43:01  XMM13=0000000000000000 (f: 0.000000, d: 0.000000e+00)
11:43:01  XMM14=0000000000000000 (f: 0.000000, d: 0.000000e+00)
11:43:01  XMM15=0000000000000000 (f: 0.000000, d: 0.000000e+00)
11:43:01  Module=/usr/lib/system/libsystem_kernel.dylib
11:43:01  Module_base_address=00007FF81594E000 Symbol=__pthread_kill
11:43:01  Symbol_address=00007FF815956798
11:43:01  
11:43:01  Method_being_compiled=java/lang/ClassLoader.defineClassInternal(Ljava/lang/String;[BIILjava/security/ProtectionDomain;Z)Ljava/lang/Class;
11:43:01  Target=2_90_20241107_361 (Mac OS X 14.2.1)
11:43:01  CPU=amd64 (12 logical CPUs) (0x400000000 RAM)
11:43:01  ----------- Stack Backtrace -----------
11:43:01  __pthread_kill+0xb (0x00007FF8159567A3 [libsystem_kernel.dylib+0x87a3])
11:43:01  pthread_kill+0x106 (0x00007FF81598EF30 [libsystem_pthread.dylib+0x5f30])
11:43:01  raise+0x18 (0x00007FF81586FEA8 [libsystem_c.dylib+0x41ea8])
11:43:01  _ZN2TR4trapEv+0x41 (0x0000000006A2E8D1 [libj9jit29.dylib+0x3c38d1])
11:43:01  _ZN2TRL18va_fatal_assertionEPKciS1_S1_P13__va_list_tag+0xb (0x0000000006A2EABB [libj9jit29.dylib+0x3c3abb])
11:43:01  _ZN2TR15fatal_assertionEPKciS1_S1_z+0x79 (0x0000000006A2EB39 [libj9jit29.dylib+0x3c3b39])
11:43:01  _ZN3OMR13TreeEvaluator16badILOpEvaluatorEPN2TR4NodeEPNS1_13CodeGeneratorE+0x2a (0x00000000069B97DA [libj9jit29.dylib+0x34e7da])
11:43:01  _ZN3OMR13CodeGenerator8evaluateEPN2TR4NodeE+0x44 (0x00000000069BB804 [libj9jit29.dylib+0x350804])
11:43:01  _ZN2J913CodeGenerator22doInstructionSelectionEv+0x276f (0x000000000669A5DF [libj9jit29.dylib+0x2f5df])
11:43:01  _ZN3OMR12CodeGenPhase32performInstructionSelectionPhaseEPN2TR13CodeGeneratorEPNS1_12CodeGenPhaseE+0x165 (0x00000000069C65A5 [libj9jit29.dylib+0x35b5a5])
11:43:01  _ZN3OMR12CodeGenPhase10performAllEv+0xbb (0x00000000069C7E5B [libj9jit29.dylib+0x35ce5b])
11:43:01  _ZN3OMR13CodeGenerator12generateCodeEv+0x131 (0x00000000069BFFA1 [libj9jit29.dylib+0x354fa1])
11:43:01  _ZN3OMR11Compilation7compileEv+0x748 (0x00000000069E5888 [libj9jit29.dylib+0x37a888])
11:43:01  _ZN2TR28CompilationInfoPerThreadBase7compileEP10J9VMThreadPNS_11CompilationEP17TR_ResolvedMethodR11TR_J9VMBaseP19TR_OptimizationPlanRKNS_16SegmentAllocatorE+0x7ea (0x00000000066CE69A [libj9jit29.dylib+0x6369a])
11:43:01  _ZN2TR28CompilationInfoPerThreadBase14wrappedCompileEP13J9PortLibraryPv+0x50f (0x00000000066CC03F [libj9jit29.dylib+0x6103f])
11:43:01  omrsig_protect+0x392 (0x0000000004643062 [libj9prt29.dylib+0x21062])
11:43:01  _ZN2TR28CompilationInfoPerThreadBase7compileEP10J9VMThreadP21TR_MethodToBeCompiledRN2J917J9SegmentProviderE+0x3a7 (0x00000000066C7097 [libj9jit29.dylib+0x5c097])
11:43:01  _ZN2TR24CompilationInfoPerThread12processEntryER21TR_MethodToBeCompiledRN2J917J9SegmentProviderE+0x209 (0x00000000066C6749 [libj9jit29.dylib+0x5b749])
11:43:01  _ZN2TR24CompilationInfoPerThread14processEntriesEv+0x1a8 (0x00000000066C5AB8 [libj9jit29.dylib+0x5aab8])
11:43:01  _ZN2TR24CompilationInfoPerThread3runEv+0xde (0x00000000066C587E [libj9jit29.dylib+0x5a87e])
11:43:01  _Z30protectedCompilationThreadProcP13J9PortLibraryPN2TR24CompilationInfoPerThreadE+0x90 (0x00000000066C5640 [libj9jit29.dylib+0x5a640])
11:43:01  omrsig_protect+0x392 (0x0000000004643062 [libj9prt29.dylib+0x21062])
11:43:01  _Z21compilationThreadProcPv+0x245 (0x00000000066C3A75 [libj9jit29.dylib+0x58a75])
11:43:01  thread_wrapper+0x13a (0x00000000045A66BA [libj9thr29.dylib+0xa6ba])
11:43:01  _pthread_start+0x63 (0x00007FF81598F202 [libsystem_pthread.dylib+0x6202])
11:43:01  ---------------------------------------

@babsingh
Copy link
Contributor

re #20531 (comment): JDK11 xmac failures have already been fixed via #20570, which was merged 2 days ago. The grinder uses a JDK with changes only till 7 Nov 24 and doesn't include the fix. Using a newer JDK, which includes the fix, should resolve the issue.

11:36:45  openjdk version "11.0.25-internal" 2024-10-15
11:36:45  OpenJDK Runtime Environment (build 11.0.25-internal+0-adhoc.jenkins.BuildJDK11x86-64macNightly)
11:36:45  Eclipse OpenJ9 VM (build master-26133ff75ca, JRE 11 Mac OS X amd64-64-Bit Compressed References 20241107_945 (JIT enabled, AOT enabled)
11:36:45  OpenJ9   - 26133ff75ca <--- Only contains changes till 7 Nov 24
11:36:45  OMR      - a34c903d0c8
11:36:45  JCL      - abd834e5356 based on jdk-11.0.25+9)

@dmitripivkine
Copy link
Contributor

Regarding OOM case for Test5102804:
There is attempt to allocate 14m object to 16m heap.

1STGCHTYPE     GC History
3STHSTTYPE     16:37:56:294294148 GMT j9mm.101 -   J9AllocateIndexableObject() returning NULL! 14665856 bytes requested for object of class 000000001293E700 from memory space 'Generational' id=0000600002FD92E0
3STHSTTYPE     16:37:56:294273490 GMT j9mm.134 -   Allocation failure end: newspace=3735552/4194304 oldspace=12239088/12582912 loa=125952/125952

This allocation has failed because neither Tenure nor Nursery can take this object. OpenJ9 currently does not support expanding Tenure over Nursery (particularly for fully expanded heap -Xmx16m -Xms16m) to fulfill such allocation. If we need this test pass the only way is limit Nursery size by -Xmn512k.

@pshipton
Copy link
Member

@dmitripivkine I think the OOM is intentional. The test catches the OOM and checks if a Reference has been freed.

@dmitripivkine
Copy link
Contributor

Ok, thanks, I missed it. Do we know which Reference it is watching?

annaibm added a commit to annaibm/aqa-tests that referenced this issue Dec 4, 2024
- Exclude jdk_beans subtests as excluded in Adoptium

related: eclipse-openj9/openj9#20531

Signed-off-by: Anna Babu Palathingal <[email protected]>
annaibm added a commit to annaibm/aqa-tests that referenced this issue Dec 4, 2024
- Exclude jdk_beans subtests as excluded in Adoptium

related: eclipse-openj9/openj9#20531

Signed-off-by: Anna Babu Palathingal <[email protected]>
@llxia
Copy link
Contributor Author

llxia commented Dec 4, 2024

Testing jdk_beans on xmac on openj9 Jenkins: https://openj9-jenkins.osuosl.org/view/Test/job/Grinder/4013/

annaibm added a commit to annaibm/aqa-tests that referenced this issue Dec 4, 2024
- Exclude jdk_beans subtests for OpenJ9

related: eclipse-openj9/openj9#20531

Signed-off-by: Anna Babu Palathingal <[email protected]>
@llxia
Copy link
Contributor Author

llxia commented Dec 6, 2024

jdk_beans failed in Test_openjdk8_j9_extended.openjdk_x86-64_linux:

00:00:23.263  openjdk version "1.8.0_442-beta"
00:00:23.263  IBM Semeru Runtime Open Edition (build 1.8.0_442-beta-202412052333-b04)
00:00:23.263  Eclipse OpenJ9 VM (build master-3f7abb5f83, JRE 1.8.0 Linux amd64-64-Bit Compressed References 20241205_1099 (JIT enabled, AOT enabled)
00:00:23.263  OpenJ9   - 3f7abb5f83
00:00:23.263  OMR      - b893b2be2
00:00:23.263  JCL      - 608c7b0e0 based on jdk8u442-b04)
Execution failed: `main' threw exception: java.lang.Error: Reference is not collected    
java.lang.Error: the editor is lost
	at Test6397609.main(Test6397609.java:42)
	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:503)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
	at java.lang.Thread.run(Thread.java:822)

@annaibm please exclude these two subtests on xlinux JDK8 for now.
FYI @JasonFengJ9

@annaibm
Copy link
Contributor

annaibm commented Dec 6, 2024

  • jdk_beans subtest failed: java/beans/XMLEncoder/java_awt_ScrollPane.java
    Failing Platforms: xmac/amac
    Java Versions Affected: 8, 17, 21, 23
    Failure Type: java.awt.HeadlessException
    Grinders for eg :xmac17,
    amac17
    Stack Trace:
Stacktrace
Execution failed: `main' threw exception: java.awt.HeadlessException: The application is not running in a desktop session, but this program performed an operation which requires it.    
Standard Output
    
Standard Error
java.awt.HeadlessException: 
The application is not running in a desktop session,
but this program performed an operation which requires it.
	at java.desktop/java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:164)
	at java.desktop/java.awt.ScrollPane.<init>(ScrollPane.java:210)
	at java_awt_ScrollPane.getObject(java_awt_ScrollPane.java:41)
	at java_awt_ScrollPane.getObject(java_awt_ScrollPane.java:35)
	at AbstractTest.test(AbstractTest.java:100)
	at java_awt_ScrollPane.main(java_awt_ScrollPane.java:37)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:575)
	at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
	at java.base/java.lang.Thread.run(Thread.java:853)

JavaTest Message: Test threw exception: java.awt.HeadlessException: 
The application is not running in a desktop session,
but this program performed an operation which requires it.
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.awt.HeadlessException: The application is not running in a desktop session, but this program performed an operation which requires it.

Note: java_awt_ScrollPane passed on JDK11, but failed on other JDK versions.

annaibm added a commit to annaibm/aqa-tests that referenced this issue Dec 6, 2024
- Exclude jdk_beans subtests for OpenJ9

related: eclipse-openj9/openj9#20531

Signed-off-by: Anna Babu Palathingal <[email protected]>
annaibm added a commit to annaibm/aqa-tests that referenced this issue Dec 6, 2024
- Exclude jdk_bean subtest `java_awt_ScrollPane`
- The test exclusion on macOS for versions 8,17,21,23

related: eclipse-openj9/openj9#20531

Signed-off-by: Anna Babu Palathingal <[email protected]>
@JasonFengJ9
Copy link
Member

java.lang.Error: the editor is lost
at Test6397609.main(Test6397609.java:42)

https://github.com/ibmruntimes/openj9-openjdk-jdk8/blob/608c7b0e04732769340d9f44a5e342956df5fc85/jdk/test/java/beans/PropertyEditor/Test6397609.java#L36-L42
The test expects PropertyEditorManager.registerEditor() keep Object.class after 10 System.gc(), but it is lost.

annaibm added a commit to annaibm/aqa-tests that referenced this issue Dec 6, 2024
- Exclude jdk_bean subtest `java_awt_ScrollPane`
- The test exclusion on macOS for versions 8,17,21,23

related: eclipse-openj9/openj9#20531

Signed-off-by: Anna Babu Palathingal <[email protected]>
annaibm added a commit to annaibm/aqa-tests that referenced this issue Dec 6, 2024
- Exclude jdk_bean subtest -`Test6397609`,`Test5102804` on xlinux JDK8.

related: eclipse-openj9/openj9#20531

Signed-off-by: Anna Babu Palathingal <[email protected]>
annaibm added a commit to annaibm/aqa-tests that referenced this issue Dec 6, 2024
- Exclude jdk_bean subtest `java_awt_ScrollPane`
- The test exclusion on macOS for versions 8,17,21,23

related: eclipse-openj9/openj9#20531

Signed-off-by: Anna Babu Palathingal <[email protected]>
annaibm added a commit to annaibm/aqa-tests that referenced this issue Dec 6, 2024
- Exclude jdk_bean subtest -`Test6397609`,`Test5102804` on xlinux JDK8.

related: eclipse-openj9/openj9#20531

Signed-off-by: Anna Babu Palathingal <[email protected]>
annaibm added a commit to annaibm/aqa-tests that referenced this issue Dec 6, 2024
- Exclude jdk_bean subtest -`Test6397609` and `
Test5102804` on xlinux JDK8

related: eclipse-openj9/openj9#20531

Signed-off-by: Anna Babu Palathingal <[email protected]>
@annaibm
Copy link
Contributor

annaibm commented Dec 6, 2024

The following jdk_beans subtests fail consistently on xmac platform for JDK versions 8, 11, 17, 21, and 23:

All the subtests fail with the same error:

Stacktrace
Execution failed: `main' threw exception: java.awt.AWTError: WindowServer is not available    
Standard Error
java.awt.AWTError: WindowServer is not available
   at java.desktop/sun.lwawt.macosx.LWCToolkit.<clinit>(LWCToolkit.java:167)
   at java.base/jdk.internal.misc.Unsafe.ensureClassInitialized0(Native Method)
   at java.base/jdk.internal.misc.Unsafe.ensureClassInitialized(Unsafe.java:1445)
   at java.base/java.lang.J9VMInternals.initialize(J9VMInternals.java:147)
   at java.base/java.lang.Class.forName(Class.java:356)
   at java.desktop/java.awt.Toolkit$2.run(Toolkit.java:588)
   at java.desktop/java.awt.Toolkit$2.run(Toolkit.java:583)
   at java.base/java.security.AccessController.doPrivileged(AccessController.java:691)
   at java.desktop/java.awt.Toolkit.getDefaultToolkit(Toolkit.java:582)
   at java.desktop/com.sun.beans.editors.FontEditor.<init>(FontEditor.java:38)
   at java.base/java.lang.J9VMInternals.newInstanceImpl(Native Method)
   at java.base/java.lang.Class.newInstance(Class.java:2362)
   at java.desktop/com.sun.beans.finder.InstanceFinder.instantiate(InstanceFinder.java:98)
   at java.desktop/com.sun.beans.finder.InstanceFinder.instantiate(InstanceFinder.java:110)
   at java.desktop/com.sun.beans.finder.PropertyEditorFinder.instantiate(PropertyEditorFinder.java:93)
   at java.desktop/com.sun.beans.finder.PropertyEditorFinder.instantiate(PropertyEditorFinder.java:48)
   at java.desktop/com.sun.beans.finder.InstanceFinder.find(InstanceFinder.java:81)
   at java.desktop/com.sun.beans.finder.PropertyEditorFinder.find(PropertyEditorFinder.java:83)
   at java.desktop/java.beans.PropertyEditorManager.findEditor(PropertyEditorManager.java:92)
   at TestEditor.<init>(TestEditor.java:33)
   at TestFontClass.main(TestFontClass.java:40)
   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:572)
   at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
   at java.base/java.lang.Thread.run(Thread.java:835)

JavaTest Message: Test threw exception: java.awt.AWTError: WindowServer is not available
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.awt.AWTError: WindowServer is not available

Note: The subtests passed on openj9 Grinder :4013

LongyuZhang pushed a commit to adoptium/aqa-tests that referenced this issue Dec 6, 2024
- Exclude jdk_bean subtest `java_awt_ScrollPane`
- The test exclusion on macOS for versions 8,17,21,23

related: eclipse-openj9/openj9#20531

Signed-off-by: Anna Babu Palathingal <[email protected]>
annaibm added a commit to annaibm/aqa-tests that referenced this issue Dec 9, 2024
- Exclude jdk_bean subtest -`Test6397609` and `
Test5102804` on xlinux JDK8

related: eclipse-openj9/openj9#20531

Signed-off-by: Anna Babu Palathingal <[email protected]>
annaibm added a commit to annaibm/aqa-tests that referenced this issue Dec 9, 2024
- Exclude jdk_bean subtest -`Test6397609` and `
Test5102804` on xlinux JDK8

related: eclipse-openj9/openj9#20531

Signed-off-by: Anna Babu Palathingal <[email protected]>
LongyuZhang pushed a commit to adoptium/aqa-tests that referenced this issue Dec 9, 2024
- Exclude jdk_bean subtest -`Test6397609` and `
Test5102804` on xlinux JDK8

related: eclipse-openj9/openj9#20531

Signed-off-by: Anna Babu Palathingal <[email protected]>
annaibm added a commit to annaibm/aqa-tests that referenced this issue Dec 9, 2024
- Exclude jdk_bean subtest -`Test6397609` and `
Test5102804` on xlinux JDK8

related: eclipse-openj9/openj9#20531

Signed-off-by: Anna Babu Palathingal <[email protected]>
LongyuZhang pushed a commit to adoptium/aqa-tests that referenced this issue Dec 9, 2024
- Exclude jdk_bean subtest -`Test6397609` and `
Test5102804` on xlinux JDK8

related: eclipse-openj9/openj9#20531

Signed-off-by: Anna Babu Palathingal <[email protected]>
annaibm added a commit to annaibm/aqa-tests that referenced this issue Dec 9, 2024
- Enable jdk_beans on alinux, plinux, slinux for all java versions

related: eclipse-openj9/openj9#20531

Signed-off-by: Anna Babu Palathingal <[email protected]>
annaibm added a commit to annaibm/aqa-tests that referenced this issue Dec 9, 2024
- Enable jdk_beans on alinux, plinux, slinux for all java versions

related: eclipse-openj9/openj9#20531

Signed-off-by: Anna Babu Palathingal <[email protected]>
annaibm added a commit to annaibm/aqa-tests that referenced this issue Dec 9, 2024
- Enable jdk_beans on alinux, plinux, slinux for all java versions

related: eclipse-openj9/openj9#20531

Signed-off-by: Anna Babu Palathingal <[email protected]>
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

6 participants