<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Segoe UI";
        panose-1:2 11 5 2 4 2 4 2 2 3;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:"Segoe UI VSS \(Regular\)";
        panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-ligatures:standardcontextual;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
p.xmsonormal, li.xmsonormal, div.xmsonormal
        {mso-style-name:x_msonormal;
        margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-ligatures:standardcontextual;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:494298922;
        mso-list-template-ids:522514344;}
@list l0:level1
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:"Courier New";
        mso-bidi-font-family:"Times New Roman";}
@list l0:level2
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:1.0in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:"Courier New";
        mso-bidi-font-family:"Times New Roman";}
@list l0:level3
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:1.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:"Courier New";
        mso-bidi-font-family:"Times New Roman";}
@list l0:level4
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:2.0in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:"Courier New";
        mso-bidi-font-family:"Times New Roman";}
@list l0:level5
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:2.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:"Courier New";
        mso-bidi-font-family:"Times New Roman";}
@list l0:level6
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:3.0in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:"Courier New";
        mso-bidi-font-family:"Times New Roman";}
@list l0:level7
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:3.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:"Courier New";
        mso-bidi-font-family:"Times New Roman";}
@list l0:level8
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:4.0in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:"Courier New";
        mso-bidi-font-family:"Times New Roman";}
@list l0:level9
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:4.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:"Courier New";
        mso-bidi-font-family:"Times New Roman";}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p><span style="font-family:Consolas">Hello,</span><o:p></o:p></p>
<p><span style="font-family:Consolas"> </span><o:p></o:p></p>
<p><span style="font-family:Consolas">Our team publishes Microsoft's build of OpenJDK, and we have observed some test failures after upgrading our macOS agents from 10.15 to MacOS 11. We have also seen these failures on macOS 12.x. The tests that are encountering
 issues are in </span><span style="font-size:10.5pt;font-family:Consolas;color:#2F2F2F;background:white">compiler/aot category.</span><span style="font-family:Consolas"> We are only observing these issues in our JDK11u builds. The exact command line I used
 to reproduce the error locally is:</span><o:p></o:p></p>
<p><span style="font-family:Consolas"> </span><o:p></o:p></p>
<p><span style="font-size:10.5pt;font-family:Consolas;color:#2F2F2F;background:white">/Users/JEG/jdk-11.0.18+10/Contents/Home/bin/java -Xmx512m -jar /Users/JEG/jtreg/lib/jtreg.jar -agentvm -ignore:quiet -automatic -xml -vmoption:-Xmx512m -timeoutFactor:4 -concurrency:1
 -testjdk:/Users/JEG/jdk-11.0.18+10/Contents/Home -nativepath:/</span><o:p></o:p></p>
<p><span style="font-size:10.5pt;font-family:Consolas;color:#2F2F2F;background:white">Users/JEG/jdk-11.0.18+10-test-image/hotspot/jtreg/native -verbose:fail,error,summary  -exclude:test/hotspot/jtreg/ProblemList.txt test/hotspot/jtreg/compiler/aot/TestHeapBase.java</span><o:p></o:p></p>
<p><span style="font-family:Consolas"> </span><o:p></o:p></p>
<p><span style="font-family:Consolas">Which resulted in the following exception:</span><o:p></o:p></p>
<p><span style="font-size:10.5pt;font-family:Consolas;color:#2F2F2F;background:white">Exception in thread "main" java.lang.InternalError: ld: dynamic main executables must link with libSystem.dylib for architecture x86_64</span><o:p></o:p></p>
<p><span style="font-size:10.5pt;font-family:Consolas">        at <a href="mailto:jdk.aot@11.0.18/jdk.tools.jaotc.Linker.link(Linker.java:142)">
jdk.aot@11.0.18/jdk.tools.jaotc.Linker.link(Linker.java:142)</a></span><o:p></o:p></p>
<p><span style="font-size:10.5pt;font-family:Consolas">        at <a href="mailto:jdk.aot@11.0.18/jdk.tools.jaotc.Main.run(Main.java:262)">
jdk.aot@11.0.18/jdk.tools.jaotc.Main.run(Main.java:262)</a></span><o:p></o:p></p>
<p><span style="font-size:10.5pt;font-family:Consolas">        at <a href="mailto:jdk.aot@11.0.18/jdk.tools.jaotc.Main.run(Main.java:133)">
jdk.aot@11.0.18/jdk.tools.jaotc.Main.run(Main.java:133)</a></span><o:p></o:p></p>
<p><span style="font-size:10.5pt;font-family:Consolas;color:#2F2F2F;background:white">        at
</span><span style="font-size:10.5pt;font-family:Consolas"><a href="mailto:jdk.aot@11.0.18/jdk.tools.jaotc.Main.main(Main.java:89)"><span style="background:white">jdk.aot@11.0.18/jdk.tools.jaotc.Main.main(Main.java:89)</span></a></span><o:p></o:p></p>
<p><span style="font-family:Consolas"> </span><o:p></o:p></p>
<p><span style="font-family:Consolas">The version of macOS which I reproduced this error was:</span><o:p></o:p></p>
<p><span style="font-size:10.5pt;font-family:Consolas">openjdk-jdk11u % sw_vers</span><o:p></o:p></p>
<p><span style="font-size:10.5pt;font-family:Consolas">ProductName:    macOS</span><o:p></o:p></p>
<p><span style="font-size:10.5pt;font-family:Consolas">ProductVersion: 11.4</span><o:p></o:p></p>
<p><span style="font-size:10.5pt;font-family:Consolas">BuildVersion:   20F71</span><o:p></o:p></p>
<p><span style="font-family:Consolas"> </span><o:p></o:p></p>
<p><span style="font-family:Consolas">Initial triage on our end suggests that the linker for these tests is invoked in Linker.java, where we may require additional arguments passed into the "ld" command. Specifically, including the library path.
<span style="color:black;background:white">The change that may have introduced this behavior is documented here:
</span><a href="https://developer.apple.com/documentation/macos-release-notes/macos-big-sur-11_0_1-release-notes"><span style="background:white">https://developer.apple.com/documentation/macos-release-notes/macos-big-sur-11_0_1-release-notes</span></a><span style="color:black;background:white">. The
 important bit, I think, is:</span></span><o:p></o:p></p>
<ul style="margin-top:0in" type="circle">
<li class="xmsonormal" style="mso-list:l0 level1 lfo1;vertical-align:middle"><i><span style="font-size:10.5pt;font-family:"Segoe UI VSS (Regular)",serif;color:black;background:white">New in macOS Big Sur 11.0.1, the system ships with a built-in dynamic linker
 cache of all system-provided libraries. As part of this change, copies of dynamic libraries are no longer present on the filesystem. Code that attempts to check for dynamic library presence by looking for a file at a path or enumerating a directory will fail.
 Instead, check for library presence by attempting to dlopen() the path, which will correctly check for the library in the cache. (62986286)</span></i><o:p></o:p></li></ul>
<p><span style="font-family:Consolas"> </span><o:p></o:p></p>
<p><span style="font-family:Consolas">Has anyone encountered this issue before or would be willing to provide insight to what the root cause may be?</span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks!<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Segoe UI",sans-serif;color:#505050;mso-ligatures:none">Joe Braley
<br>
</span></b><span style="font-size:10.0pt;font-family:"Segoe UI",sans-serif;color:#505050;mso-ligatures:none">Software Engineer
<br>
<a href="mailto:joebraley@microsoft.com">joebraley@microsoft.com</a> <br>
</span><span style="mso-ligatures:none"><br>
<img border="0" width="115" height="28" style="width:1.1958in;height:.2916in" id="Picture_x0020_1" src="cid:image001.png@01D95D68.B4582DC0" alt="Microsoft Logo"><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>