Skip to content

Spreading a mixed[] into a method call with fixed params before a variadic param segfaults. #186

Closed

Description

@blacktrs

Summary

Spreading a mixed[] into a method call with fixed params before a variadic param segfaults.

Repro

<?php
class Sum { public function add(int $x, int ...$more): int { return $x + array_sum($more); } }
/** @param mixed[] $a */
function tr(Sum $t, array $a): mixed { return $t->add(...$a); }
echo tr(new Sum(), [1, 2, 3]), "\n";

Expected (php)

6

Actual (manticore 1c706498, Darwin arm64)


[exit code 139 — SIGSEGV]

Tracking

Known-bug repro: tests/aot/repro/crash/spread_mixed_pack_before_variadic_param.php — bash tests/aot/xfail.sh -k spread_mixed_pack_before_variadic_param 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 11, 2026
  2. added 2 commits that reference this issue on Oct 11, 2026
    c54eb48
    b495eaf
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