fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.lang.management.ManagementFactory;
  4.  
  5. /* Name of the class has to be "Main" only if the class is public. */
  6. class Ideone
  7. {
  8. public static void main(String[] args) throws Exception {
  9. new Thread() {
  10. @Override
  11. public void run() {
  12. while (true) ManagementFactory.getThreadMXBean().getThreadInfo(new long[] {}, 1);
  13. }
  14. }.start();
  15.  
  16. while (true) {
  17. new byte[10_000].clone();
  18. }
  19. }
  20. }
Runtime error #stdin #stdout 0.14s 322112KB
stdin
Standard input is empty
stdout
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0xb6e2e551, pid=22588, tid=2754820976
#
# JRE version: Java(TM) SE Runtime Environment (8.0_25-b17) (build 1.8.0_25-b17)
# Java VM: Java HotSpot(TM) Client VM (25.25-b02 mixed mode linux-x86 )
# Problematic frame:
# V  [libjvm.so+0x1fb551]  DefNewGeneration::handle_promotion_failure(oopDesc*)+0x1c1
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /tmp/hs_err_pid22588.log
#
# If you would like to submit a bug report, please visit:
#   http://b...content-available-to-author-only...n.com/bugreport/crash.jsp
#