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
An array row is shared without copy-on-write after array_map #26
Known-bug repro: tests/aot/repro/wrong/array_map_row_shared.php — bash tests/aot/xfail.sh -k array_map_row_shared reports XFAIL while this is open and XPASS once it is fixed; then move the repro into tests/aot/cases/ and close this issue.
Severity note: this is not only a wrong answer. The row array_map hands back is shared without a retain, so it is released twice at scope exit — a double free. glibc and macOS absorb it; musl faults: tests/aot/cases/array_identity_raw_vs_cell_rows died with SIGSEGV on both Alpine CI rows at 09cb49fb.
libgmalloc stack on macOS: __mir_array_release_cell ← __mir_array_release_ownel_cell ← main.
That case was rewritten in 3dc6ed40 to build its rows with array_merge($i, []) so it no longer depends on this bug; the repro here still covers it.
Activity
blacktrs commentedon Oct 5, 2026
Severity note: this is not only a wrong answer. The row
array_maphands back is shared without a retain, so it is released twice at scope exit — a double free. glibc and macOS absorb it; musl faults:tests/aot/cases/array_identity_raw_vs_cell_rowsdied with SIGSEGV on both Alpine CI rows at09cb49fb.libgmalloc stack on macOS:
__mir_array_release_cell←__mir_array_release_ownel_cell←main.That case was rewritten in
3dc6ed40to build its rows witharray_merge($i, [])so it no longer depends on this bug; the repro here still covers it.array_identity_raw_vs_cell_rows rebuilds rows with array_merge: array…
Promote the known-bug repros ownership fixes into the suite (#17 #20 #21
Ownership of locals decided per program point (OwnershipFlow) (#15)
Native containers: SplFixedArray on a native buffer, Manticore\Ds typ…