php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #41796 preg_match segmentation fault
Submitted: 2007-06-25 09:10 UTC Modified: 2007-06-25 17:05 UTC
From: iamsoordinary at gmail dot com Assigned:
Status: Closed Package: PCRE related
PHP Version: 5.2.3 OS: Linux
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: iamsoordinary at gmail dot com
New email:
PHP Version: OS:

 

 [2007-06-25 09:10 UTC] iamsoordinary at gmail dot com
Description:
------------
Using the preg_match function (as used in the textilePHP class available at http://jimandlissa.com/project/textilephp) causes a segmentation fault in PHP. This worked fine until version 5.2.0.

Reproduce code:
---------------
http://www.irede.com/zero/php_crash.txt

Expected result:
----------------
No segmentation fault

Actual result:
--------------
Segmentation fault

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-06-25 16:36 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows (zip):
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip

For Windows (installer):

  http://snaps.php.net/win32/php5.2-win32-installer-latest.msi

The bundled PCRE library is upgraded to 7.2 in CVS, perhaps it fixes this issue too. (assuming you are using the bundled library..)

 [2007-06-25 16:58 UTC] iamsoordinary at gmail dot com
Thanks for your reply.

I'm using the bundled PCRE library. I've just tried the development snapshot and the problem is gone. :)

By the way, will this fix be in the next release?
 [2007-06-25 17:03 UTC] sniper@php.net
Yes it will. There were some issues in the previous PCRE libs, apparently this was one of them.
 [2007-06-25 17:05 UTC] tony2001@php.net
>I've just tried the development snapshot and the problem is gone. :)
Great, thanks!

>By the way, will this fix be in the next release?
Sure, development versions eventually become releases.
 [2011-01-28 04:41 UTC] ronaldpringadi at gmail dot com
Hi, I'm having the same problem. 
Php CLI exits abruptly and prints segmentation fault (core dump).
I'm also working under a Ubuntu server 8.04.4 LTS - Hardy
Can you tell me more on how to install or what to do with: http://snaps.php.net/php5.2-latest.tar.gz
I'm sort of new with PHP...
Thanks
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 16:01:28 2024 UTC