frame::oops_do_internal conditionally invokes undefined behavior

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P4
    • tbd
    • Affects Version/s: None
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: