Skip to content

A static callable array copied out of a static property default and invoked through an erased slot crashes (SIGBUS); symfony VarDumper casters. #232

Closed

Description

@blacktrs

Summary

A static callable array copied out of a static property default and invoked through an erased slot crashes (SIGBUS); symfony VarDumper casters.

Repro

<?php
class EC { public static function ce(string $s, int $f = 0): string { return "ce:" . $s; } }
class Cl {
    public static array $d = ["x" => ["EC", "ce"]];
    public array $casters = [];
    public function __construct() { foreach (self::$d as $t => $cb) { $this->casters[$t][] = $cb; } }
    public function cast(): string { $r = ""; foreach ($this->casters["x"] as $cb) { $r = $cb("v", 0); } return $r; }
}
$c = new Cl();
echo $c->cast(), "\n";

Expected (php)

ce:v

Actual (manticore 83170225, Darwin arm64)


[exit code 138 — SIGBUS]

Tracking

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