Skip to content

var_dump of a Closure object segfaults instead of dumping it #179

Closed

Description

@blacktrs

Summary

var_dump of a Closure object segfaults instead of dumping it.

Repro

<?php
$cb = function (int $x): int { return $x + 1; };
ob_start();
var_dump($cb);
$out = ob_get_clean();
echo str_starts_with($out, 'object(Closure)#') ? "dumped\n" : "bad\n";

Expected (php)

dumped

Actual (manticore 31f6f652, Darwin arm64)


[exit code 139 — SIGSEGV]

Tracking

Known-bug repro: tests/aot/repro/crash/var_dump_closure_segfaults.php — bash tests/aot/xfail.sh -k var_dump_closure_segfaults 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 3 commits that reference this issue on Oct 12, 2026
    d71ea83
    d8c0465
    7f2be54
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