rmuir commented on issue #12863: URL: https://github.com/apache/lucene/issues/12863#issuecomment-1836306192
I don't think its a jvm bug. This is what happens when you try to read from a closed indexreader that is backed by mmap. because we've unmapped the byte buffer when `close()` was called -> SIGSEGV. So it is a bug in the application (accessing close'd indexreader), but it causes the JVM crash. It is a tale as old as time, you can find numerous threads on it elsewhere. I'm not gonna repeat it all again. We make a best effort to detect such abuses and prevent this, but its not possible to do safely without using @uschindler 's Panama-based provider and a modern JVM. So either: * fix your code not to access close'd indexreaders * upgrade to recent lucene and java and use panama provider. You will get AlreadyClosedException or similar instead. * call `setUseUnmap(false)` on your MMapDirectory. The downside is much disk and address space will now be tied to the java garbage collector... -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org