php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #71499 preg_match Segmentation fault
Submitted: 2016-02-02 19:29 UTC Modified: 2016-02-03 19:03 UTC
From: messiah at nline dot net dot ua Assigned:
Status: Not a bug Package: PCRE related
PHP Version: 7.0.2 OS: Linux Debian 8
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: messiah at nline dot net dot ua
New email:
PHP Version: OS:

 

 [2016-02-02 19:29 UTC] 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 ?? ()


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-02-02 20:02 UTC] requinix@php.net
-Status: Open +Status: Feedback
 [2016-02-02 20:02 UTC] 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.

https://3v4l.org/NAQS7 but no surprises there

Also make sure you don't have any Zend modules (zend_extension) loaded.
 [2016-02-02 21:31 UTC] messiah at nline dot net dot ua
-Status: Feedback +Status: Closed
 [2016-02-02 21:31 UTC] messiah at nline dot net dot ua
i've recompiled php 7.0.2 from original source and everything is fine, so it's something related to dotdeb build
 [2016-02-03 19:03 UTC] cmb@php.net
-Status: Closed +Status: Not a bug
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 01:01:28 2024 UTC