infrastructure icon indicating copy to clipboard operation
infrastructure copied to clipboard

jdk11 jdk_compile failures on macos12

Open sophia-guo opened this issue 3 years ago • 14 comments

56 compiler/aot/* tests failed on test-macincloud-macos1201-x64-1 only with message:

15:02:26  Preparing compiled binary (0 ms)
15:02:26  Creating binary: libHelloWorld.so.o (9 ms)
15:02:26  Creating shared library: libHelloWorld.so (19 ms)
15:02:26  Exception in thread "main" java.lang.InternalError: ld: dynamic main executables must link with libSystem.dylib for architecture x86_64
15:02:26  	at [email protected]/jdk.tools.jaotc.Linker.link(Linker.java:142)
15:02:26  	at [email protected]/jdk.tools.jaotc.Main.run(Main.java:262)
15:02:26  	at [email protected]/jdk.tools.jaotc.Main.run(Main.java:133)
15:02:26  	at [email protected]/jdk.tools.jaotc.Main.main(Main.java:89)
15:02:26  
15:02:26  Command line: [/Users/jenkins/workspace/grinder_sandbox_new/openjdkbinary/j2sdk-image/Contents/Home/bin/../bin/java -cp /Users/jenkins/workspace/grinder_sandbox_new/aqa-tests/TKG/output_1650394746878/hotspot_custom_1/work/classes/0/compiler/aot/verification/ClassAndLibraryNotMatchTest.d:/Users/jenkins/workspace/grinder_sandbox_new/aqa-tests/openjdk/openjdk-jdk/test/hotspot/jtreg/compiler/aot/verification:/Users/jenkins/workspace/grinder_sandbox_new/aqa-tests/TKG/output_1650394746878/hotspot_custom_1/work/classes/0/test/lib:/Users/jenkins/workspace/grinder_sandbox_new/aqa-tests/TKG/output_1650394746878/hotspot_custom_1/work/classes/0:/Users/jenkins/workspace/grinder_sandbox_new/jvmtest/openjdk/jtreg/lib/javatest.jar:/Users/jenkins/workspace/grinder_sandbox_new/jvmtest/openjdk/jtreg/lib/jtreg.jar:/Users/jenkins/workspace/grinder_sandbox_new/jvmtest/openjdk/jtreg/lib/junit.jar:/Users/jenkins/workspace/grinder_sandbox_new/jvmtest/openjdk/jtreg/lib/testng.jar:/Users/jenkins/workspace/grinder_sandbox_new/jvmtest/openjdk/jtreg/lib/jcommander.jar -ea -esa -Xmx512m -XX:-UseCompressedOops -cp . -XX:+UnlockExperimentalVMOptions -XX:+UseAOT -XX:AOTLibrary=./libHelloWorld.so HelloWorld ]
15:02:26  STDERR:
15:02:26   stdout: [error opening file: dlopen(./libHelloWorld.so, 0x0001): tried: '/Users/jenkins/workspace/grinder_sandbox_new/openjdkbinary/j2sdk-image/Contents/Home/lib/server/././libHelloWorld.so' (no such file), '/Users/jenkins/workspace/grinder_sandbox_new/openjdkbinary/j2sdk-image/Contents/Home/lib/server/.././libHelloWorld.so' (no such file), '/Users/jenkins/workspace/grinder_sandbox_new/openjdkbinary/j2sdk-image/Contents/Home/bin/../lib/jli/./libHelloWorld.so' (no such file), './libHelloWorld.so' (no such file), '/usr/local/lib/libHelloWorld.so' (no such file), '/usr/lib/libHelloWorld.so' (no such file), '/Users/jenkins/workspace/grinder_sandbox_new/aqa-tests/TKG/output_1650394746878/hotspot_custom_1/work/scratch/1/libHelloWorld.so' (no such file), '/usr/local/lib/libHelloWorld.so' (no such file), '/usr/lib/libHelloWorld.so' (no such file)
15:02:26  ];
15:02:26   stderr: []
15:02:26   exitValue = 1
15:02:26  
15:02:26  java.lang.RuntimeException: Expected to get exit value of [0]

https://ci.adoptopenjdk.net/job/Test_openjdk11_hs_extended.openjdk_x86-64_mac_testList_1/41/ https://trss.adoptium.net/deepHistory?testId=625744b172761a4c5c12015c

sophia-guo avatar Apr 19 '22 19:04 sophia-guo

Two jdk_net tests failed on macos12 with different error message. https://trss.adoptium.net/deepHistory?testId=62b789e3250c3c428c3ad570

sophia-guo avatar Jun 27 '22 20:06 sophia-guo

We would like to take those two machines offline before the issues is fixed (either update the test cases or update machine configuration?) to avoid re-triage again and again. Looks like https://ci.adoptopenjdk.net/computer/test-macincloud-macos1201-x64-1/ is offline due to some other updates.

The interesting thing is both machines are labeled as macos10.10 https://ci.adoptopenjdk.net/label/macos10.10/, which is incorrect. Might be updated from macos10.10 to macos10.12?

sophia-guo avatar Jun 27 '22 20:06 sophia-guo

jdk_net with jdk18 failed https://ci.adoptopenjdk.net/job/Test_openjdk18_hs_extended.openjdk_x86-64_mac_testList_1/41/

history shows only fail on macos12 https://trss.adoptium.net/deepHistory?testId=62c11de6250c3c428c63099a

sophia-guo avatar Jul 04 '22 19:07 sophia-guo

Latest failing builld https://ci.adoptopenjdk.net/job/Test_openjdk11_hs_extended.openjdk_x86-64_mac_testList_1/55/#showFailuresLink

sophia-guo avatar Jul 18 '22 13:07 sophia-guo

jdk_net with jdk18 failed https://ci.adoptopenjdk.net/job/Test_openjdk18_hs_extended.openjdk_x86-64_mac_testList_1/41/

history shows only fail on macos12 https://trss.adoptium.net/deepHistory?testId=62c11de6250c3c428c63099a

That looks like a separate failure from the one mentioned in the description, so perhaps it should have its own issue

sxa avatar Jul 18 '22 14:07 sxa

The interesting thing is both machines are labeled as macos10.10 https://ci.adoptopenjdk.net/label/macos10.10/, which is incorrect. Might be updated from macos10.10 to macos10.12?

Agreed - that's an error. Updated to macos12

sxa avatar Jul 18 '22 14:07 sxa

Does the failure show on the aarch64 builds which are on macos11.0.1? The above would suggest that it would affect those too.

sxa avatar Jul 19 '22 09:07 sxa

Looking at https://ci.adoptopenjdk.net/job/Test_openjdk11_hs_extended.openjdk_aarch64_mac_testList_1/17/testReport/ it looks like those tests are not run on aarch64 so the consistent option would seem to be be to exclude them on the x86-64 platform too.

sxa avatar Jul 19 '22 09:07 sxa

Does the failure show on the aarch64 builds which are on macos11.0.1? The above would suggest that it would affect those too.

Do we have macos11? I didn't find one https://ci.adoptopenjdk.net/label/ci.role.test&&hw.arch.x86&&%28sw.os.osx%7C%7Csw.os.mac%29/

Ignore this, i didn't realize @sxa mentioned aarch64 macos11

sophia-guo avatar Jul 19 '22 12:07 sophia-guo

@sxa those aot tests only run if VM supports AOT. Does jdk11 arch64 mac support AOT? If no tests will skip.

sophia-guo avatar Jul 19 '22 13:07 sophia-guo

@sxa those aot tests only run if VM supports AOT. Does jdk11 arch64 mac support AOT? If no tests will skip.

Interesting - apparently not:

19:03:40  checking if aot should be enabled... no

It says yes for x64.

sxa avatar Jul 19 '22 13:07 sxa

jdk_net with jdk18 failed https://ci.adoptopenjdk.net/job/Test_openjdk18_hs_extended.openjdk_x86-64_mac_testList_1/41/ history shows only fail on macos12 https://trss.adoptium.net/deepHistory?testId=62c11de6250c3c428c63099a

That looks like a separate failure from the one mentioned in the description, so perhaps it should have its own issue

Yeah these seem to be IP address/socket issues. One is giving Execution failed: main threw exception: java.lang.RuntimeException: invalidhost.invalid should throw UnknownHostException! so this will definitely need separate diagnosis outside this issue.

sxa avatar Jul 19 '22 13:07 sxa