The function frame::oops_do_internal (in runtime/frame.cpp) tests the non-product option CrashGCForDumpingJavaThread; when true, an attempt is made to cause a segfault by writing to a NULL pointer. Since such a write invokes undefined behavior, anything may happen there. Better would be to use os::signal_raise, rather than writing to a NULL pointer.
- duplicates
-
JDK-8346193 CrashGCForDumpingJavaThread do not trigger expected crash build with clang17
-
- Resolved
-
- relates to
-
JDK-8202319 Fix compilation warnings in Solaris debug builds for DevStudio 12.6
-
- Resolved
-