segmentation fault

Coleen Phillimore coleen.phillimore at oracle.com
Wed Jun 30 07:06:50 PDT 2010


This email is for primarily for discussion about the Hotspot code base 
and not really for support.  If you think this is a bug in hotspot you 
can file a bug (as directed in the output of the crash).

 From the stack it looks like there's some bug in the native code.  Try 
running -Xcheck:jni and see if that helps diagnose your problem.

Coleen

On 06/22/10 04:02, Dan Cojocar wrote:
> Hello,
> I'm running resin app server to process jms messages from an activemq queue
> and for last couple of days the jvm keeps crashing. I'm using CentOS release
> 5.4 (Final) and in dmesg logs I get something like:
>  java[16538]: segfault at 0000000044d45ff8 rip 00002aab1b8964f8 rsp
> 0000000044d46000 error 6
> I get the segfault also running with: jdk1.6.0_16 or jdk1.6.0_20.
> Compiled openjdk-7-ea-src-b98-17_jun_2010 with debug and using gdb I see the
> following backtraces:
>
> 1. Core was generated by `/home/dcojocar/jdk/build/-debug/bin/java
> -Dresin.watchdog=16600 -Djava.util.log'.
> Program terminated with signal 11, Segmentation fault.
> #0  0x00002b56ca667f40 in markOopDesc::value (this=Cannot access memory at
> address 0x442daff8
> ) at /home/dcojocar/jdk/openjdk/hotspot/src/share/vm/oops/markOop.hpp:102
> 102       uintptr_t value() const { return (uintptr_t) this; }
> (gdb) bt
> #0  0x00002b56ca667f40 in markOopDesc::value (this=Cannot access memory at
> address 0x442daff8
> ) at /home/dcojocar/jdk/openjdk/hotspot/src/share/vm/oops/markOop.hpp:102
> #1  0x00002b56ca676c89 in markOopDesc::hash (this=0x3867ac1901) at
> /home/dcojocar/jdk/openjdk/hotspot/src/share/vm/oops/markOop.hpp:346
> #2  0x00002b56ca676cb1 in markOopDesc::has_no_hash (this=0x3867ac1901) at
> /home/dcojocar/jdk/openjdk/hotspot/src/share/vm/oops/markOop.hpp:350
> #3  0x00002b56ca84b3aa in oopDesc::identity_hash (this=0x9ad9fbf0) at
> /home/dcojocar/jdk/openjdk/hotspot/src/share/vm/oops/oop.inline.hpp:662
> #4  0x00002b56ca982414 in jfieldIDWorkaround::klass_hash_ok (k=0x9ad9fbf0,
> id=0x70cf583233) at
> /home/dcojocar/jdk/openjdk/hotspot/src/share/vm/prims/jni.cpp:167
> #5  0x00002b56ca982506 in jfieldIDWorkaround::verify_instance_jfieldID
> (k=0x9ad9fbf0, id=0x70cf583233) at
> /home/dcojocar/jdk/openjdk/hotspot/src/share/vm/prims/jni.cpp:180
> #6  0x00002b56ca988913 in jfieldIDWorkaround::from_instance_jfieldID
> (k=0x9ad9fbf0, id=0x70cf583233) at
> /home/dcojocar/jdk/openjdk/hotspot/src/share/vm/runtime/jfieldIDWorkaround.hpp:130
> #7  0x00002b56ca985249 in jni_GetIntField (env=0x145fb9e8, obj=0x442eb270,
> fieldID=0x70cf583233) at
> /home/dcojocar/jdk/openjdk/hotspot/src/share/vm/prims/jni.cpp:1703
> #8  0x00002aaab282bc52 in Java_java_net_SocketInputStream_socketRead0
> (env=0x145fb9e8, this=0x442eb268, fdObj=0x442eb270, data=0x442eb278, off=0,
> len=4, timeout=0)
>     at ../../../src/solaris/native/java/net/SocketInputStream.c:75
> #9  0x00002aaaab599a27 in ?? ()
> #10 0x0000000000000000 in ?? ()
>
> 2. Core was generated by `/home/dcojocar/jdk/build/-debug/bin/java
> -Dresin.watchdog=16600 -Djava.util.log'.
> Program terminated with signal 11, Segmentation fault.
> #0  0x00002b80d0a8d366 in StackObj::StackObj (this=0x42b02180) at
> /home/dcojocar/jdk/openjdk/hotspot/src/share/vm/memory/allocation.hpp:97
> 97      class StackObj ALLOCATION_SUPER_CLASS_SPEC {
> (gdb) bt
> #0  0x00002b80d0a8d366 in StackObj::StackObj (this=0x42b02180) at
> /home/dcojocar/jdk/openjdk/hotspot/src/share/vm/memory/allocation.hpp:97
> #1  0x00002b80d0eacd3e in JNITraceWrapper::JNITraceWrapper (this=0x42b02180,
> format=0x2b80d1327434 "GetIntField") at
> /home/dcojocar/jdk/openjdk/hotspot/src/share/vm/prims/jni.cpp:214
> #2  0x00002b80d0eaa218 in jni_GetIntField (env=0x194729e8, obj=0x42b12240,
> fieldID=0x70cf583233) at
> /home/dcojocar/jdk/openjdk/hotspot/src/share/vm/prims/jni.cpp:1703
> #3  0x00002aaaaf1a3c52 in Java_java_net_SocketInputStream_socketRead0
> (env=0x194729e8, this=0x42b12238, fdObj=0x42b12240, data=0x42b12248, off=0,
> len=111, timeout=0)
>     at ../../../src/solaris/native/java/net/SocketInputStream.c:75
> #4  0x00002aaaab5c9fa7 in ?? ()
> #5  0x0000000000000000 in ?? ()
>
> Please advice what should I do next.
> Regards,
> Dan
>
>   



More information about the hotspot-dev mailing list