Skip to content

ext-parallel crashes in worker mode #2339

@henderkes

Description

@henderkes

What happened?

creating new threads from worker mode crashes the currently running worker thread.
repro:

<?php

$handler = static function () {
    return frankenphp_handle_request(static function () {
        $runtime = new parallel\Runtime();
        $future = $runtime->run(function () {
            return 'hello from thread';
        });

        echo $future->value();
    });
};

while ($handler()); // first hit -> segfault

Build Type

Docker (Debian Trixie)

Worker Mode

Yes

Operating System

GNU/Linux

CPU Architecture

x86_64

PHP configuration

phpinfo() output
-

Relevant log output

Relevant log output
-

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions