RFR (S) 8217879: hs_err should print more instructions in hex dump

coleen.phillimore at oracle.com coleen.phillimore at oracle.com
Mon Jan 28 20:37:41 UTC 2019


Can you attach a version of the hs_err file produced?  I prefer a 
slimmer hs_err file at least in the beginning so I don't have to scroll 
pages to find the native stack trace.  Especially for triaging purposes.

Thanks,
Coleen


On 1/28/19 11:48 AM, Aleksey Shipilev wrote:
> RFE:
>    https://bugs.openjdk.java.net/browse/JDK-8217879
>
> Fix:
>    http://cr.openjdk.java.net/~shade/8217879/webrev.01/
>
> "Instructions" block is useful when following up on hs_errs that happened without the disassembler
> attached, which is usually the case coming from users. One can use the disassembler [1] to look
> around the code that was crashing, and get extended conjectures why the error happened, including
> rewinding a bit of history. However, current window is sometimes too small to infer enough context.
> I propose we extend it!
>
> The patch also commons the paths across OS/Arch-specific files to that current "delta" appears less
> of the magic number. Plus, it adds cr()-s for consistency across the arches and within the methods.
>
> Testing: eyeballing hs_errs from artificial crashes, Linux x86_64 build, jdk-submit
>
> Thanks,
> -Aleksey
>
> [1] I use https://onlinedisassembler.com, for example.
>



More information about the hotspot-dev mailing list