Bug #71499 [NEW]: preg_match Segmentation fault

From: Date: Tue, 02 Feb 2016 19:29:31 +0000
Subject: Bug #71499 [NEW]: preg_match Segmentation fault
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-199006@lists.php.net to get a copy of this message
From:             messiah at nline dot net dot ua
Operating system: Linux Debian 8
PHP version:      7.0.2
Package:          PCRE related
Bug Type:         Bug
Bug description:preg_match Segmentation fault

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 bug report at https://bugs.php.net/bug.php?id=71499&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=71499&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=71499&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=71499&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=71499&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=71499&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=71499&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=71499&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=71499&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=71499&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=71499&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=71499&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=71499&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=71499&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=71499&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=71499&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=71499&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=71499&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=71499&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=71499&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=71499&r=mysqlcfg



Thread (4 messages)

« previous php.bugs (#199006) next »