Bug #71499 [Opn->Fbk]: preg_match Segmentation fault
Edit report at https://bugs.php.net/bug.php?id=71499&edit=1
ID: 71499
Updated by: requinix@php.net
Reported by: messiah at nline dot net dot ua
Summary: preg_match Segmentation fault
-Status: Open
+Status: Feedback
Type: Bug
Package: PCRE related
Operating System: Linux Debian 8
PHP Version: 7.0.2
Block user comment: N
Private report: N
New Comment:
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.
https://3v4l.org/NAQS7 but no surprises there
Also make sure you don't have any Zend modules (zend_extension) loaded.
Previous Comments:
------------------------------------------------------------------------
[2016-02-02 19:29:30] messiah at nline dot net dot ua
Description:
------------
version: PHP 7.0.2-1~dotdeb+8.2 (cli) ( NTS )
default setup with some modules, nothing special or unique related to pcre
Test script:
---------------
<?php
preg_match('/\.((tar\.(gz|bz|bz2|z|lzo))|cpio\.gz|ps\.gz|xcf\.(gz|bz2)|[a-z0-9]{1,4})$/i',
'php.php.tar', $m);
Expected result:
----------------
no segfault
Actual result:
--------------
Core was generated by `php7.0 test.php'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007f705709a356 in ?? ()
(gdb) bt
#0 0x00007f705709a356 in ?? ()
#1 0x0000000000000000 in ?? ()
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=71499&edit=1
Thread (4 messages)