RFR: 8331789: ubsan: deoptimization.cpp:403:29: runtime error: load of value 208, which is not a valid value for type 'bool'

Matthias Baesken mbaesken at openjdk.org
Wed May 8 07:07:56 UTC 2024


On Tue, 7 May 2024 13:55:16 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:

> When using ubsan (configure flag --enable-ubsan) on macOS x86_64 we run into this error :
> 
> /jdk/src/hotspot/share/runtime/deoptimization.cpp:403:29: runtime error: load of value 208, which is not a valid value for type 'bool'
>     #0 0x10247693e in restore_eliminated_locks(JavaThread*, GrowableArray<compiledVFrame*>*, bool, frame&, int, bool&) deoptimization.cpp:403
>     #1 0x102474b6f in Deoptimization::fetch_unroll_info_helper(JavaThread*, int) deoptimization.cpp:552
>     #2 0x10247fae9 in Deoptimization::uncommon_trap(JavaThread*, int, int) deoptimization.cpp:2624
>     #3 0x12846ab80 (<unknown module>)
> 
> Reason might be an uninitialized bool variable on one code path, which is unused in the calling function anyway.

Hi Axel and Stefan, thanks for the reviews !

-------------

PR Comment: https://git.openjdk.org/jdk/pull/19121#issuecomment-2099886159


More information about the hotspot-dev mailing list