Skip to content

JVM wheel on Windows, Python 3.13: one HotSpot access violation in a jvector C2 frame in the examples run, crash report lost #352

Open

Description

@tae898

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.

What the CI log shows (Test Python Examples run 42789429856, workflow_dispatch on 1454809, attempt 1, job Test Python Examples (windows/amd64, Python 3.13)):

  • 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.
  • JVM: Corretto-25.0.5.0.10 (25.0.5+10-LTS), windows-amd64, g1 gc, compact obj headers.
  • 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:

  1. 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.
  2. Append every further occurrence here with its run, job and frame.
  3. 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.

Activity

  1. added
    bug
    github_actions
    jvm
    on Nov 10, 2026
  2. added
    documentation
    python
    vector
    on Nov 10, 2026
  3. added this to the 26.12.1 milestone on Nov 10, 2026
  4. modified the milestones: 26.12.1, 27.1.1 on Nov 22, 2026
  5. tae898 commented on Nov 22, 2026

    @tae898
    CollaboratorAuthor

    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.

  6. tae898 commented on Nov 23, 2026

    @tae898
    CollaboratorAuthor

    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.)

  7. tae898 commented on Nov 23, 2026

    @tae898
    CollaboratorAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugdocumentationgithub_actionsjvmpythonvector

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions