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

frame::oops_do_internal conditionally invokes undefined behavior

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: tbd
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
      gc
    • CPU:
      generic
    • OS:
      generic

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated: