An Oracle blog about Transactional locks

A tool to decode hs_err files

Dave Dice
Senior Research Scientist

The hs_err6.pl perl script parses an existing hs_err file and annotates it with additional information. In particular the script will decode the the rather cryptic "Error ID" string as well as making an attempt to decorate the module-relative offsets (e.g., [jvm.dll+0x1234]) found in native stack listings with more useful symbolic names.

The script is provided as-is and is entirely unsupported. It works only on J2SE 6 reference platforms. To get started run with the --help option. Ideally, future versions of the JVM will integrate this feature and there'll be no need for the script.

Join the discussion

Comments ( 9 )
  • stotti.blog() Wednesday, September 13, 2006
    [Trackback] now david dice of sun came up with this script to simplify hs_err files, generated by java in case of crashes etc. it is written in perl and sounds quite promising:
    The hs_err6.pl perl script parses an existing hs_err file and annotates it with additio...
  • dave Wednesday, September 13, 2006
    I'm not actually the author of the script, I simply posted it. It's been in use internally for quite some time.
  • stotti Friday, November 17, 2006
    hi dave,
    thanks for pointing this out. i have now posted a followup on my blog to correct this.
    thank you for publishing the script!
  • Steve Bohne's Weblog Monday, February 26, 2007
    [Trackback] There's a simple web interface at http://openjdk.neojava.org/cgi-bin/hs_err that allows decoding of hs_err or hs_err_pid HotSpot crash logs.
    It produces the same output as the command-line version . Decoding the crash log is invariably the firs...
  • ahmed Tuesday, May 8, 2007
    i cant play chess on yahoo
  • Scott Marlow Thursday, September 3, 2009

    Where can we download the symbolic map files from?

  • Kedar Friday, March 5, 2010

    do you have anything for windows

  • Dave Dice Friday, March 5, 2010


    The script is now rather old, but at least in the past it properly supported windows. All you need is perl.

    Regards, -Dave

  • David Holmes Friday, July 30, 2010

    FYI that neojava link is defunct

Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.