RFR: 8234624: jstack mixed mode should refer DWARF
Yasumasa Suenaga
suenaga at oss.nttdata.com
Mon Nov 25 05:08:41 UTC 2019
Hi all,
Please review this change:
JBS: https://bugs.openjdk.java.net/browse/JDK-8234624
webrev: http://cr.openjdk.java.net/~ysuenaga/JDK-8234624/webrev.00/
According to 2.7 Stack Unwind Algorithm in System V Application Binary Interface AMD64
Architecture Processor Supplement [1], we need to use DWARF in .eh_frame or .debug_frame
for stack unwinding.
As JDK-8022183 said, omit-frame-pointer is enabled by default since GCC 4.6, so system
library (e.g. libc) might be compiled with this feature.
However `jhsdb jstack --mixed` does not do so, it uses base pointer register (RBP).
So it might be lack of stack frames.
I guess JDK-8219201 is caused by same issue.
Thanks,
Yasumasa
[1] https://software.intel.com/sites/default/files/article/402129/mpx-linux64-abi.pdf
More information about the serviceability-dev
mailing list