Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:103140 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 40178 invoked from network); 8 Sep 2018 15:10:48 -0000 Received: from unknown (HELO mout.gmx.net) (212.227.15.18) by pb1.pair.com with SMTP; 8 Sep 2018 15:10:48 -0000 Received: from [192.168.2.133] ([91.8.166.159]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0Lhfu5-1fTN3X2yFl-00mqTi; Sat, 08 Sep 2018 13:14:22 +0200 To: Sebastian Bergmann , internals@lists.php.net References: <4a33e4e8-c72d-6101-8999-366391c78721@php.net> Message-ID: Date: Sat, 8 Sep 2018 13:14:24 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: <4a33e4e8-c72d-6101-8999-366391c78721@php.net> Content-Type: text/plain; charset=utf-8 Content-Language: de-DE Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:dXhJXPqxwHJG+pbYJXasz4hDciBfeh7YsvaKzvRnfxE+JXIA5zN r8NZy365G6xDk19tYYeFzv03ZYMP99rjpTqsXR6HqWiwbgmmNYkvZaGhRLbMt35qULMXij3 cIDVUCdnF8+p1fF32w1qSCLcDVhn9paD4u75cQvgS++d00d9SGRczWBp9yHUasuJGzDCyaW TzdDy53veKJIwv5dzQVKA== X-UI-Out-Filterresults: notjunk:1;V01:K0:8P79zy55RKQ=:7sP81F6CrJzfb+b1mnK0Fz 6U4PRrhHA97gPFcShi20AaPTtDg86lVpxISp8GpGV9p0lhSyuCCB+v6mdiBIPmpFIYi7g7e2i jzYvs6/G2uRONXPfadz/k9erdXYeIlTyK1yoAmSUNvBIyPZVrowhT29f4X2RZWYPIyZ1rfN5Q wdoe1LY7K9OMBDrY7X73u7Y3SVIeEJ4Ilf8GqKc3oOQisL5N8xjuEn8VHWCHG8vGRjz/TjqVI EHGtPxlumMjR3eFlPlj65yZPtMY+t8c7ZjZtTcMFpbK0L6VN8Xla+oefQpn7O5PyaNmxzxk3y kf9rSWzhfdk1f89tHjPlpQXTo+KfFjZMDxhB121owRI/YlPexn01FaavZDIqo29ePFKBLGeIn s6rvRVW4pXRFm6IzoJAfRDUWPYs66lQzAbQam2Ll9jjkB6WD0KWFVyidBrXRMS7kExhgpWvw8 uft3CaHKynfdGYEXwT0yI8uomkd6yxMBuq6gRQSmIzrehROO4yrro/87gPG5KtTE7iFzl4y4G iQtwxgt6Hx5avFG/F2n3T5A+rO0G4oIxDTYruRx/k9xAwnb6zj0hj1jlIqAeSy5WD1PONelb9 /o9EB/pvkGoozxntAVsgyMPvTEDXa3L1t0EKGKzWPImdZfiCy/OQYsbHbNMqUjkxYekfnBLdL SPSd8oX41zJBF7kfOk2bReSWWi36soXp+R2GQz2BozmHuD3lM9/8QGeI2ZXTAia5yQl75relP txlr9F1MxwAul3R5oFS24CQIbUEIk57ODpS6vOMQf6OsIVd9Yefff2wwD7f97yONQts03iZMt Ch9re9K Subject: Re: [PHP-DEV] GCC -foptimize-strlen and bug #76510 From: cmbecker69@gmx.de ("Christoph M. Becker") On 08.09.2018 at 09:59, Sebastian Bergmann wrote: > On 08/04/2018 11:51 PM, Nikita Popov wrote: >> More likely than not this is a bug on our side triggered by this >> optimization, not a bug in GCC. A run through valgrind might reveal >> something. > > Valgrind information has been added to > https://bugs.php.net/bug.php?id=76510. > > Can an optimization such as "optimize-strlen" be disabled on a per-file > (or better, on a per-function) basis as a (hopefully) short-term workaround? The actual bug (not was is reported by valgrind) is caused by a compiler optimization bug in GCC[1]; even some distros are already deploying fixes. Since this bug is likely to affect other parts of php-src and even extensions, I don't think it makes sense to disable optimize-strlen for individual files only, but I rather suggest to check whether optimize-strlen is broken, and if so to add -fno-optimize-strlen to the CFLAGS (etc.) Regardless how we work around the optimization bug, we should do it ASAP. php-7.3.0RC1 is scheduled for tagging on Tuesday. A patch/PR would be appreciated. [1] ff -- Christoph M. Becker