Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
303 views
in Technique[技术] by (71.8m points)

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 error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f0b024734cd, pid=21947, tid=139676677560592
#
# JRE version: 6.0_15-b03
# Java VM: Java HotSpot(TM) 64-Bit Server VM (14.1-b02 mixed mode linux-amd64 )
# Problematic frame:
# V  [libjvm.so+0x5df4cd]

My program takes some serialized objects and deserializes them, this is where the problem occurs. The strange thing however is, that the same code with the same objects to deserialize works perfectly fine on other machines with the same hardware, OS, etc. (I'm not sure if this might be hardware related, but I guess its not).

Here is the code, that I'm executing in Java:

        FileInputStream f_in = new FileInputStream(path+"/"+docNum+"/"+docNum+"Part.data");
        ObjectInputStream obj_in = new ObjectInputStream (f_in);
        Object obj = obj_in.readObject();
    //ERROR
        FileInputStream f_in5 = new FileInputStream(path+"/"+docNum+"/"+docNum+"Part_clustIdx_pairClustIdxs_.data");
        ObjectInputStream obj_in5 = new ObjectInputStream (f_in5);      
        Object clustIdx_pairClustIdxs = obj_in5.readObject();

        FileInputStream f_in4 = new FileInputStream(path+"/"+docNum+"/"+docNum+"Part_pairClustIdxs_pairPartRootNodeIds_.data");
        ObjectInputStream obj_in4 = new ObjectInputStream (f_in4);      
        Object pairClustIdxs_pairPartRootNodeIds = obj_in4.readObject();

        FileInputStream f_in3 = new FileInputStream(path+"/"+docNum+"/"+docNum+"Part_clustIdx_partRootNodeIds_.data");
        ObjectInputStream obj_in3 = new ObjectInputStream (f_in3);      
        Object clustIdx_partRootNodeIds = obj_in3.readObject();

        FileInputStream f_in2 = new FileInputStream(path+"/"+docNum+"/"+docNum+"Part_rootNodeId_Part.data");
        ObjectInputStream obj_in2 = new ObjectInputStream (f_in2);
        Object rootNodeId_Part = obj_in2.readObject();  

        Part part = (Part) obj;
        part.rootNodeId_part_ = (Map<String, Part>) rootNodeId_Part;
        part.clustIdx_partRootNodeIds_ = (Map<Integer,TreeSet<String>> ) clustIdx_partRootNodeIds;
        part.pairClustIdxs_pairPartRootNodeIds_ = (Map<Pair<Integer,Integer>,Set<Pair<String,String>>> ) pairClustIdxs_pairPartRootNodeIds;
        part.clustIdx_pairClustIdxs_ = (Map<Integer,Set<Pair<Integer,Integer>>> ) clustIdx_pairClustIdxs;   

The error occurs after the first deserialization block. However, if I interchange it with any of the following blocks, the error is still in the second deserialization block. Again, the same code, with the same data works just fine on other machines. I tried reinstalling and?updating Java, but it didn't help.

Here the logfile of the error:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f0b024734cd, pid=21947, tid=139676677560592
#
# JRE version: 6.0_15-b03
# Java VM: Java HotSpot(TM) 64-Bit Server VM (14.1-b02 mixed mode linux-amd64 )
# Problematic frame:
# V  [libjvm.so+0x5df4cd]
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#

---------------  T H R E A D  ---------------

Current thread (0x00000000408c9000):  GCTaskThread [stack: 0x00007f0902afd000,0x00007f0902bfe000] [id=21951]

siginfo:si_signo=SIGSEGV: si_errno=0, si_code=128 (), si_addr=0x0000000000000000

Registers:
RAX=0x0000000000000001, RBX=0x00007f09184091a8, RCX=0x00007f0b02748cb0, RDX=0x000600007f090486
RSP=0x00007f0902bfce00, RBP=0x00007f0902bfce70, RSI=0x00007f0a808d4ed2, RDI=0x000600007f090496
R8 =0x0000000000000001, R9 =0x00000000aa10002f, R10=0x00007f09184091a8, R11=0x00007f09027a8218
R12=0x0708000000000000, R13=0x0000000000000000, R14=0x00007f0a808d4ed2, R15=0x0000000040914ef0
RIP=0x00007f0b024734cd, EFL=0x0000000000010246, CSGSFS=0x0000000000000033, ERR=0x0000000000000000
  TRAPNO=0x000000000000000d

Top of Stack: (sp=0x00007f0902bfce00)
0x00007f0902bfce00:   0000000000000400 00000000408c06a0
0x00007f0902bfce10:   0000000000000005 01007f090c6663b8
0x00007f0902bfce20:   00007f0902bfce50 00007f0b024741d0
0x00007f0902bfce30:   00007f0918408028 0000000000257071
0x00007f0902bfce40:   000000000025703f 00007f09184091a8
0x00007f0902bfce50:   0000000040914fa0 0000000000000000
0x00007f0902bfce60:   0000000000000001 00007f0902bfcefc
0x00007f0902bfce70:   00007f0902bfce90 00007f0b02473f50
0x00007f0902bfce80:   0000000000000001 0000000040914ef0
0x00007f0902bfce90:   00007f0902bfced0 00007f0b02473092
0x00007f0902bfcea0:   000000004095dc20 00007f09184091a8
0x00007f0902bfceb0:   0000000040914ef0 0000000000000002
0x00007f0902bfcec0:   00007f0b0275d4e0 000000004095dc20
0x00007f0902bfced0:   00007f0902bfcf30 00007f0b0247672d
0x00007f0902bfcee0:   00007f0902bfcef0 00007f0902bfcf00
0x00007f0902bfcef0:   00007f0902bfcf30 6cfb9568021cd407
0x00007f0902bfcf00:   00007f0ab4e04578 00007f0b027492a4
0x00007f0902bfcf10:   000000004095dc20 00000000408c9000
0x00007f0902bfcf20:   00007f0b025b0506 0000000000000000
0x00007f0902bfcf30:   00007f0902bfd030 00007f0b021ce67a
0x00007f0902bfcf40:   00007f0902bfcf80 00007f0902bfcf58
0x00007f0902bfcf50:   00007f0b02760f40 0000000000000000
0x00007f0902bfcf60:   00000000408c91e0 00000000408c9210
0x00007f0902bfcf70:   00000000408c9220 00000000408c95f8
0x00007f0902bfcf80:   00000000408c9000 00000000408c9600
0x00007f0902bfcf90:   00000000408c9630 00000000408c9640
0x00007f0902bfcfa0:   00000000408c9a18 00007f0902bfcfd0
0x00007f0902bfcfb0:   00000000408c91e0 00000000408c9210
0x00007f0902bfcfc0:   00000000408c9220 00000000408c95f8
0x00007f0902bfcfd0:   00000000408c9000 00000000408c9600
0x00007f0902bfcfe0:   00000000408c9630 00000000408c9640
0x00007f0902bfcff0:   00000000408c9a18 00000000408c9a20 

Instructions: (pc=0x00007f0b024734cd)
0x00007f0b024734bd:   00 48 8d 14 f5 00 00 00 00 48 03 13 48 8d 7a 10
0x00007f0b024734cd:   8b 5f 08 89 d8 c1 f8 03 85 db 0f 8e cb 05 00 00 

Stack: [0x00007f0902afd000,0x00007f0902bfe000],  sp=0x00007f0902bfce00,  free space=1023k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0x5df4cd]
V  [libjvm.so+0x5dff50]
V  [libjvm.so+0x5df092]
V  [libjvm.so+0x5e272d]
V  [libjvm.so+0x33a67a]
V  [libjvm.so+0x5971af]


---------------  P R O C E S S  ---------------

Java Threads: ( => current thread )
  0x0000000040946800 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=21959, stack(0x00007f0902020000,0x00007f0902121000)]
  0x0000000040942800 JavaThread "CompilerThread1" daemon [_thread_blocked, id=21958, stack(0x00007f0902121000,0x00007f0902222000)]
  0x0000000040940000 JavaThread "CompilerThread0" daemon [_thread_blocked, id=21957, stack(0x00007f0902222000,0x00007f0902323000)]
  0x000000004093d800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=21956, stack(0x00007f0902323000,0x00007f0902424000)]
  0x000000004091f800 JavaThread "Finalizer" daemon [_thread_blocked, id=21955, stack(0x00007f0902463000,0x00007f0902564000)]
  0x000000004091d800 JavaThread "Reference Handler" daemon [_thread_blocked, id=21954, stack(0x00007f0902564000,0x00007f0902665000)]
  0x00000000408bb000 JavaThread "main" [_thread_blocked, id=21948, stack(0x00007f0b01b0f000,0x00007f0b01c10000)]

Other Threads:
  0x0000000040917000 VMThread [stack: 0x00007f0902665000,0x00007f0902766000] [id=21953]
  0x0000000040949000 WatcherThread [stack: 0x00007f0901f1f000,0x00007f0902020000] [id=21960]

=>0x00000000408c9000 (exited) GCTaskThread [stack: 0x00007f0902afd000,0x00007f0902bfe000] [id=21951]

VM state:at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread:  ([mutex/lock_event])
[0x00000000408b7c90] Threads_lock - owner thread: 0x0000000040917000
[0x00000000408b8190] Heap_lock - owner thread: 0x00000000408bb000

Heap
 PSYoungGen      total 1792000K, used 1536000K [0x00007f0a571c0000, 0x00007f0ad41c0000, 0x00007f0afdc60000)
  eden space 1536000K, 100% used [0x00007f0a571c0000,0x00007f0ab4dc0000,0x00007f0ab4dc0000)
  from space 256000K, 0% used [0x00007f0ac47c0000,0x00007f0ac47c0000,0x00007f0ad41c0000)
  to   space 256000K, 99% used [0x00007f0ab4dc0000,0x00007f0ac47b8068,0x00007f0ac47c0000)
 PSOldGen        total 4096000K, used 237896K [0x00007f0909c60000, 0x00007f0a03c60000, 0x00007f0a571c0000)
  object space 4096000K, 5% used [0x00007f0909c60000,0x00007f09184b2028,0x00007f0a03c60000)
 PSPermGen       total 21248K, used 3845K [0x00007f0904860000, 0x00007f0905d20000, 0x00007f0909c60000)
  object space 21248K, 18% used [0x00007f0904860000,0x00007f0904c21718,0x00007f0905d20000)

Dynamic libraries:
40000000-40009000 r-xp 00000000 08:01 859892                             /usr/lib/jvm/java-6-sun-1.6.0.15/jre/bin/java
40108000-4010a000 rwxp 00008000 08:01 859892                             /usr/lib/jvm/java-6-sun-1.6.0.15/jre/bin/java
408b2000-40d42000 rwxp 00000000 00:00 0                                  [heap]
7f08fc000000-7f08fc4aa000 rwxp 00000000 00:00 0 
7f08fc4aa000-7f0900000000 ---p 00000000 00:00 0 
7f0901f1f000-7f0901f20000 ---p 00000000 00:00 0 
7f0901f20000-7f0902020000 rwxp 00000000 00:00 0 
7f0902020000-7f0902023000 ---p 00000000 00:00 0 
7f0902023000-7f0902121000 rwxp 00000000 00:00 0 
7f0902121000-7f0902124000 ---p 00000000 00:00 0 
7f0902124000-7f0902222000 rwxp 00000000 00:00 0 
7f0902222000-7f0902225000 ---p 00000000 00:00 0 
7f0902225000-7f0902323000 rwxp 00000000 00:00 0 
7f0902323000-7f0902326000 ---p 00000000 00:00 0 
7f0902326000-7f0902424000 rwxp 00000000 00:00 0 
7f0902424000-7f0902463000 r-xp 00000000 08:01 688275                     /usr/lib/locale/en_US.utf8/LC_CTYPE
7f0902463000-7f0902466000 ---p 00000000 00:00 0 
7f0902466000-7f0902564000 rwxp 00000000 00:00 0 
7f0902564000-7f0902567000 ---p 00000000 00:00 0 
7f0902567000-7f0902665000 rwxp 00000000 00:00 0 
7f0902665000-7f0902666000 ---p 00000000 00:00 0 
7f0902666000-7f090283e000 rwxp 00000000 00:00 0 
7f090283e000-7f09029d4000 r-xs 02fb3000 08:01 803613                     /usr/lib/jvm/java-6-sun-1.6.0.15/jre/lib/rt.jar
7f09029d4000-7f09029fc000 rwxp 00000000 00:00 0 
7f09029fc000-7f09029fd000 ---p 00000000 00:00 0 
7f09029fd000-7f0902afd000 rwxp 00000000 00:00 0 
7f0902afd000-7f0902afe000 ---p 00000000 00:00 0 
7f0902afe000-7f0902bfe000 rwxp 00000000 00:00 0 
7f0902bfe000-7f0902bff000 ---p 00000000 00:00 0 
7f0902bff000-7f0902cff000 rwxp 00000000 00:00 0 
7f0902cff000-7f0902d00000 ---p 00000000 00:00 0 
7f0902d00000-7f0902e0b000 rwxp 00000000 00:00 0 
7f0902e0b000-7f0902e2a000 rwxp 00000000 00:00 0 
7f0902e2a000-7f09035fa000 rwxp 00000000 00:00 0 
7f09035fa000-7f0903895000 rwxp 00000000 00:00 0 
7f0903895000-7f09038a0000 rwxp 00000000 00:00 0 
7f09038a0000-7f09038bf000 rwxp 00000000 00:00 0 
7f09038bf000-7f090408f000 rwxp 00000000 00:00 0 
7f090408f000-7f0904329000 rwxp 00000000 00:00 0 
7f0904329000-7f0904712000 rwxp 00000000 00:00 0 
7f0904712000-7f090485f000 rwxp 00000000 00:00 0 
7f090485f000-7f0905d20000 rwxp 00000000 00:00 0 
7f0905d20000-7f0909c60000 rwxp 00000000 00:00 0 
7f0909c60000-7f0a03c60000 rwxp 00000000 00:00 0 
7f0a03c60000-7f0a571c0000 rwxp 00000000 00:00 0 
7f0a571c0000-7f0ad41c0000 rwxp 00000000 00:00 0 
7f0ad41c0000-7f0afdc60000 rwxp 00000000 00:00 0 
7f0afdc6f000-7f0afdedf000 rwxp 00000000 00:00 0 
7f0afdedf000-7f0b00c6f000 rwxp 00000000 00:00 0 
7f0b00c6f000-7f0b00c7d000 r-xp 00000000 08:01 860090                     /usr/lib/jvm/java-6-sun-1.6.0.15/jre/lib/amd64/libzip.so
7f

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

1.Set the following Environment Property on your active Shell. - open bash terminal and type in:

  $ export LD_BIND_NOW=1
  1. Re-Run the Jar or Java File

Note: for superuser in bash type su and press enter


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...