Skip to content

call_user_func_array() with a runtime array into a variadic closure parameter crashes (SIGSEGV). #414

Closed

Description

@blacktrs

Summary

call_user_func_array() with a runtime array into a variadic closure parameter crashes (SIGSEGV).

Repro

<?php
function g(callable $cb, array $row) { return call_user_func_array($cb, $row); }
echo g(fn(...$x) => array_sum($x), [1, 4, 3]), "\n";

Expected (php)

8

Actual (manticore 515a500a, Darwin arm64)


[exit code 139 — SIGSEGV]

Tracking

Known-bug repro: tests/aot/repro/crash/cufa_runtime_array_to_variadic_closure.php — bash tests/aot/xfail.sh -k cufa_runtime_array_to_variadic_closure reports XFAIL while this is open and XPASS once it is fixed; then move the repro into tests/aot/cases/ and close this issue.

Activity

  1. added
    bug
    crash
    on Oct 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcrash

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions