hey, are you using mmap directory by any chance? Stuff like this often happens when you try to read from a already closed mmaped file. Typically you try to search or read from a already closed IndexSearcher / IndexReader, is it possible that you use a stale IndexReader in a in-flight search? The upcoming lucene release contains some safety checks (throwing AlreadyClosedExceptions) to prevent these JVM crashes. I expect the 3.5 release to happen this week. 3.5 also comes with a SearcherManager that helps you to close the indexReader once it goes out of scope.
simon On Tue, Nov 22, 2011 at 7:02 PM, Roberto Fonti <roberto.fo...@gmail.com> wrote: > My JVM (1.6.0_29) keeps crashing on intensive use when indexing documents > with Lucene. I get: > > > # > # A fatal error has been detected by the Java Runtime Environment: > # > # SIGSEGV (0xb) at pc=0x00002b6b196d767c, pid=26417, tid=1183217984 > # > # JRE version: 6.0_29-b11 > # Java VM: Java HotSpot(TM) 64-Bit Server VM (20.4-b02 mixed mode linux-amd64 > compressed oops) > # Problematic frame: > # J org.apache.lucene.store.DataInput.readVInt()I > # > # If you would like to submit a bug report, please visit: > # http://java.sun.com/webapps/bugreport/crash.jsp > # > > Environment: > > JDK: 1.6u29 (same issue with 1.6_02) Lucene Version 3.4.0 > > vm_info: Java HotSpot(TM) 64-Bit Server VM (20.4-b02) for linux-amd64 JRE > (1.6.0_29-b11), built on Oct 3 2011 01:19:20 by "java_re" with gcc 3.2.2 > (SuSE Linux) > > OS:CentOS release 5.0 (Final) > > jvm_args: -Dcatalina.home=/var/local/tomcat-8081 > -Dcatalina.base=/var/local/tomcat-8081 -Djava.io.tmpdir=/var/tmp > -Dfile.encoding=UTF-8 -Xmx1024M -XX:MaxPermSize=96m > > It seems to be a jdk issue that was fixed in jdk 1.7, but other issues where > introduced. https://issues.apache.org/jira/browse/LUCENE-3335 "Java 7 > contains a fix to the readVInt issue since 1.6.0_21 (approx, LUCENE-2975)" > > So, how can I fix this issue using JDK 1.6? Should I upgrade to jdk 1.7? > > > > Thanks, > Roberto --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org