Questions tagged [jvm-crash]

Crashes in the JVM, commonly caused by buggy native code in libraries.

This tag is about debugging s and other crashes in the Java Virtual Machine (). A JVM crash is identified by the message A fatal error has been detected by the Java Runtime Environment followed by the error.

Such crashes are commonly caused by buggy native code (using ) in libraries, or sometimes missing ies. Crashes due to bugs in the JVM itself are also possible, though less likely.

When a JVM crash occurs, most of the time it will create a log file named hs_err_pidXXXX.log where XXXX is a number. It is important that you include the contents of it when you post a question regarding such a crash.

Do not use this tag for internal JVM exceptions, for example:

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
261 questions
61
votes
12 answers

A fatal error has been detected by the Java Runtime Environment: SIGSEGV, libjvm

Hi and thanks for reading, I have the following error while running my program and can't figure out what the solution would be. I also looked at all the topics with a similar error here, but could not resolve my issue. Here the error: # A fatal…
evgeni
  • 1,675
  • 3
  • 22
  • 29
45
votes
1 answer

VerifyError: Uninitialized object exists on backward branch / JVM Spec 4.10.2.4

The JVM Spec 4.10.2.4 version 7, last paragraph, says A valid instruction sequence must not have an uninitialized object on the operand stack or in a local variable at the target of a backwards branch if the special type of the uninitialized object…
Lukas Rytz
  • 1,894
  • 14
  • 27
28
votes
5 answers

Unrecognized VM option 'UseParNewGC' , Error: Could not create the Java Virtual Machine

I am trying to start a server using jre 10.0.1 64 bit. There is an obvious change in the settings for the JVM in windows start batch files. With the setting of -XX:+UseParNewGC as the reference point of the error what would this need to be changed…
Javacodeman113
  • 407
  • 1
  • 4
  • 11
27
votes
5 answers

How do I investigate the cause of a JVM crash?

One day ago, after a few months of normal working, our java app starts to crash occasionally with the following error: # # A fatal error has been detected by the Java Runtime Environment: # # Internal Error (safepoint.cpp:247), pid=2075,…
Mikhail Selivanov
  • 634
  • 1
  • 6
  • 17
24
votes
1 answer

JVM 8 exit code -559038737 (0xDEADBEEF)

My application has started to non-deterministically fail after upgrading to Java 8. It doesn't throw an exception or print an error message. The only sign of its failure is the exit code -559038737. Has anyone encountered this?
Aleksandr Dubinsky
  • 22,436
  • 15
  • 82
  • 99
18
votes
3 answers

Tool for debugging hangs in java application

I've got a java application that half the time just hangs, and the other half the JVM crashes. Is there a tool I can use to see what's going on that makes it hang and/or crash? I'm using CentOS 5.6
James T
  • 3,292
  • 8
  • 40
  • 70
18
votes
4 answers

Java : how to check current Perm / PermGen Size?

Yesterday when I was running the WebLogic Application Server 11g installer, I encountered a OutOfMemory error, so I Googled for the answer: java -Xms256m -Xmx512m -XX:PermSize=128m -XX:MaxPermSize=256m -jar wls1032_generic.jar Everything worked…
Michael Mao
  • 9,878
  • 23
  • 75
  • 91
15
votes
3 answers

How to avoid MATLAB crash when opening too many figures?

Sometimes I start a MATLAB script and realize too late that it is going to output way too many figures. Eventually I get an Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space which can easily be reproduced on my…
Jonas Heidelberg
  • 4,984
  • 1
  • 27
  • 41
15
votes
2 answers

Java Swing JWindow application crash

If I use JDK1.8_40 or newer (Oracle or OpenJDK do the same), the following code together with a dialog resize will crash the application (tried Windows 7, x64, 64bit JDK) import javax.swing.JButton; import javax.swing.JDialog; import…
Vlad Topala
  • 896
  • 1
  • 8
  • 34
15
votes
7 answers

how to generate thread dump java on out of memory error

does java 6 generate thread dump in addition to heap dump (java_pid14941.hprof) this is what happened to one of my applications. java.lang.OutOfMemoryError: GC overhead limit exceeded Dumping heap to java_pid14941.hprof ... I did find…
Jigar
  • 8,762
  • 6
  • 25
  • 26
15
votes
1 answer

Java fatal error SIGSEGV with no added native code

I am getting an error message from the Java compiler that I don't understand. I've tested my code on OSX 10.6, 10.9, and Ubuntu 14.04, with both Java 6 and 7. When I run with the Eclipse debugger or from the interpreter (using -Xint option),…
jackkamm
  • 541
  • 1
  • 4
  • 11
14
votes
2 answers

caliper error: CICompilerCount of 1 is invalid; must be at least 2

i have a caliper benchmark (1.0-beta-2): import com.google.caliper.Benchmark; import com.google.caliper.runner.CaliperMain; public class MyBenchmark { @Benchmark public int a(int rep) { return 0; } public static void…
piotrek
  • 13,982
  • 13
  • 79
  • 165
14
votes
5 answers

JVM crash while memcpy during class load

My JVM crashed the and the hs_err file showed that it crashed while attempting to load a class. Specifically while trying to memcpy ([libc.so.6+0x6aa2c] memcpy+0x1c). I looked at the .class file and was able to determine what class was being…
richs
  • 4,699
  • 10
  • 43
  • 56
13
votes
4 answers

insufficient memory for the Java Runtime Environment to continue though RAM is showing 6 GB free space

While running java application I'm getting the following memory dump. After installing java 8(with java 7 application was working before) I started getting the below error. I'm using 16 GB RAM and in task manager when I checked (while application…
user3305063
  • 461
  • 1
  • 5
  • 15
12
votes
3 answers

Can I dump the current thread stack variables from a live JVM?

I need to peek into the stack of 2 deadlocked threads to analyze the situation. The JVM is live right now and the data is there, but I need some kind of tool to extract it from the process. I only care about 6 variables in the stack of type String.…
Vladimir Ralev
  • 1,371
  • 9
  • 18
1
2 3
17 18