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

Can't get hs_err log on native stack overflow on Linux

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • None
    • 7
    • hotspot
    • x86
    • linux

      A DESCRIPTION OF THE REQUEST :
      I encountered native stack overflow at JNI code on Linux (Fedora 15 and Ubuntu 11).
      I got coredump image, however, I could not get hs_err log.

      In the case of SIGSEGV, hs_err log is generated in signal handler. If native
      stack overflow occurred, Linux can't use stack area. So, SIGSEGV handler
      (JVM_handle_linux_signal) is never called.

      JUSTIFICATION :
        To output hs_err log when occuring native stack overflow.

      At least, VM stack guard page (RedZone: -XX:StackRedPages) does not
      work in now implementation (on Linux x86 / AMD64). So, I think that we should
      fix this problem to work this function.



      CUSTOMER SUBMITTED WORKAROUND :
      I've made a patch and sent to hotspot-runtime-dev ML.
      Please check it.

      http://mail.openjdk.java.net/pipermail/hotspot-runtime-dev/2011-August/002403.html

            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: