Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8202508

frame::oops_do_internal conditionally invokes undefined behavior

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • tbd
    • None
    • hotspot
    • None
    • gc
    • generic
    • generic

      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.

            Unassigned Unassigned
            kbarrett Kim Barrett
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: