Skip to content

A function-name string read from an array element and passed to a callable parameter SIGBUSes. #252

Closed

Description

@blacktrs

Summary

A function-name string read from an array element and passed to a callable parameter SIGBUSes.

Repro

<?php
function mixed0(): mixed { return 0.0; }
function show(callable $f): void { var_dump($f()); }
foreach (['mixed0'] as $n) { show($n); }

Expected (php)

float(0)

Actual (manticore aee892ae, Darwin arm64)


[exit code 138 — SIGBUS]

Tracking

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

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