Java Virtual Machine crashes Multiple times

五迷三道 提交于 2019-12-24 07:01:35

问题


This is the entire error message

http://pastebin.com/bDgye0rt

The error log is too big that I can't attach it here. I am not extremely familiar with how jvm works in the background and what registers it makes use of. I am hoping someone can look at this error log and explain to me what it means.

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007ffd18cbcafe, pid=29906, tid=140725158119168
#
# JRE version: 6.0_27-b27
# Java VM: OpenJDK 64-Bit Server VM (20.0-b12 mixed mode linux-amd64 compressed oops)
# Derivative: IcedTea6 1.12.6
# Distribution: Debian GNU/Linux 7.1 (wheezy), package 6b27-1.12.6-1~deb7u1
# Problematic frame:
# C  [libresolv.so.2+0x7afe]  __libc_res_nquery+0x19e
#
# If you would like to submit a bug report, please include
# instructions how to reproduce the bug and visit:
#   http://icedtea.classpath.org/bugzilla
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

I can't understand why and how it is created. It keeps happening all the time.

PS: I have the error log of another 3 crashes that happened in my machine which I can share if you think its necessary.

EDIT

I have around 8 logs and out of the 8 logs it is made clear that the last call before the program crashes is

java.net.Inet6AddressImpl.lookupAllHostAddr

I do not believe the input is that much related because there is a static list of inputs that are parsed serially, and the error occurs at different time frames (Sometimes 1 hour after the program has been running and some other times 6 hours, it appears to be random).


回答1:


It is an issue related to glibc and IPv6.

It would be safe to add -Djava.net.preferIPv4Stack=true to ask JVM use IPv4 first to avoid this issue.



来源:https://stackoverflow.com/questions/21219388/java-virtual-machine-crashes-multiple-times

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!