Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120916 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 53819 invoked from network); 18 Aug 2023 09:08:57 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 18 Aug 2023 09:08:57 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 6C7D318033A for ; Fri, 18 Aug 2023 02:08:56 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40,DKIM_SIGNED, DKIM_VALID,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-pj1-f48.google.com (mail-pj1-f48.google.com [209.85.216.48]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 18 Aug 2023 02:08:55 -0700 (PDT) Received: by mail-pj1-f48.google.com with SMTP id 98e67ed59e1d1-26837895fbbso513678a91.3 for ; Fri, 18 Aug 2023 02:08:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dunglas-fr.20221208.gappssmtp.com; s=20221208; t=1692349734; x=1692954534; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=NMqvbsCKh+NnXeqXcuRFcaqJBiGeLbQReG/ct0ADJYg=; b=P8y0rKC1HYE0Hdi6g1UnqaX1cxkxCt2N2FFNI+OREqsH6L2rmWT/wCgFyMVsNWJFCw NDbO/ug21TCNEDUMQt1suNWYhZPA6Gx8npZS1oOynHn7ZDVqBFkfminJj3l3kC8wCjQC Xq1Q5ygqdC8tGy8aUAPWr6Td6iuUO4kzK+W+x6jUw5klaVKaY7npb4yUg2KQdDTcXDT6 j3Ks3eUSfL6MP7psaup5Dje5d3irGmU1gSpvLFz7+oWYg2t9aKbTVJaO/CLt2EasTRfB pirfVuADwMiXL7x9mMf3IPo6Pso5ThauW1e9DqrMIOxLfydzUSz4E/6BSl78DU8Yneoo yl7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692349734; x=1692954534; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=NMqvbsCKh+NnXeqXcuRFcaqJBiGeLbQReG/ct0ADJYg=; b=MYHMZiW8NdJZHLTVBIweCKRVB1p/YCbBqD4dGeJKX0bjYcfBhdw/yHzMwCgapKo/eo FoVZ2wPGozFm35S49KfkBEH+7NFAmnmeiGXqpyzCBRVYZUGRcm6O9IparkOq0K6OPBes umAY3awba85XDJSImU4AW8zIUoUjgUrQ2Uq6cXpJRayRcR4aXv8KKhv9Yif3SJoB4njH RJGcZkXeBs9KzA2f6RrsLBr2nkLVAXS6FjGXkBqUWjXl3uJ4dTN9Phlvt1bHHeuqhFQh kZTJutsxMaOEMC39dPhdzmR2pR4uLZSgNSZ6ZxvidhM+RMxyiw0+UXdmVpI9lF+h0Nvd GwKw== X-Gm-Message-State: AOJu0Yy7wkdMPFDLLiuIFKlQCo5/1kyT8+3w6Thqfejtn7NE0mEe7ujY NMBRNlDvV/6A//KNCsjLeMh1D3dA7AS9fDy1tFvRAbzmBlqM1lHcqYKbOg== X-Google-Smtp-Source: AGHT+IFOkXgUr074LUbzr5z7h8Mgd8mc8T/Fs374lf6s7p0CjxbqGV78YppFIcByVUgchiwq0jMspOh262qL99MfB2I= X-Received: by 2002:a17:90a:c715:b0:269:142e:c2ed with SMTP id o21-20020a17090ac71500b00269142ec2edmr1821717pjt.37.1692349734258; Fri, 18 Aug 2023 02:08:54 -0700 (PDT) MIME-Version: 1.0 Date: Fri, 18 Aug 2023 11:08:43 +0200 Message-ID: To: internals@lists.php.net Content-Type: multipart/alternative; boundary="000000000000bf282606032ee00a" Subject: Bad interactions between Fibers and GoRoutines (and/or cgo) From: kevin@dunglas.fr (=?UTF-8?Q?K=C3=A9vin_Dunglas?=) --000000000000bf282606032ee00a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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, --=20 K=C3=A9vin Dunglas --000000000000bf282606032ee00a--