简体   繁体   English

Java Crashed application-如何读取JVM生成的崩溃文件?

[英]Java Crashed application - how to read crash file generated by JVM?

I have java aplication and it started to crash sudently, without no exception. 我有Java应用程序,它开始突然崩溃,无一例外。 But sometimes JVM creates crash log file, which has name like: "hs_err_pid10930.log". 但是有时JVM创建崩溃日志文件,其名称类似于:“ hs_err_pid10930.log”。 Can anybody read it and tell me what is wrong? 任何人都可以阅读并告诉我出什么问题了吗? I am not able to find out what si wrong. 我无法找出问题所在。 The only reasonable info which I find here is that swap size is 0. I that a problem? 我在这里找到的唯一合理的信息是交换大小为0。我有问题吗? How could it occure? 它怎么会发生?

You can find the file here: http://chessfriends-release.s3.amazonaws.com/logs/hs_err_pid10930.log?AWSAccessKeyId=AKIAJP5BYGKOCMCDVZHA&Expires=1305128715&Signature=XEZMuJ0xNSM6YTcdwsI04ahhiYk%3D 您可以在这里找到该文件: http : //chessfriends-release.s3.amazonaws.com/logs/hs_err_pid10930.log?AWSAccessKeyId=AKIAJP5BYGKOCMCDVZHA&Expires=1305128715&Signature=XEZMuJ0xNSM6YTcdwsI04ahhiYk%3D

Thanks. 谢谢。

Libor Libor

Whenever you get a crash like this it's almost never the Java programmer's fault because the JVM is crashing which it shouldn't. 每当您遇到这种崩溃时,Java程序员几乎都不会犯错,因为JVM崩溃是不应该的。 By looking at your log file, it looks like it's crashing somewhere in the OpenJDK's JVM; 通过查看您的日志文件,它似乎崩溃在OpenJDK的JVM中。 I don't know what specifically is causing it. 我不知道是什么原因造成的。 I would suggest you try out Oracle's official JDK rather than OpenJDK. 我建议您尝试使用Oracle的官方JDK而不是OpenJDK。

I'm not an expert on reading these sorts of crash dumps, but this is the part I use to identify what is causing the problem: 我不是阅读此类故障转储的专家,但这是我用来识别导致问题的原因的部分:

# Problematic frame:
# V  [libjvm.so+0x64d62d]

This is at the top of the dump. 这是转储的顶部。 It's not always libjvm.so; 它并不总是libjvm.so。 I've seen some with like libGL.so. 我看过一些像libGL.so的东西。

If you would like to file a bug, the dump includes this statement: 如果您要提交错误,转储将包含以下语句:

# 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/

I don't know what it is you're doing that causes the crash, and maybe there is a workaround. 我不知道您正在执行的操作会导致崩溃,也许有解决方法。 But under no circumstances should the JVM crash, so this is a bug in the JVM you're using. 但是在任何情况下JVM都不会崩溃,因此这是您正在使用的JVM中的错误。

Edit 编辑
The log says you're running Ubuntu 9.10; 日志显示您正在运行Ubuntu 9.10。 there have been two Ubuntu releases since then so I doubt filing a bug would do any good unless you test this out on either Ubuntu 10.04 or 10.10. 从那以后已经有两个Ubuntu版本,所以我怀疑提交一个错误是否有好处,除非您在Ubuntu 10.04或10.10上进行了测试。 I don't know if you're able to upgrade to a newer version, but your problem may have already been fixed. 我不知道您是否能够升级到较新的版本,但是您的问题可能已经解决。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM