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
A local array assigned a string[] on one path and a cell-element array on another is read back as raw strings after an element store (SIGSEGV). #376
Known-bug repro: tests/aot/repro/crash/array_local_whole_stores_disagree_on_elem_repr.php — bash tests/aot/xfail.sh -k array_local_whole_stores_disagree_on_elem_repr reports XFAIL while this is open and XPASS once it is fixed; then move the repro into tests/aot/cases/ and close this issue.
Root cause: $p = pieces() (vec[string]) and, on a branch, $p = splitPieces($p) (vec[cell]) merge to vec[unknown]; the next $p[$k] = 's' re-narrows the local to vec[string] (InferNodes::inferStoreElement refines from an unknown element), so the cell buffer is read as raw string pointers.
A whole-store scan that gives such a local a cell element (forward-cellify at each store) fixes it, but here the conflict only appears AFTER Monomorphize (splitPieces' return becomes vec[cell] post-Mono), and retyping a local then hands vec[cell] to callees already bound to $mono$p0_vec_int-style clones (tests/aot/cases/array_bulk_list_ops regressed that way). Commit 463f1c1c (branch fix/open-bugs-batch2) applies the scan before Monomorphize only. Closing this needs post-Mono call sites to be re-bound (or converted at the argument) when inference moves an argument's element repr — the same hazard behind #369.
Activity
blacktrs commentedon Oct 20, 2026
Root cause:
$p = pieces()(vec[string]) and, on a branch,$p = splitPieces($p)(vec[cell]) merge to vec[unknown]; the next$p[$k] = 's're-narrows the local to vec[string] (InferNodes::inferStoreElement refines from an unknown element), so the cell buffer is read as raw string pointers.A whole-store scan that gives such a local a cell element (forward-cellify at each store) fixes it, but here the conflict only appears AFTER Monomorphize (splitPieces' return becomes vec[cell] post-Mono), and retyping a local then hands vec[cell] to callees already bound to
$mono$p0_vec_int-style clones (tests/aot/cases/array_bulk_list_ops regressed that way). Commit 463f1c1c (branch fix/open-bugs-batch2) applies the scan before Monomorphize only. Closing this needs post-Mono call sites to be re-bound (or converted at the argument) when inference moves an argument's element repr — the same hazard behind #369.Compiler and tokenizer fixes from the manticore-fmt rewrite (#380)