You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
JVM wheel on Windows, Python 3.13: one HotSpot access violation in a jvector C2 frame in the examples run, crash report lost #352
bugSomething isn't workingdocumentationImprovements or additions to documentationgithub_actionsPull requests that update GitHub Actions codejvmThe arcadedb-jvm package (JPype build)pythonPull requests that update python codevectorVector indexes and find_nearest
The JVM wheel crashed once in a Windows examples run in CI, inside HotSpot. The rerun of the same job passed, I have not reproduced it, and I could not read the crash report. I file it so that a second occurrence has something to compare with. It is not the native-image parity crash of #295: this is the JVM wheel (arcadedb-jvm, HotSpot), not the native wheel.
The example 13_stackoverflow_hybrid_queries.py exited with code 1. The other examples of that job passed.
The JVM printed EXCEPTION_ACCESS_VIOLATION (0xc0000005) and the problematic frame J 8848 c2 io.github.jbellis.jvector.graph.diversity.VamanaDiversityProvider.isDiverse(...), a C2-compiled method.
The JVM wrote hs_err_pid4416.log to C:/Users/runneradmin/AppData/Local/arcadedb/log/ and a minidump hs_err_pid4416.mdmp to the examples directory on the runner. Neither was uploaded, so both are gone with the runner.
Attempt 2 of the same job passed.
I do not claim a jvector bug. One crash in JIT-compiled code can come from the JVM, the runner or the library, and the report that would tell is lost.
What I do next:
Make the Windows examples job upload hs_err_pid*.log and hs_err_pid*.mdmp when it fails, so that the next occurrence leaves the file. I will open that as a small CI pull request.
Append every further occurrence here with its run, job and frame.
If it recurs with the same frame, I try a repro in Java on the engine API and file it with the jvector maintainers.
The release 26.11.1.post2 was not held for this: the rerun passed, and the two release runs of the tag, on the same commit, passed.
A second occurrence with the same frame. I logged it on #295 at the time (comment of 2026-11-12), and it belongs here. In the Windows examples job of the pull request run for #374 (run 43137532222, Python 3.14), 11_vector_index_build.py died with EXCEPTION_ACCESS_VIOLATION (0xc0000005) in the C2-compiled io.github.jbellis.jvector.graph.diversity.VamanaDiversityProvider.isDiverse, on Corretto 25.0.5+10, windows-amd64. The rerun of the failed job passed.
This time the crash report was kept, because #364 uploads it. The hs_err log is in the artifact jvm-crash-logdir-windows-amd64-py3.14 and the minidump is in jvm-crash-cwd-windows-amd64-py3.14. Both are run artifacts and expire on 2026-11-26, so they have to be downloaded before then.
That makes two occurrences with the same frame, which is the condition of step 3 above: a repro in Java on the engine API, and then a report to the jvector maintainers with the hs_err log.
I also moved this issue to milestone 27.1.1, because nothing ships for it in 26.12.1.
A third occurrence, and this time I compared the two crash reports that were kept. The push run on main at 0d5ed27 (run 45119638025, Windows, Python 3.11, JVM wheel) failed 11_vector_index_build.py with EXCEPTION_ACCESS_VIOLATION in the C2-compiled io.github.jbellis.jvector.graph.diversity.VamanaDiversityProvider.isDiverse (87 bytes). The next example passed, so the job was red for one crash and nothing else. The red-main report for it is #464, which I am closing with a link here.
I read the hs_err logs of this run (artifact jvm-crash-logdir-windows-amd64-py3.11) and of the run of 2026-11-12 (jvm-crash-logdir-windows-amd64-py3.14), which I downloaded before it expires. What they have in common:
run 43137532222
run 45119638025
JVM
Corretto 25.0.5.0.10
Corretto 25.0.5.1.2
host
Windows Server 2025, AMD EPYC 9V74, 4 cores
the same
thread
ForkJoinPool-1-worker-2
ForkJoinPool-1-worker-3
time after JVM start
4.08 s
3.94 s
fault
read of address 0x10
read of address 0x10
RAX
0
0
RBX, RDX, RBP, RDI, R9
0x150, 0x4c87, 0xfa00, 0x180, 0x180
the same five values
So it is one fault, not two: the same compiled method, the same null base register, the same loop state. The code at the faulting pc is EVEX-encoded, which means AVX-512 instructions, and the host has AVX-512. The command lines of both JVMs carry --add-modules=jdk.incubator.vector and -XX:+UseCompactObjectHeaders; the second is set by start_jvm (src/arcadedb/jvm.py), the CDS archive of #332 depends on it. I have not seen this crash on Linux or macOS, and I have no rate: three crashes in the Windows examples job in 13 days (2026-11-10 in 13_stackoverflow_hybrid_queries.py, 2026-11-12 and 2026-11-23 in 11_vector_index_build.py), out of every Windows run in that time, which I did not count.
I searched the jvector issues and the OpenJDK bug tracker through a web search and found no report of this crash. What I do not know is whether the cause is C2 with the Vector API on this CPU, compact object headers, or jvector's loop; none of the three is shown by two crash reports.
What I will do in 27.1.1 (this issue stays on that milestone): a Windows job that runs the vector build of that example in a loop, with and without -XX:+UseCompactObjectHeaders, to see which arm crashes and at what rate, and then report to jvector and Corretto with the two logs. The minidump of run 45119638025 (artifact jvm-crash-cwd-windows-amd64-py3.11, 311 MB) expires on 2026-12-07 and the one of the earlier run on 2026-11-26; I did not download them because the logs carry the registers and the nmethod, and a dump is only needed if a maintainer asks.
(Edited 2026-11-23: the first version said one occurrence per about ten days, which I had not counted; it now says what I know.)
I edited my comment above: its first version gave a rate of one crash per about ten days, which I had not counted. It now lists the three crashes (2026-11-10, 2026-11-12, 2026-11-23) and says there is no rate.
bugSomething isn't workingdocumentationImprovements or additions to documentationgithub_actionsPull requests that update GitHub Actions codejvmThe arcadedb-jvm package (JPype build)pythonPull requests that update python codevectorVector indexes and find_nearest
Activity
CI: upload the JVM crash report and minidump when an examples job fai…
tae898 commentedon Nov 22, 2026
A second occurrence with the same frame. I logged it on #295 at the time (comment of 2026-11-12), and it belongs here. In the Windows examples job of the pull request run for #374 (run 43137532222, Python 3.14),
11_vector_index_build.pydied withEXCEPTION_ACCESS_VIOLATION (0xc0000005)in the C2-compiledio.github.jbellis.jvector.graph.diversity.VamanaDiversityProvider.isDiverse, on Corretto 25.0.5+10, windows-amd64. The rerun of the failed job passed.This time the crash report was kept, because #364 uploads it. The hs_err log is in the artifact
jvm-crash-logdir-windows-amd64-py3.14and the minidump is injvm-crash-cwd-windows-amd64-py3.14. Both are run artifacts and expire on 2026-11-26, so they have to be downloaded before then.That makes two occurrences with the same frame, which is the condition of step 3 above: a repro in Java on the engine API, and then a report to the jvector maintainers with the hs_err log.
I also moved this issue to milestone 27.1.1, because nothing ships for it in 26.12.1.
tae898 commentedon Nov 23, 2026
A third occurrence, and this time I compared the two crash reports that were kept. The push run on
mainat0d5ed27(run 45119638025, Windows, Python 3.11, JVM wheel) failed11_vector_index_build.pywithEXCEPTION_ACCESS_VIOLATIONin the C2-compiledio.github.jbellis.jvector.graph.diversity.VamanaDiversityProvider.isDiverse(87 bytes). The next example passed, so the job was red for one crash and nothing else. The red-main report for it is #464, which I am closing with a link here.I read the
hs_errlogs of this run (artifactjvm-crash-logdir-windows-amd64-py3.11) and of the run of 2026-11-12 (jvm-crash-logdir-windows-amd64-py3.14), which I downloaded before it expires. What they have in common:ForkJoinPool-1-worker-2ForkJoinPool-1-worker-30x100x10RAXRBX,RDX,RBP,RDI,R90x150,0x4c87,0xfa00,0x180,0x180So it is one fault, not two: the same compiled method, the same null base register, the same loop state. The code at the faulting pc is EVEX-encoded, which means AVX-512 instructions, and the host has AVX-512. The command lines of both JVMs carry
--add-modules=jdk.incubator.vectorand-XX:+UseCompactObjectHeaders; the second is set bystart_jvm(src/arcadedb/jvm.py), the CDS archive of #332 depends on it. I have not seen this crash on Linux or macOS, and I have no rate: three crashes in the Windows examples job in 13 days (2026-11-10 in13_stackoverflow_hybrid_queries.py, 2026-11-12 and 2026-11-23 in11_vector_index_build.py), out of every Windows run in that time, which I did not count.I searched the jvector issues and the OpenJDK bug tracker through a web search and found no report of this crash. What I do not know is whether the cause is C2 with the Vector API on this CPU, compact object headers, or jvector's loop; none of the three is shown by two crash reports.
What I will do in 27.1.1 (this issue stays on that milestone): a Windows job that runs the vector build of that example in a loop, with and without
-XX:+UseCompactObjectHeaders, to see which arm crashes and at what rate, and then report to jvector and Corretto with the two logs. The minidump of run 45119638025 (artifactjvm-crash-cwd-windows-amd64-py3.11, 311 MB) expires on 2026-12-07 and the one of the earlier run on 2026-11-26; I did not download them because the logs carry the registers and the nmethod, and a dump is only needed if a maintainer asks.(Edited 2026-11-23: the first version said one occurrence per about ten days, which I had not counted; it now says what I know.)
tae898 commentedon Nov 23, 2026
I edited my comment above: its first version gave a rate of one crash per about ten days, which I had not counted. It now lists the three crashes (2026-11-10, 2026-11-12, 2026-11-23) and says there is no rate.