简体   繁体   English

Java 在 Ubuntu linux 上崩溃

[英]Java crash on Ubuntu linux

Suddenly from one day to the next, with no apparent software or configuration changes we are starting to get JVM crashes with the following in the syslog:突然有一天,没有明显的软件或配置更改,我们开始让 JVM 崩溃,系统日志中出现以下内容:

 *** Error in `java': double free or corruption (fasttop): 0x00007f70344753d0 ***
 ======= Backtrace: =========
 /lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7f7051ca17e5]
 /lib/x86_64-linux-gnu/libc.so.6(+0x8037a)[0x7f7051caa37a]
 /lib/x86_64-linux-gnu/libc.so.6(cfree+0x4c)[0x7f7051cae53c]
 /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/libfontmanager.so(Java_sun_font_FreetypeFontScaler_disposeNativeScaler+0x64)[0x7f7028cd6154]
 [0x7f7039017e07]

As far as I can gather from similar issues this is caused by an error in a native library - in this case probably libfontmanager.so.据我从类似问题中了解到,这是由本机库中的错误引起的 - 在这种情况下可能是 libfontmanager.so。

How can this be diagnosed further?如何进一步诊断? Can I get a java-stacktrace of the situation causing this problem?我可以获得导致此问题的情况的 java-stacktrace 吗? In case this is a concurrency issue, it could perhaps be fixed on the java-side of things.如果这是一个并发问题,它可能会在 Java 端修复。

Using OpenJDK 1.8.0_181 on Ubuntu 16.04.5.在 Ubuntu 16.04.5 上使用 OpenJDK 1.8.0_181。 I am unable to find a newer java build in Ubuntu repositories - maybe I overlooked it?我无法在 Ubuntu 存储库中找到更新的 Java 版本 - 也许我忽略了它?

This is a production environment, so upgrade of major java version etc. would not be easy.这是一个生产环境,所以主要java版本等的升级并不容易。

Looks like this was possibly caused by pdfbox version 1.8 (or actually possibly more likely fontbox version 1.8).看起来这可能是由 pdfbox 1.8 版(或者实际上更可能是 fontbox 1.8 版)引起的。 After upgrading both to version 2.0, the problem looks like it might have gone away.将两者都升级到 2.0 版后,问题看起来可能已经消失了。

However several things were tried in a frenzy, to try to get rid of this problem, so this is not known for certain.不过为了解决这个问题,疯狂尝试了几件事情,所以这个还不得而知。 Also the issue was intermittent, and might possibly not have been solved, even though it looks like it until now.此外,该问题是间歇性的,可能还没有解决,即使它看起来像现在。

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

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