<div><div>Hello all,</div><div>I repost the backtraces on this list too, in hope that someone will guide me to debug this problem further.</div><div>Regards,</div><div>Dan</div></div><div><br></div><div><div class="gmail_quote">
On Tue, Jun 22, 2010 at 11:02 AM, Dan Cojocar <span dir="ltr">&lt;<a href="mailto:dan.cojocar@gmail.com">dan.cojocar@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div>Hello, </div><div>I&#39;m running resin app server to process jms messages from an activemq queue and for last couple of days the jvm keeps crashing. I&#39;m using CentOS release 5.4 (Final) and in dmesg logs I get something like:</div>

<div> java[16538]: segfault at 0000000044d45ff8 rip 00002aab1b8964f8 rsp 0000000044d46000 error 6</div><div>I get the segfault also running with: jdk1.6.0_16 or jdk1.6.0_20. </div><div>Compiled openjdk-7-ea-src-b98-17_jun_2010 with debug and using gdb I see the following backtraces:</div>

<div><br></div><div>1. Core was generated by `/home/dcojocar/jdk/build/-debug/bin/java -Dresin.watchdog=16600 -Djava.util.log&#39;.</div><div>Program terminated with signal 11, Segmentation fault.</div><div>#0  0x00002b56ca667f40 in markOopDesc::value (this=Cannot access memory at address 0x442daff8</div>

<div>) at /home/dcojocar/jdk/openjdk/hotspot/src/share/vm/oops/markOop.hpp:102</div><div>102       uintptr_t value() const { return (uintptr_t) this; }</div><div>(gdb) bt</div><div>#0  0x00002b56ca667f40 in markOopDesc::value (this=Cannot access memory at address 0x442daff8</div>

<div>) at /home/dcojocar/jdk/openjdk/hotspot/src/share/vm/oops/markOop.hpp:102</div><div>#1  0x00002b56ca676c89 in markOopDesc::hash (this=0x3867ac1901) at /home/dcojocar/jdk/openjdk/hotspot/src/share/vm/oops/markOop.hpp:346</div>

<div>#2  0x00002b56ca676cb1 in markOopDesc::has_no_hash (this=0x3867ac1901) at /home/dcojocar/jdk/openjdk/hotspot/src/share/vm/oops/markOop.hpp:350</div><div>#3  0x00002b56ca84b3aa in oopDesc::identity_hash (this=0x9ad9fbf0) at /home/dcojocar/jdk/openjdk/hotspot/src/share/vm/oops/oop.inline.hpp:662</div>

<div>#4  0x00002b56ca982414 in jfieldIDWorkaround::klass_hash_ok (k=0x9ad9fbf0, id=0x70cf583233) at /home/dcojocar/jdk/openjdk/hotspot/src/share/vm/prims/jni.cpp:167</div><div>#5  0x00002b56ca982506 in jfieldIDWorkaround::verify_instance_jfieldID (k=0x9ad9fbf0, id=0x70cf583233) at /home/dcojocar/jdk/openjdk/hotspot/src/share/vm/prims/jni.cpp:180</div>

<div>#6  0x00002b56ca988913 in jfieldIDWorkaround::from_instance_jfieldID (k=0x9ad9fbf0, id=0x70cf583233) at /home/dcojocar/jdk/openjdk/hotspot/src/share/vm/runtime/jfieldIDWorkaround.hpp:130</div><div>#7  0x00002b56ca985249 in jni_GetIntField (env=0x145fb9e8, obj=0x442eb270, fieldID=0x70cf583233) at /home/dcojocar/jdk/openjdk/hotspot/src/share/vm/prims/jni.cpp:1703</div>

<div>#8  0x00002aaab282bc52 in Java_java_net_SocketInputStream_socketRead0 (env=0x145fb9e8, this=0x442eb268, fdObj=0x442eb270, data=0x442eb278, off=0, len=4, timeout=0)</div><div>    at ../../../src/solaris/native/java/net/SocketInputStream.c:75</div>

<div>#9  0x00002aaaab599a27 in ?? ()</div><div>#10 0x0000000000000000 in ?? ()</div><div><br></div><div>2. Core was generated by `/home/dcojocar/jdk/build/-debug/bin/java -Dresin.watchdog=16600 -Djava.util.log&#39;.</div>

<div>Program terminated with signal 11, Segmentation fault.</div><div>#0  0x00002b80d0a8d366 in StackObj::StackObj (this=0x42b02180) at /home/dcojocar/jdk/openjdk/hotspot/src/share/vm/memory/allocation.hpp:97</div><div>97      class StackObj ALLOCATION_SUPER_CLASS_SPEC {</div>

<div>(gdb) bt</div><div>#0  0x00002b80d0a8d366 in StackObj::StackObj (this=0x42b02180) at /home/dcojocar/jdk/openjdk/hotspot/src/share/vm/memory/allocation.hpp:97</div><div>#1  0x00002b80d0eacd3e in JNITraceWrapper::JNITraceWrapper (this=0x42b02180, format=0x2b80d1327434 &quot;GetIntField&quot;) at /home/dcojocar/jdk/openjdk/hotspot/src/share/vm/prims/jni.cpp:214</div>

<div>#2  0x00002b80d0eaa218 in jni_GetIntField (env=0x194729e8, obj=0x42b12240, fieldID=0x70cf583233) at /home/dcojocar/jdk/openjdk/hotspot/src/share/vm/prims/jni.cpp:1703</div><div>#3  0x00002aaaaf1a3c52 in Java_java_net_SocketInputStream_socketRead0 (env=0x194729e8, this=0x42b12238, fdObj=0x42b12240, data=0x42b12248, off=0, len=111, timeout=0)</div>

<div>    at ../../../src/solaris/native/java/net/SocketInputStream.c:75</div><div>#4  0x00002aaaab5c9fa7 in ?? ()</div><div>#5  0x0000000000000000 in ?? ()</div><div><br></div><div>Please advice what should I do next.</div>

<div>Regards,</div><div>Dan </div>
</blockquote></div><br></div>