Closed
Description
When multiple threads (non-concurrent) are used for building CAGRA indexes, the second such thread crashes as follows:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x000077a10bfc2080, pid=208723, tid=208812
#
# JRE version: Java(TM) SE Runtime Environment (22.0.2+9) (build 22.0.2+9-70)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (22.0.2+9-70, mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# C 0x000077a10bfc2080
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -- %E" (or dumping to /home/ishan/code/cuvs/java/cuvs-java/core.208723)
#
# An error report file with more information is saved as:
# /home/ishan/code/cuvs/java/cuvs-java/hs_err_pid208723.log
[0.804s][warning][os] Loading hsdis library failed
#
# If you would like to submit a bug report, please visit:
# https://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Reproduce: Try running the simple test (CagraBuildAndSearchIT) with multiple threads using the following patch: https://gist.github.com/chatman/620e69cbb73cd0344967dc84f962699f, change the boolean executeInDifferentThreads = true;
to false or true.