ChrisHegarty opened a new issue, #12898: URL: https://github.com/apache/lucene/issues/12898
We're running in a JVM JIT bug (leading to a crash) when running Lucene 9.9.0. The crash happens with (at least) JDK releases between 19 and 21.0.1. There is no crash in the currently unreleased JDK 21.0.2 and JDK 22. The JDK issue tracking this is https://bugs.openjdk.org/browse/JDK-8321370. ``` # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x0000000103cf75a4, pid=83290, tid=30211 # # JRE version: OpenJDK Runtime Environment (21.0.1+12) (build 21.0.1+12-29) # Java VM: OpenJDK 64-Bit Server VM (21.0.1+12-29, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, bsd-aarch64) # Problematic frame: # V [libjvm.dylib+0x74f5a4] PhaseIdealLoop::build_loop_late_post_work(Node*, bool)+0x30c # # No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again # # An error report file with more information is saved as: # /Users/chegar/git/lucene/lucene/core/build/tmp/tests-cwd/hs_err_pid83290.log # # Compiler replay data is saved as: # /Users/chegar/git/lucene/lucene/core/build/tmp/tests-cwd/replay_pid83290.log # # If you would like to submit a bug report, please visit: # https://bugreport.java.com/bugreport/crash.jsp # ``` ``` // This simple test tickles a JVM JIT crash on JDK's less than 21.0.1 // Needs to be run with C2, so with the environment variable `CI` set public void testCrash() throws IOException { for (int i = 0; i < 100; i++) { try (Directory dir = newDirectory(); IndexWriter iw = new IndexWriter(dir, newIndexWriterConfig(null))) { for (int d = 0; d < 20_000; d++) { iw.addDocument( List.of(new IntPoint("bar", 0), new SortedNumericDocValuesField("foo", 0))); } } } } ``` Since running into this with Elasticsearch we've excluded the offending two methods from compilation, see https://github.com/elastic/elasticsearch/pull/103142/ -- 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.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