Thicket thicket
ocaml
REPOS 27
SEARCH THE ARCHIVE

Repository activity

40458 results across all weeks

  1. IssueW47.2026 · 16–22 Novocaml/ocaml

    Mapped bigarrays serialize but cannot be read back

    A bigarray returned by Unix.map_file can be marshalled, but reading the result back raises Failure. Found with DeepSeek v4.1 Flash 1017. On 5.5.0, macOS arm64:

    KC Sivaramakrishnan (@kayceesrk)
  2. IssueW47.2026 · 16–22 Novocaml/ocaml

    Mark stack is not empty when the last domain terminates

    When the last domain terminates with an ephemeron whose live data exceeds the 100,000-word force-alive budget, the debug runtime aborts in caml_teardown_major_gc.

    KC Sivaramakrishnan (@kayceesrk)
  3. IssueW47.2026 · 16–22 Novocaml/ocaml

    Marshal.to_channel leaks blocks when a write fails

    Marshal.to_channel leaks the unwritten part of the marshalled data when a write to the channel fails. caml_output_val writes the marshalled blocks in a loop and frees each one after caml_really_putblock returns (extern.c:1021-1026). A raise from the write leaves the rest of the chain allocated.

    KC Sivaramakrishnan (@kayceesrk)
  4. IssueW47.2026 · 16–22 Novocaml/ocaml

    Marshalling a forcing lazy makes an unforceable copy

    Marshalling a lazy value while it is being forced makes a copy whose force raises Undefined for ever, although Lazy.is_val reports it as a value.

    KC Sivaramakrishnan (@kayceesrk)
  5. IssueW47.2026 · 16–22 Novocaml/ocaml

    Memprof callback reads an entry deleted while it allocates

    A memprof allocation callback can segfault while its arguments are being allocated. This happens when another domain stops and discards the profile and then runs a minor GC in that window.

    KC Sivaramakrishnan (@kayceesrk)
  6. IssueW47.2026 · 16–22 Novocaml/ocaml

    Memprof callbacks can receive another profile's user_data

    A promote callback of a new profile can receive the previous profile's user_data if a table reallocation fails while the new profile starts. In the program below an int arrives where a string is declared, and the program segfaults.

    KC Sivaramakrishnan (@kayceesrk)
  7. IssueW47.2026 · 16–22 Novocaml/ocaml

    Memprof transfer can validate two configs that disagree

    The debug runtime's from->config == to->config assertion in entries_transfer can fail when another domain discards the profile during the transfer.

    KC Sivaramakrishnan (@kayceesrk)
  8. Pull requestW47.2026 · 16–22 Novocaml/ocaml

    New GC-pacing logic

    This is the implementation of https://github.com/damiendoligez/gc-pacing .

    Damien Doligez (@damiendoligez)
  9. IssueW47.2026 · 16–22 Novocaml/ocaml

    No thread preemption in a child after fork

    In a program that has already started a thread, Unix.fork leaves the child unable to switch threads:

    KC Sivaramakrishnan (@kayceesrk)
  10. Pull requestW47.2026 · 16–22 Novocaml/ocaml

    Optimize Weak.blit into ephemerons with many keys

    I made a comment on #15033 about this, but since that is merged figured it would be more efficient to just send a PR.

    Josh Berdine (@jberdine)
  11. IssueW47.2026 · 16–22 Novocaml/ocaml

    Orphaning finalisers does not handle allocation failure

    Orphaning another domain's finalisers does not handle allocation failure, in two places.

    KC Sivaramakrishnan (@kayceesrk)
  12. Pull requestW47.2026 · 16–22 Novocaml/ocaml

    POWER: convert int<->float with direct VSX moves instead of memory

    Hello!

    Zane Hambly (@Zaneham)
  13. Pull requestW47.2026 · 16–22 Novocaml/ocaml

    POWER: use subf instead of subfc for subtraction and modulo

    Hello!

    Zane Hambly (@Zaneham)
  14. Pull requestW47.2026 · 16–22 Novocaml/ocaml

    Preserve possible injectivity in variance composition

    Fix #15142 in Variance.compose when the outer parameter may be invariant

    Demetrios Chiuratto Agourakis (@agourakis82)
  15. IssueW47.2026 · 16–22 Novocaml/ocaml

    Private Dynlink load hides a nested public load

    A bytecode plugin loaded with Dynlink.loadfile_private can load another plugin publicly. The nested initialiser runs, but a later plugin cannot resolve its globals. This reproduces on trunk f0c1023333, macOS arm64. Found with the assistance of an LLM.

    KC Sivaramakrishnan (@kayceesrk)
  16. IssueW47.2026 · 16–22 Novocaml/ocaml

    Race between `Gc.finalise_last` and the minor GC on a young value of another domain

    If a domain calls Gc.finalise_last on a young value of another domain, the minor GC can read freed or reused memory. The result can be a segmentation fault in caml_final_update_last_minor. From code reading, the race is in all versions from OCaml 5.1.0 to trunk.

    Bikal Lem (@bikallem)
  17. IssueW47.2026 · 16–22 Novocaml/ocaml

    Raising allocations in contexts that cannot unwind

    Several allocation sites can raise Out_of_memory from a context that cannot unwind an OCaml exception: a stop-the-world barrier body, the domain_create ladder while it holds all_domains_lock, or a path holding an internal mutex. The convention in those contexts is the non-raising _noexc variant ending in caml_fatal_error or a clean rollback, as alloc_todo do…

    KC Sivaramakrishnan (@kayceesrk)
  18. IssueW47.2026 · 16–22 Novocaml/ocaml

    Raw fork() after Domain.spawn hangs at shutdown

    A C program that calls fork() directly, not Unix.fork, after a domain has been spawned and joined hangs in the child at caml_shutdown: the child spins at 100% CPU in caml_free_domains until it is killed.

    KC Sivaramakrishnan (@kayceesrk)
  19. IssueW47.2026 · 16–22 Novocaml/ocaml

    Record update reads `[@atomic]` fields with a plain load

    A record update copies an [@atomic] field with a plain load, while a direct read of the same field is atomic:

    KC Sivaramakrishnan (@kayceesrk)
  20. Pull requestW47.2026 · 16–22 Novocaml/ocaml

    Reduce executable size under "-nodynlink" by using hidden symbols

    This small patch produces significant reductions in executable size when using -nodynlink, which is a useful option for many production deployments. At present, large amounts of space are wasted by the dynamic symbol table and the dynamic string table, which are near-duplicates of the normal symbol and string tables. These tables are required for operation…

    Mark Shinwell (@mshinwell)