Bug #75125 [Fbk->NoF]: Segmentation fault (11) using preg_match

From: Date: Sun, 05 Nov 2017 04:22:49 +0000
Subject: Bug #75125 [Fbk->NoF]: Segmentation fault (11) using preg_match
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-212456@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=75125&edit=1 ID: 75125 Updated by: php-bugs@lists.php.net Reported by: tobias at bambullis dot de Summary: Segmentation fault (11) using preg_match -Status: Feedback +Status: No Feedback Type: Bug Package: PCRE related Operating System: Debian GNU/Linux 9 \n \l PHP Version: 7.2.0beta3 Private report: N New Comment: No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Re-Opened". Thank you. Previous Comments: ------------------------------------------------------------------------ [2017-08-27 15:52:50] requinix@php.net Thank you for this bug report. To properly diagnose the problem, we need a backtrace to see what is happening behind the scenes. To find out how to generate a backtrace, please read http://bugs.php.net/bugs-generating-backtrace.php for *NIX and http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32 Once you have generated a backtrace, please submit it to this bug report and change the status back to "Open". Thank you for helping us make PHP better. ------------------------------------------------------------------------ [2017-08-27 15:44:08] tobias at bambullis dot de Description: ------------ I am using this pcre version: pcre PCRE (Perl Compatible Regular Expressions) Support enabled PCRE Library Version 8.41 2017-07-05 PCRE JIT Support enabled Directive Local Value Master Value pcre.backtrack_limit 1000000 1000000 pcre.recursion_limit 100000 100000 pcre.jit 1 1 when i am using the function preg_match it comes an error 500. Log file output: [Sun Aug 27 15:20:43.965309 2017] [core:notice] [pid 32606:tid 139736805609088] AH00052: child pid 27928 exit signal Segmentation fault (11) here is my configure line: ./configure --enable-maintainer-zts --with-apxs2=/usr/local/apache2/bin/apxs --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-gd --with-curl --enable-cli --with-openssl --enable-soap --with-pear --with-config-file-path=/usr/local/lib --enable-mbstring --with-zlib --with-jpeg-dir=/usr --enable-zip I installed pthreads (but if i exclude this from php.ini, the failure happens again) Also I switched the session path to /tmp. The rest of my php.ini is default. Test script: --------------- $u_agent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36"; if(preg_match('/MSIE/i',$u_agent)) { // here the error occurs echo "ie"; } ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=75125&edit=1

« previous php.bugs (#212456) next »