RFR: 8360791: [ubsan] Adjust signal handling when using clang
Matthias Baesken
mbaesken at openjdk.org
Sat Jun 28 16:35:39 UTC 2025
On Sat, 28 Jun 2025 03:55:44 GMT, Kim Barrett <kbarrett at openjdk.org> wrote:
> Does the same problem arise when building with clang on linux? I tried it, but ran into some linking errors that I don't understand, and I've not done much with ubsan before.
>
> ```
> ld.lld: error: non-exported symbol '__ubsan_handle_type_mismatch_v1' in '/usr/bin/../lib/clang/19/lib/aarch64-redhat-linux-gnu/libclang_rt.ubsan_standalone.a(ubsan_handlers.cpp.o)' is referenced by DSO '/home/kab/gitsb/ubsan-vs-signals/fastdebug/hotspot/variant-server/libjvm/gtest/libjvm.so'
> ```
>
> and similarly for a bunch of other ubsan functions. I expect these are some configuration issue on my end, but I'm not going to try digging into it right now.
I see this on SUSE Linux too
https://bugs.openjdk.org/browse/JDK-8355597
8355597: Build failure on Linux with ubsan and toolchain clang
but we use mostly gcc on Linux so I did not look much into this.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/26015#discussion_r2173411914
More information about the build-dev
mailing list