Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:108325 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 21770 invoked from network); 30 Jan 2020 00:48:08 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 30 Jan 2020 00:48:08 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id C2C751804D1 for ; Wed, 29 Jan 2020 14:58:54 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS 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-ot1-f50.google.com (mail-ot1-f50.google.com [209.85.210.50]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 29 Jan 2020 14:58:54 -0800 (PST) Received: by mail-ot1-f50.google.com with SMTP id 59so1256395otp.12 for ; Wed, 29 Jan 2020 14:58:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Op4rmzG6vBuxFayWNMlQ9xSKBqmSmRCVooZVCEVGq9o=; b=bW+Vq+xwaizyEXZbY4xW9dSr3U46y3p1seaamZzhg1R+EaDOLH3HEbicuZ+tkKPloE 6qbErH9yNdY+hwGdfO82+c/1v0Br+XgCsJsHp5imy7EpiAdEgv+I36nOh8gp3YHaOP9y iDaMnszM8bdzEa9VL4O+dTky8Tcat18KzSoy0UU43T3v6qKGGDbM573co2PMq601Kbcb zqWp/8SQZXRSsacb+WRXsENo2zbm6K7SF4OvFHsflmR2NTRWBAlinGwBYQ9xpruug7hU 6el8Y6iitb/OGk7SXAalOh/qBbnaoaCR+dKokThSUuAkOFXdySfakiqSifYXlUqf/YX8 7Ajg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Op4rmzG6vBuxFayWNMlQ9xSKBqmSmRCVooZVCEVGq9o=; b=nWC9bdgCfXU/W6e7sMVcz0322VxUeXKHcG5p+nJdKrBnVvqN/Wvl4utRfP9Gt/2qyn y57vmJe3uQfY+TbFWsxhhbd32wSA+yn65+pv1LfED8LniKRiJpG6NC5Qtyc96j/VYDFS 1w/jUt0iQoHZFsJZ62k9A39v4GfOd5XPgLcvdEf7a8xEH6I0UmObZ1oU6V5qyrjKLBlo CqRdzRz72xDItXKBTaWNL7sYBFDqriMBtRH30UQN9MGgrRWGF6moe0F/aIp7DDO7RZSk XOO08dg9KqloEtb5eSd3YFemv3NIfozD5JDOuFX/5B3ih401DQWMy1yBqgwbmNv5WV8Q 6cUg== X-Gm-Message-State: APjAAAUnNHzFvX+fsU/LIC2VDdt+Xn0UFet9MGb4wvb37prfCXrSDJtg qPbIkWAKB0Haj9jJ5jSJtIwjHKayIN7C/v9S5SQ= X-Google-Smtp-Source: APXvYqyvk6pBoQqkIoNZlKuoo7eid0FPYn+ekpc5HA4695girDGLvOXl2slcJv1nL9yxIE3ikjDinFiJ0dUNt3Inzg0= X-Received: by 2002:a9d:7083:: with SMTP id l3mr1236304otj.193.1580338733033; Wed, 29 Jan 2020 14:58:53 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 29 Jan 2020 23:58:41 +0100 Message-ID: To: bishop@php.net Cc: PHP Internals Content-Type: multipart/alternative; boundary="000000000000cead52059d4f488f" Subject: Re: [PHP-DEV] How to debug a segmentation fault? From: benjamin.morel@gmail.com (Benjamin Morel) --000000000000cead52059d4f488f Content-Type: text/plain; charset="UTF-8" > > I would add, since you're using PHP-FPM, that the pool configuration needs > to have: > process.dumpable = 1 Thank you! I could not generate a core dump before adding this configuration option! The generating a gdb backtrace page looks a big outdated, it would be nice if someone could update it will all the helpful info received in this thread. I'm not sure if I could gather helpful enough info about the issue, but anyway I filed a bug here: https://bugs.php.net/bug.php?id=79194 Thank you, Benjamin On Wed, 29 Jan 2020 at 18:19, Bishop Bettini wrote: > On Tue, Jan 28, 2020 at 11:28 AM Benjamin Morel > wrote: > >> I'm encountering a SIGSEGV in PHP-FPM on PHP 7.4.2 in a Symfony app. The >> bug seems to happen during the rendering of a Twig template; this makes it >> hard for me to pinpoint the code that triggers the segfault. >> >> Could you please tell me what the procedure to collect information is, so >> that I can file a useful bug report? >> > > Great advice so far. I would add, since you're using PHP-FPM, that the > pool configuration needs to have: > > process.dumpable = 1 > > to get core dumps out of workers. Without this you might not get core > dumps, even when you have other core dump settings configured (ulimit -c > unlimited, chmod +r phpfpm, etc.). > --000000000000cead52059d4f488f--