Skip to main content

debug stacktrace for Oracle Hotspot 1.6 at hs_err

No replies
claudio
Offline
Joined: 2003-06-17
Points: 0

Hi, there is a crash generated by a bad behavior of one application that uses lucene.

OS: RHEL 5.8 64bits

I see the hs_err generated by OpenJDK 1.6 update 22, prints the current stack trace (see hs_err_27798-openjdk.txt) in the java frames section as seen far below.

However Oracle JDK 1.6 update 32 doesn't print those java frames (see hs_err_26458-hotspot.txt), which would be very helpful to troubleshoot these issues.

Do you known if there is a special flag to generate those java frames in Oracle Hostspot hs_err ?

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
J java.nio.Bits.copyToByteArray(JLjava/lang/Object;JJ)V
J java.nio.DirectByteBuffer.get([BII)Ljava/nio/ByteBuffer;
J org.apache.lucene.store.MMapDirectory$MMapIndexInput.readBytes([BII)V
j org.apache.lucene.store.DataInput.readBytes([BIIZ)V+4
j org.apache.lucene.index.CompoundFileReader$CSIndexInput.readInternal([BII)V+76
J org.apache.lucene.store.BufferedIndexInput.readByte()B
J org.apache.lucene.store.DataInput.readVInt()I
J org.apache.lucene.search.FieldCacheImpl$StringIndexCache.createValue(Lorg/apache/lucene/index/IndexReader;Lorg/apache/lucene/search/FieldCacheImpl$Entry;Z)Ljava/lang/Object;
j org.apache.lucene.search.FieldCacheImpl$Cache.get(Lorg/apache/lucene/index/IndexReader;Lorg/apache/lucene/search/FieldCacheImpl$Entry;Z)Ljava/lang/Object;+155
j org.apache.lucene.search.FieldCacheImpl.getStringIndex(Lorg/apache/lucene/index/IndexReader;Ljava/lang/String;)Lorg/apache/lucene/search/FieldCache$StringIndex;+29
j org.apache.lucene.search.FieldComparator$StringOrdValComparator.setNextReader(Lorg/apache/lucene/index/IndexReader;I)V+8
j org.apache.lucene.search.TopFieldCollector$OneComparatorNonScoringCollector.setNextReader(Lorg/apache/lucene/index/IndexReader;I)V+11
j org.apache.lucene.search.IndexSearcher.search(Lorg/apache/lucene/search/Weight;Lorg/apache/lucene/search/Filter;Lorg/apache/lucene/search/Collector;)V+33