Bad interactions between Fibers and GoRoutines (and/or cgo)

From: Date: Fri, 18 Aug 2023 09:08:43 +0000
Subject: Bad interactions between Fibers and GoRoutines (and/or cgo)
Groups: php.internals 
Request: Send a blank email to internals+get-120916@lists.php.net to get a copy of this message
Hi there, We are experiencing strange problems with Fibers when running PHP with FrankenPHP. Fibers sometimes interact badly with the Go runtime on Linux x66 or amd64 (especially in Docker containers) and lead to crashes. We've tried many things: compiling with --disable-fiber-asm, compiling with -fsplit-stack, and increasing the system stack size limit but crashes always occur. This looks related to how Go and Fibers manipulate the stack. Here is a detailed bug report: https://github.com/golang/go/issues/62130 And the reproducer: https://github.com/dunglas/frankenphp/pull/171 Does anyone have any idea what's going on? Best regards, -- Kévin Dunglas

« previous php.internals (#120916) next »