RFR: 8374448: SIGSEGV in ConstantPool::print_value_on with -XX:CompileCommand=print [v2]
Dmitry Chuyko
dchuyko at openjdk.org
Thu Feb 12 08:07:57 UTC 2026
On Wed, 11 Feb 2026 09:33:38 GMT, Kerem Kat <krk at openjdk.org> wrote:
>> `BSMAttributeEntries::is_empty()` used AND, so `!is_empty()` was true when only one of `_offsets`/`_bootstrap_methods` was non-null. Callers then dereferenced the null pointer.
>>
>> Changed to OR so `!is_empty()` guarantees both are non-null. Added asserts at the two assignment sites to check for consistency.
>>
>> Please note that I could not reproduce this in fastdebug or slowdebug builds on x86_64 Linux.
>
> Kerem Kat has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains three additional commits since the last revision:
>
> - Merge branch 'master' into fix-crash-cpprint-8374448
> - address comments
> - 8374448: SIGSEGV in ConstantPool::print_value_on with -XX:CompileCommand=print
A minor remark: the copyright is not updated.
Thanks, this fix repairs the failing jtreg tests on linux-aarch64 (BytecodeTracerTest, RedefineClasses, compiler/jvmci/compilerToVM etc.).
-------------
PR Comment: https://git.openjdk.org/jdk/pull/29611#issuecomment-3889245253
PR Comment: https://git.openjdk.org/jdk/pull/29611#issuecomment-3889259034
More information about the hotspot-dev
mailing list