title: what should I do when Java core dumps?
body: <p>This is the first time I am in this situation with Java.</p>
  
  <p>Java just core dumps with the following error:</p>
  
  <pre><code>#
  # A fatal error has been detected by the Java Runtime Environment:
  #
  [thread 140213457409792 also had an error]#  Internal Error (safepoint.cpp:300), pid=4327
  , tid=140213211031296
  #  guarantee(PageArmed == 0) failed: invariant
  #
  # JRE version: 6.0_24-b24
  # Java VM: OpenJDK 64-Bit Server VM (20.0-b12 mixed mode linux-amd64 compressed oops)
  # Derivative: IcedTea6 1.11.4
  # Distribution: Ubuntu 12.04 LTS, package 6b24-1.11.4-1ubuntu0.12.04.1
  # An error report file with more information is saved as:
  # /tmp/hs_err_pid4327.log
  #
  # If you would like to submit a bug report, please include
  # instructions how to reproduce the bug and visit:
  #   https://bugs.launchpad.net/ubuntu/+source/openjdk-6/
  </code></pre>
  
  <p>when I tried running it on a mac os, it core dumps at the same place (the JREs must be different)... so it must be something related to the code. I have no idea how to debug this, this is not an exception, and the log file specified up there does not give me much information. Any ideas what I can do about it to find the bug?</p>