lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Gould <>
Subject JVM Crash in Lucene
Date Fri, 09 Dec 2005 01:49:11 GMT

I'm relatively new to Lucene.  When I run my app, I get a JVM error. 
This gets called a lot, but only fails every once in awhile (maybe 1 in 
100 calls?)

I filed a report with Sun, but I don't expect to hear anything from them. 
So, I was wondering if any Lucene experts have run across this or have any 
ideas for workarounds (if not, I'll have to take lucene out of my system 
and manage the termvectors myself):

# An unexpected error has been detected by HotSpot Virtual Machine:
#  SIGSEGV (0xb) at pc=0x0000002a95a5c300, pid=26545, tid=1085655392
# Java VM: Java HotSpot(TM) 64-Bit Server VM (1.5.0_06-b05 mixed mode)
# Problematic frame:
# V  []
# An error report file with more information is saved as 

That error file is huge, but the salient part seems to be:

Stack: [0x0000000040a5c000,0x0000000040b5d000),  sp=0x0000000040b59f70, 
free sp
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native 
V  []
V  []
V  []
V  []
V  []
V  []
V  []
V  []
V  []
V  []
V  []
V  []
V  []

Current CompileTask:
(99 bytes)

My code that is causing the JVM crash is:

         //Get the terms and frequencies
         IndexReader indexreader = null;
         TermFreqVector tv = null;
         try {
             indexreader = indexManager.getIndexReader();
             tv = indexManager.getTermVector(indexreader, item);
             if(null==tv) {
                 if(log.isErrorEnabled()) log.error("No term vector for item " + item.getId());
                 //??? better handling
         finally {
             //XXX should close earlier
             if(null!=indexreader) {
                 try {
                 catch(IOException ex) {
                     if(log.isDebugEnabled()) log.debug("IOException cleaning up indexreader
", ex);

         //Replace the String[] with its equivalent long[]... (and tally up total occurs)
         String[] termstrings = tv.getTerms();
         int[] freqs = tv.getTermFrequencies();

Thank you for your help,

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message