Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100697 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 88787 invoked from network); 18 Sep 2017 11:28:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Sep 2017 11:28:39 -0000 Authentication-Results: pb1.pair.com smtp.mail=giovanni.g@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=giovanni.g@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.180 as permitted sender) X-PHP-List-Original-Sender: giovanni.g@gmail.com X-Host-Fingerprint: 209.85.217.180 mail-ua0-f180.google.com Received: from [209.85.217.180] ([209.85.217.180:47820] helo=mail-ua0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5D/1F-19300-7EDAFB95 for ; Mon, 18 Sep 2017 07:28:39 -0400 Received: by mail-ua0-f180.google.com with SMTP id k23so106641uaf.4 for ; Mon, 18 Sep 2017 04:28:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:from:date:message-id:subject:to; bh=123WyDw4HCKBh/+M3SawDgSwu4uDhju8cYfmnzEKKsc=; b=dVIyF4eDeLHzrGQUIZ5KWkNWUFUoj0WNjg/j9LrT05GUKxOGNH/0KLJRxOMTWyXkwO U7tU59AHHomX6dqGaTUlkewiVqpMPBIFXOzF1r7Pk19TEgtlXS7RGVFJkxgJWgcqrWlS tMIXal6RjtesInw2eI6b8OCyYC68mv8Ai5o/8Hxs3dRe1o8B45althdqUy71fCWRw1fV +1SlGDwsVgDWWWyJNr4Pn9kQJ6LoBQsBHAvBCK2ev0Pv3cO4azwH0fBd89u/G3ay1XjJ 3BfZMU3oIZtS4o1qb69HqBP8x5J/3kJAUoNlwXu/Mhe47XLIH8qpFhAeEAjNFjpk9a36 Otpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:from:date:message-id:subject :to; bh=123WyDw4HCKBh/+M3SawDgSwu4uDhju8cYfmnzEKKsc=; b=mU66SaGfRHb3h3K81lVBSieQPVzKHaL78kOR/CP4VdCDk2hk5+9Irdyfmyi7lQJxsz Ztc25dbXlKDKupKRsv9HowntjKvLLHo1rY/MqHRt5IKQB6xywuJChpicYaImCG2Le+5U OPNArxNJDBRUwfc+ZHXP/hXlooF5kDU4R1+4zY307XI3YwW2M0LzthTifhiUIG+aYhpp sC7Vx0s1Bw3+tRH//i4JWv+7HBd4RkGo+hwyp2W+hktj3nBQXRG33DktNSFoEfLGftyR 7pgPlqb2z+N1gsrHMcdnzJGYKWFFwmloPGkCZX9bpuTMTyBFoe1dLuD8MbyiR172Jgq9 MXMQ== X-Gm-Message-State: AHPjjUiwP6Fx/3A+S3JgHyo9vcTr3wUzZVcweXPNlE4oQXnAv99mKBnZ V2lRB4XDqRHzjeiocr2cDYMvctn3tKJY6InvuRtzT0uZ X-Google-Smtp-Source: ADKCNb6dDFrsU19mIuIjykNFeaWdREK+9JW0lxjx91ZAcWi85dIdg+oNsrD/ZXUyp/7dIa0lNSLY0eTkInkYQrKZEkc= X-Received: by 10.159.48.157 with SMTP id j29mr28103276uab.36.1505734116202; Mon, 18 Sep 2017 04:28:36 -0700 (PDT) MIME-Version: 1.0 Sender: giovanni.g@gmail.com Received: by 10.103.82.201 with HTTP; Mon, 18 Sep 2017 04:28:35 -0700 (PDT) Date: Mon, 18 Sep 2017 13:28:35 +0200 X-Google-Sender-Auth: 2TKLqhXLz_ZiD2LPcQkFU0g4ckQ Message-ID: To: PHP Internals List Content-Type: multipart/alternative; boundary="f403045dcb9e1f61920559750b60" Subject: PCRE JIT broken in PHP 7.2 From: giovanni@giacobbi.net (Giovanni Giacobbi) --f403045dcb9e1f61920559750b60 Content-Type: text/plain; charset="UTF-8" Greetings, just an heads up, I started testing my project with PHP 7.2.0RC2 but it was causing a segmentation fault. I tracked down the problem to preg_match(), in particular when JIT is enabled and ONLY when running through Apache2 with event MPM. This problem does not occur with command line invocation. Here are the versions I tested, same environment: 7.1.9 works with PCRE JIT enabled 7.2.0alpha1 broken 7.2.0rc2 broken Build command line: ./configure \ --with-apxs2=/usr/local/apache2/bin/apxs \ --with-fpm-user=httpd \ --with-fpm-group=httpd \ --disable-cgi \ --enable-intl \ --with-layout=GNU \ --enable-maintainer-zts \ --with-gettext=static \ --with-iconv \ --with-mysqli=mysqlnd \ --enable-exif \ --with-openssl \ --with-curl The effect i observed is the following: var_dump(preg_match('/^a/', "a")); => int(0) var_dump(preg_match('/a/', "a")); => segmentation fault If you need any further information let me know. Kind regards -- Giovanni Giacobbi --f403045dcb9e1f61920559750b60--