ubsan minimal runtime option and OpenJDK

Baesken, Matthias matthias.baesken at sap.com
Mon Oct 28 15:08:11 UTC 2024


>I'd say it looks like you need to link with another library? Where should the __ubsan_handle_type_mismatch_minimal symbol come from?

I don’t really know. Was wondering if anyone had already worked with this more.


 >>On the other hand, I tried the minimal runtime option with some standalone program examples outside the OpenJDK, and
>>The error output was indeed  “minimal”   (without line numbers of the error); so it looked not very useful to me  but this might be my limited understanding.

>So what you're saying is that it is not really worth spending any time on sorting this out?

The output without line numbers was really not good / limited   (at least when comparing to the usual output from ubsan) , so at the moment I just continue using the usual  non-minimal  ubsan mode.

The binaries generated by it are pretty fast  and the  output is reliable at least on Linux (with nice line numbers and stack traces)  so we are quite happy with it.

Best regards, Matthias
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/build-dev/attachments/20241028/df15f539/attachment-0001.htm>


More information about the build-dev mailing list