-
Enhancement
-
Resolution: Fixed
-
P3
-
None
-
7
-
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
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
- duplicates
-
JDK-7154055 Please add alternate signal stacks to Linux JVM for better error reporting
-
- Closed
-