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 string[] local reassigned from array_merge()/array_slice() results is read back with the wrong element repr when unrelated bare-array calls of the same functions exist (SIGSEGV). #384
A string[] local reassigned from array_merge()/array_slice() results is read back with the wrong element repr when unrelated bare-array calls of the same functions exist (SIGSEGV).
Known-bug repro: tests/aot/repro/crash/array_merge_slice_local_string_vec_mono_mismatch.php — bash tests/aot/xfail.sh -k array_merge_slice_local_string_vec_mono_mismatch reports XFAIL while this is open and XPASS once it is fixed; then move the repro into tests/aot/cases/ and close this issue.
Found via manticore-fmt tests/main.php (segfault in BracesPosition::fixBrace, isWs($a[$last])). Same class as #376: dump-mir of this repro shows local $a stored from pieces() as vec[string] and from array_merge(...) as vec[cell] (the un-specialised variadic prelude body; its sibling array_merge$mono$p0_vec_vec_str serves another call site), while later loads of $a are typed vec[string]. The array_slice$mono$p0_vec_str result (vec[string]) only becomes concrete after Monomorphize, so the array_merge pack key is not concrete before it and the whole-store scan (InferScans::scanWholeStoreElemClasses, pre-Mono only) sees no conflict. Needs the post-Mono re-bind/convert described in #376.
Activity
blacktrs commentedon Oct 23, 2026
Found via manticore-fmt tests/main.php (segfault in BracesPosition::fixBrace,
isWs($a[$last])). Same class as #376: dump-mir of this repro shows local$astored frompieces()as vec[string] and fromarray_merge(...)as vec[cell] (the un-specialised variadic prelude body; its siblingarray_merge$mono$p0_vec_vec_strserves another call site), while later loads of$aare typed vec[string]. Thearray_slice$mono$p0_vec_strresult (vec[string]) only becomes concrete after Monomorphize, so the array_merge pack key is not concrete before it and the whole-store scan (InferScans::scanWholeStoreElemClasses, pre-Mono only) sees no conflict. Needs the post-Mono re-bind/convert described in #376.