Mailing List Archive

SIGSEGV with Lucene 9.9.0
Hi,

I want to raise awareness of a JVM crash that has been tickled by the Lucene 9.9.0 release. I don’t have all the answers (yet), but I just want to ensure that folk here are aware. Details in this Elasticsearch issue [1]

# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f57de17ef0e, pid=9600, tid=48393
#
# 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, linux-amd64)
# Problematic frame:
# V [libjvm.so+0xb93f0e] PhaseIdealLoop::build_loop_late_post_work(Node*, bool)+0xce
#

I dunno why we’ve not seen this before, but it reproduces quite frequently with a particular Elasticsearch test.

Offending methods:
-XX:CompileCommand=exclude,org.apache.lucene.util.MSBRadixSorter::computeCommonPrefixLengthAndBuildHistogram \
-XX:CompileCommand=exclude,org.apache.lucene.util.RadixSelector::computeCommonPrefixLengthAndBuildHistogram \

The issue is reproducible with JDK 19.0.2, JDK 20.0.2, JDK 21.0.1. There is no crash in JDK 21.0.2 or JDK 22 (local builds of yet unreleased JDKs), but my understanding is that the method is just not compiled. Investigation is ongoing in the JDK issue https://bugs.openjdk.org/browse/JDK-8321370

For reference, JDK 20.0.2 is scheduled to release on 2024-01-16.

-Chris.

[1] https://github.com/elastic/elasticsearch/issues/103004
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org