JDK-7109520 : Can't get hs_err log on native stack overflow on Linux
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: linux
  • CPU: x86
  • Submitted: 2011-11-08
  • Updated: 2025-09-02
  • Resolved: 2014-02-28
Related Reports
Duplicate :  
Relates :  
Description
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