jvm-crash

JVM crash while memcpy during class load

本秂侑毒 提交于 2019-11-30 08:31:33
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 loaded. But can any one tell me what could cause this or how i could determine more about the cause? If the JVM was out of memory wouldn't it throw an Error. Any insight is greatly appreciated. I've included an excerpt from my hs_err file. # # An unexpected error has been detected by Java Runtime Environment: # # SIGBUS (0x7) at pc=0x005aba2c, pid=20841,

Java fatal error SIGSEGV with no added native code

最后都变了- 提交于 2019-11-30 06:43:16
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), everything runs fine. Otherwise, I get the following messages: Java 1.6: Invalid memory access of location 0x8 rip=0x1024e9660 Java 1.7: # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x000000010f7a8262, pid=20344, tid=18179 # # JRE version: Java(TM) SE Runtime Environment (7.0_60-b19) (build 1.7.0_60-b19) #

Java Swing JWindow application crash

爷,独闯天下 提交于 2019-11-29 12:27:06
问题 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 javax.swing.JPanel; import javax.swing.JWindow; import javax.swing.SwingUtilities; import javax.swing.Timer; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; public class Main { public static void main(String[] args) { SwingUtilities

Can Sun JDK generate core/heap dump files when JVM crashes?

。_饼干妹妹 提交于 2019-11-29 10:39:22
Is there anyway to generate core/heap dump file when JVM crashes? Since these files are usually very helpful to find out bugs in code. Any help is appreciated. cheng Tomasz Nurkiewicz With the following JVM options: -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath="/tmp" JVM will dump the content of heap to a file in specified directory. Note that this only happens when OutOfMemoryError is thrown since dump isn't really needed if JVM crashed due to a different reason. Edit: "Boolean options are turned on with -XX:+ and turned off with -XX:-." docs You can use -XX:HeapDump JVM options . 来源:

Java fatal error SIGSEGV with no added native code

人走茶凉 提交于 2019-11-29 06:26:12
问题 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), everything runs fine. Otherwise, I get the following messages: Java 1.6: Invalid memory access of location 0x8 rip=0x1024e9660 Java 1.7: # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x000000010f7a8262, pid

How to avoid MATLAB crash when opening too many figures?

痴心易碎 提交于 2019-11-29 03:30:34
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 machine using for i=1:inf figure; end I get to around ~90 figures before it crashes with the standard setting ( Preferences / Java Heap Memory ) of 128 MB Java heap, while doubling the Heap to 256 MB gives me around 200 figures. Do you see any way to avoid the Java error message? If there is not enough memory for another figure, I'd like my script to be

how to generate thread dump java on out of memory error

。_饼干妹妹 提交于 2019-11-28 18:56:57
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 ava_pid14941.hprof in working directory, but didn't find any file which contains thread dump. I need to know what all the threads were doing when I got this OutOfMemory error. Is there any configuration option which will generate thread dump in addition to heap dump on out of memory exception? How to generate thread dump java on out of memory error? Your question

Can Sun JDK generate core/heap dump files when JVM crashes?

做~自己de王妃 提交于 2019-11-28 03:56:48
问题 Is there anyway to generate core/heap dump file when JVM crashes? Since these files are usually very helpful to find out bugs in code. Any help is appreciated. cheng 回答1: With the following JVM options: -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath="/tmp" JVM will dump the content of heap to a file in specified directory. Note that this only happens when OutOfMemoryError is thrown since dump isn't really needed if JVM crashed due to a different reason. Edit: "Boolean options are turned on

How do I investigate the cause of a JVM crash?

浪尽此生 提交于 2019-11-27 20:28:32
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, tid=140042095163136 # guarantee(PageArmed == 0) failed: invariant # # JRE version: 6.0_23-b05 # Java VM: Java HotSpot(TM) 64-Bit Server VM (19.0-b09 mixed mode linux-amd64 compressed oops) # An error report file with more information is saved as: # /var/chat/jSocketer/build/hs_err_pid2075.log # # If you would like to submit a bug report, please visit: # http:/

How to avoid MATLAB crash when opening too many figures?

半城伤御伤魂 提交于 2019-11-27 17:34:54
问题 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 machine using for i=1:inf figure; end I get to around ~90 figures before it crashes with the standard setting (Preferences / Java Heap Memory) of 128 MB Java heap, while doubling the Heap to 256 MB gives me around 200 figures. Do you see any way to