<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: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=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<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:Aptos;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Aptos",sans-serif;
mso-ligatures:standardcontextual;
mso-fareast-language:EN-US;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Aptos",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
mso-ligatures:none;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></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-DE" link="#467886" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span lang="en-DE">I checked the link call for javac .<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="en-DE"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="en-DE">/usr/bin/clang -fuse-ld=lld -fuse-ld=lld -Wl,--exclude-libs,ALL -Wl,-z,noexecstack -m64 -fsanitize=memory ....<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="en-DE"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="en-DE">Could it be that the -Wl,--exclude-libs,ALL “hides” the msan symbols like __</span><span lang="en-DE" style="font-size:12.0pt;mso-ligatures:none;mso-fareast-language:#2000">msan_param_tls from exporting ?</span><span lang="en-DE"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="en-DE">But I guess we set this for a reason so removing it might cause other trouble ?
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="en-DE"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="en-DE">Best regards, Matthias<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="en-DE"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="en-DE"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-family:"Calibri",sans-serif;mso-ligatures:none;mso-fareast-language:#2000">----------------------------------------------------</span></b></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="en-DE">>></span><span lang="en-DE" style="font-size:12.0pt;mso-ligatures:none;mso-fareast-language:#2000">Maybe you can try patching out -fvisibility=hidden from the
compile command line to see if that makes any difference. <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="en-DE">>Sounds like a good idea to start with, I will try this! Seems the visibility stuff plays a role here.<o:p></o:p></span></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="en-DE" style="font-size:12.0pt;mso-ligatures:none;mso-fareast-language:#2000"><o:p> </o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="en-DE" style="font-size:12.0pt;mso-ligatures:none;mso-fareast-language:#2000">I removed the -fvisibility=hidden from make/autoconf/flags-cflags.m4 (3 places)
but the issue is still there.<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="en-DE" style="font-size:12.0pt;mso-ligatures:none;mso-fareast-language:#2000">When looking at our launchers in the msan – enabled build (java, javac) I see the msan_param_tls
as “b” (local symbol) .<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="en-DE" style="font-size:12.0pt;mso-ligatures:none;mso-fareast-language:#2000">But I think it is expected as “B” (global/exported) .<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="en-DE" style="font-size:12.0pt;mso-ligatures:none;mso-fareast-language:#2000">In my simple working standalone example, the msan_param_tls is “B” .<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="en-DE" style="font-size:12.0pt;mso-ligatures:none;mso-fareast-language:#2000">So there must be something in out build that prevents the “export” of those msan symbols
(even when removing -fvisibility=hidden ) .<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="en-DE" style="font-size:12.0pt;mso-ligatures:none;mso-fareast-language:#2000">Probably I should look in more details at our launcher builds and all the settings ...<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="en-DE" style="font-size:12.0pt;mso-ligatures:none;mso-fareast-language:#2000"><o:p> </o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="en-DE" style="font-size:12.0pt;mso-ligatures:none;mso-fareast-language:#2000">Best regards, Matthias
<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="en-DE" style="font-size:12.0pt;mso-ligatures:none;mso-fareast-language:#2000"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="en-DE"><o:p> </o:p></span></p>
</blockquote>
</div>
</body>
</html>