adoptium / adoptium/aqa-tests

compiler/aot in jvm_compiler_1 FAILED in Test_openjdk11_hs_extended.openjdk_x86-64_mac

Open
#4,338 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
155
Forks
346
Avg merge
2d 9h
Merged PRs (30d)
36

Description

53 compiler/aot testcases failing `dynamic main executables must link with libSystem.dylib` on [test-macincloud-macos1201-x64-1](https://ci.adoptopenjdk.net/computer/test-macincloud-macos1201-x64-1).

[Rerun failed testcases link](https://ci.adoptopenjdk.net/job/Grinder/6646) on same machine.

[Rerun](https://ci.adoptopenjdk.net/job/Grinder/6648) on test-macstadium-macos1014-x64-2

```
14:29:37 Creating shared library: libTestHeapBase.so (11 ms)
14:29:37 Exception in thread "main" java.lang.InternalError: ld: dynamic main executables must link with libSystem.dylib for architecture x86_64
14:29:37 at jdk.aot@11.0.18/jdk.tools.jaotc.Linker.link(Linker.java:142)
14:29:37 at jdk.aot@11.0.18/jdk.tools.jaotc.Main.run(Main.java:262)
14:29:37 at jdk.aot@11.0.18/jdk.tools.jaotc.Main.run(Main.java:133)
14:29:37 at jdk.aot@11.0.18/jdk.tools.jaotc.Main.main(Main.java:89)
14:29:37 ];
14:29:37 stderr: []
14:29:37 exitValue = 1
14:29:37
14:29:37 java.lang.RuntimeException: Expected to get exit value of [0]
14:29:37
14:29:37 at jdk.test.lib.process.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:431)
14:29:37 at compiler.aot.AotCompiler.main(AotCompiler.java:79)
14:29:37 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
14:29:37 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
14:29:37 at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
14:29:37 at java.base/java.lang.reflect.Method.invoke(Method.java:566)
14:29:37 at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
14:29:37 at java.base/java.lang.Thread.run(Thread.java:829)
```

**Test Info**
Test Name: jvm_compiler_1
Test Duration: 1 hr 14 min 8 sec
Machine: test-macincloud-macos1201-x64-1
TRSS link for the test output: https://trss.adoptium.net/output/test?id=63e81ad0ed0b30773bfa5fa1

**Build Info**
Build Name: Test_openjdk11_hs_extended.openjdk_x86-64_mac_testList_0
Jenkins Build start time: Feb 11 2023, 01:01 pm
Jenkins Build URL: https://ci.adoptopenjdk.net/job/Test_openjdk11_hs_extended.openjdk_x86-64_mac_testList_0/80/
TRSS link for the build: https://trss.adoptium.net/allTestsInfo?buildId=63e819a6ed0b30773bfa4fc0

**Java Version**
openjdk version "11.0.18" 2023-01-17
OpenJDK Runtime Environment Temurin-11.0.19+1 (build 11.0.18+1)
OpenJDK 64-Bit Server VM Temurin-11.0.19+1 (build 11.0.18+1, mixed mode)

**This test has been failed 3 times since Jan 28 2023, 01:04 pm**
**Java Version when the issue first seen**
openjdk version "11.0.18" 2023-01-17
OpenJDK Runtime Environment Temurin-11.0.18+10 (build 11.0.18+10)
OpenJDK 64-Bit Server VM Temurin-11.0.18+10 (build 11.0.18+10, mixed mode)
Jenkins Build URL: https://ci.adoptopenjdk.net/job/Test_openjdk11_hs_extended.openjdk_x86-64_mac_testList_0/78/

The test failed on machine test-macincloud-macos1201-x64-1 3 times

[Rerun in Grinder](https://ci.adoptopenjdk.net/job/Grinder/parambuild/?SDK_RESOURCE=upstream&TARGET=jvm_compiler_1&TEST_FLAG=&UPSTREAM_TEST_JOB_NAME=Test_openjdk11_hs_extended.openjdk_x86-64_mac&DOCKER_REQUIRED=false&ACTIVE_NODE_TIMEOUT=0&VENDOR_TEST_DIRS=&EXTRA_DOCKER_ARGS=&TKG_OWNER_BRANCH=adoptium%3Amaster&OPENJ9_SYSTEMTEST_OWNER_BRANCH=eclipse%3Amaster&PLATFORM=x86-64_mac&GENERATE_JOBS=false&KEEP_REPORTDIR=true&PERSONAL_BUILD=false&DOCKER_REGISTRY_DIR=&ADOPTOPENJDK_REPO=https%3A%2F%2Fgithub.com%2Fadoptium%2Faqa-tests.git&RERUN_ITERATIONS=0&DOCKER_REGISTRY_URL_CREDENTIAL_ID=&LABEL=&EXTRA_OPTIONS=&CUSTOMIZED_SDK_URL=&BUILD_IDENTIFIER=&ADOPTOPENJDK_BRANCH=master&LIGHT_WEIGHT_CHECKOUT=false&USE_JRE=false&ARTIFACTORY_SERVER=&KEEP_WORKSPACE=false&USER_CREDENTIALS_ID=&JDK_VERSION=11&DOCKER_REGISTRY_URL=&ITERATIONS=1&VENDOR_TEST_REPOS=&JDK_REPO=https%3A%2F%2Fgithub.com%2Fadoptium%2Fjdk11u&JCK_GIT_BRANCH=master&OPENJ9_BRANCH=master&OPENJ9_SHA=&JCK_GIT_REPO=&VENDOR_TEST_BRANCHES=&UPSTREAM_JOB_NAME=build-scripts%2Fjobs%2Fjdk11u%2Fjdk11u-mac-x64-temurin&OPENJ9_REPO=https%3A%2F%2Fgithub.com%2Feclipse-openj9%2Fopenj9.git&CLOUD_PROVIDER=&CUSTOM_TARGET=&VENDOR_TEST_SHAS=&JDK_BRANCH=dev&LABEL_ADDITION=&ARTIFACTORY_REPO=&ARTIFACTORY_ROOT_DIR=&UPSTREAM_TEST_JOB_NUMBER=112&DOCKERIMAGE_TAG=&JDK_IMPL=hotspot&TEST_TIME=&SSH_AGENT_CREDENTIAL=&AUTO_DETECT=true&SLACK_CHANNEL=&DYNAMIC_COMPILE=false&ADOPTOPENJDK_SYSTEMTEST_OWNER_BRANCH=adoptium%3Amaster&APPLICATION_OPTIONS=&CUSTOMIZED_SDK_URL_CREDENTIAL_ID=eclipse_temurin_bot_email_and_token&ARCHIVE_TEST_RESULTS=false&NUM_MACHINES=&OPENJDK_SHA=&TRSS_URL=&USE_TESTENV_PROPERTIES=false&BUILD_LIST=openjdk&UPSTREAM_JOB_NUMBER=182&STF_OWNER_BRANCH=adoptium%3Amaster&TIME_LIMIT=10&JVM_OPTIONS=&PARALLEL=None)

Contributor guide

Open the contributing guide

Research direction

Start with the compiler.aot.AotCompiler.main and jdk.tools.jaotc.Linker.link stack-trace entries, then reproduce jvm_compiler_1 using the linked Grinder reruns on the listed macOS machines. Compare the failing AOT linker behavior across those environments; done means the 53 testcases complete successfully without the libSystem.dylib error.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, macos
Domain
operating-systems, testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.