clang Memory sanitizer (msan) and OpenJDK
Baesken, Matthias
matthias.baesken at sap.com
Tue Apr 29 13:56:43 UTC 2025
>>Maybe you can try patching out -fvisibility=hidden from the compile command line to see if that makes any difference.
>Sounds like a good idea to start with, I will try this! Seems the visibility stuff plays a role here.
I removed the -fvisibility=hidden from make/autoconf/flags-cflags.m4 (3 places) but the issue is still there.
When looking at our launchers in the msan – enabled build (java, javac) I see the msan_param_tls as “b” (local symbol) .
But I think it is expected as “B” (global/exported) .
In my simple working standalone example, the msan_param_tls is “B” .
So there must be something in out build that prevents the “export” of those msan symbols (even when removing -fvisibility=hidden ) .
Probably I should look in more details at our launcher builds and all the settings ...
Best regards, Matthias
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/build-dev/attachments/20250429/7e19607f/attachment-0001.htm>
More information about the build-dev
mailing list