Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100701 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 9423 invoked from network); 18 Sep 2017 16:29:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Sep 2017 16:29:30 -0000 Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain zend.com from 104.47.41.139 cause and error) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 104.47.41.139 mail-dm3nam03on0139.outbound.protection.outlook.com Received: from [104.47.41.139] ([104.47.41.139:62096] helo=NAM03-DM3-obe.outbound.protection.outlook.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 94/A1-19300-964FFB95 for ; Mon, 18 Sep 2017 12:29:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=RWSoftware.onmicrosoft.com; s=selector1-zend-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=B3U83d5P0+dakoOCdSz0lR1mS95ph9guE/jWhGJS0yE=; b=bjG1Yq5hIgRg4zPXrSbm2Xt4RiHFjibB9IOGhlt0A08gc8jC0notNB6ozK+rJF44cP1Ehy55/PrWH0fgHFBjArRZD3+CPL0lYesQIRPXbU+yMyUSxBJ2TPgrFcR80nZ/7+y1dS+2KrmMgPftnjx8dn4SIHBK4Yx6KByS12ALTDY= Received: from BN6PR02MB3234.namprd02.prod.outlook.com (10.161.152.32) by BN6PR02MB3217.namprd02.prod.outlook.com (10.161.152.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.56.11; Mon, 18 Sep 2017 16:29:25 +0000 Received: from BN6PR02MB3234.namprd02.prod.outlook.com ([10.161.152.32]) by BN6PR02MB3234.namprd02.prod.outlook.com ([10.161.152.32]) with mapi id 15.20.0056.016; Mon, 18 Sep 2017 16:29:25 +0000 To: Giovanni Giacobbi , PHP Internals List Thread-Topic: [PHP-DEV] PCRE JIT broken in PHP 7.2 Thread-Index: AQHTMHFiyVG/LtLE6U2wt8r+IetjU6K61GP+ Date: Mon, 18 Sep 2017 16:29:24 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=dmitry@zend.com; x-originating-ip: [213.21.45.232] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;BN6PR02MB3217;6:fxDQt5X5IhMxDINNmxKFXVm7FNaB3tJmiUDJguZrq+hb2JMAK/Duzw4pP5StXGi7SiJqy57Z7ug6mWmtYYLVcKfCDdQXJyL2cvm6ldXQlpUG+HA3kCoKr/BymKWmQdoORnZlEc7GpQlVOOkGjji45L1nX+78h7R3Ztzaws7Gu67Dy1EtyxSxZsDY7Bu9AWvPdQKp4EpZEZTkwuy7h6HFk/qCaWx5lhyhLEK8RhXlk7D2MLx4AYW7bQAVslm0jGZfYcDcHX91VoIh9Z53kU8ZAHjQW5+l56RQHmLGZoN7LcTKZBB12Xt2y/eMxnW+UJ5cLSTvsUiviO9tb6vE/Go02w==;5:mmiYE3UNXQMOix/fOpoiTizo7sjioe5XqVXcNEk2t4MBJCE/wT1uOyYcr9A7rpVaEpU8N3FAglDea7PtzWxPoPu0bcCv7dk76V72tj2SjL1KZ0Dk+a2uUPFnizfQIY9Aqo1VfY+mj4UsHqeMp4BVUw==;24:31siZ/dplAMASE11OhNvWHy8uQ1B0/4smqWS40GuoycN9KC1yeguB50BTxCYhz0yK6JO+0NNjhwrvt5v+s9eBcN79hP+fjC3iGx1CKxZvQg=;7:7F3hjXp2e0gRn0jebyk+szXH7stTdTTIJ+QxQFvgA/qFAnQ4xNB3tbeNHny9IG0st+HLhGcjZFLM2KvLzAQCkpP/ZFYAS1pNfu17sTbci42v3WIS+jOIc7v5/uvsiWIFwl/HVlAAan+7kZBy/VU3jq/Xo5kqgxUb6/K39DcAg7bIq3NHlI3z23qr0QDyNTh9IruPcHRxgdkLzuZs450aVzpjR4+eTQ/AM7Twj0Do8Ig= x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-correlation-id: 0b5e2479-3141-4679-65bc-08d4feb26cea x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(300000502095)(300135100095)(22001)(2017030254152)(300000503095)(300135400095)(2017052603199)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:BN6PR02MB3217; x-ms-traffictypediagnostic: BN6PR02MB3217: x-exchange-antispam-report-test: UriScan:(158342451672863); x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(100000703101)(100105400095)(10201501046)(93006095)(93001095)(3002001)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123558100)(20161123555025)(20161123564025)(20161123562025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:BN6PR02MB3217;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:BN6PR02MB3217; x-forefront-prvs: 04347F8039 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(346002)(376002)(39830400002)(189002)(377454003)(199003)(8936002)(2906002)(14454004)(6116002)(229853002)(50986999)(3846002)(105586002)(7696004)(8676002)(54356999)(102836003)(106356001)(6506006)(81156014)(189998001)(53936002)(9686003)(54896002)(55016002)(99286003)(76176999)(478600001)(6436002)(25786009)(101416001)(77096006)(3280700002)(81166006)(2950100002)(33656002)(7736002)(68736007)(5660300001)(74316002)(97736004)(3660700001)(6246003)(66066001)(2900100001)(86362001)(316002)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:BN6PR02MB3217;H:BN6PR02MB3234.namprd02.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; received-spf: None (protection.outlook.com: zend.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: multipart/alternative; boundary="_000_BN6PR02MB32348C7B74B6388D27561268BF630BN6PR02MB3234namp_" MIME-Version: 1.0 X-OriginatorOrg: zend.com X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Sep 2017 16:29:24.7892 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 32210298-c08b-4829-8097-6b12c025a892 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR02MB3217 Subject: Re: [PHP-DEV] PCRE JIT broken in PHP 7.2 From: dmitry@zend.com (Dmitry Stogov) --_000_BN6PR02MB32348C7B74B6388D27561268BF630BN6PR02MB3234namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable The problem may be caused by "incorrect" dynamic linking to different libpc= re instances. e.g one libbcre is use by Apache or some Apache module and another is embed= ded into PHP. The backtrace would be useful, to prove this guess. Thanks. Dmitry. ________________________________ From: giovanni.g@gmail.com on behalf of Giovanni Gia= cobbi Sent: Monday, September 18, 2017 2:28:35 PM To: PHP Internals List Subject: [PHP-DEV] PCRE JIT broken in PHP 7.2 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=3D/usr/local/apache2/bin/apxs \ --with-fpm-user=3Dhttpd \ --with-fpm-group=3Dhttpd \ --disable-cgi \ --enable-intl \ --with-layout=3DGNU \ --enable-maintainer-zts \ --with-gettext=3Dstatic \ --with-iconv \ --with-mysqli=3Dmysqlnd \ --enable-exif \ --with-openssl \ --with-curl The effect i observed is the following: var_dump(preg_match('/^a/', "a")); =3D> int(0) var_dump(preg_match('/a/', "a")); =3D> segmentation fault If you need any further information let me know. Kind regards -- Giovanni Giacobbi --_000_BN6PR02MB32348C7B74B6388D27561268BF630BN6PR02MB3234namp_--