Bug #41796 [Com]: preg_match segmentation fault
Edit report at http://bugs.php.net/bug.php?id=41796&edit=1
ID: 41796
Comment by: ronaldpringadi at gmail dot com
Reported by: iamsoordinary at gmail dot com
Summary: preg_match segmentation fault
Status: Closed
Type: Bug
Package: PCRE related
Operating System: Linux
PHP Version: 5.2.3
Block user comment: N
Private report: N
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[2007-06-25 17:05:23] 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.
------------------------------------------------------------------------
[2007-06-25 17:03:47] sniper@php.net
Yes it will. There were some issues in the previous PCRE libs,
apparently this was one of them.
------------------------------------------------------------------------
[2007-06-25 16:58:34] 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 16:36:44] 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 09:10:00] 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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=41796&edit=1
Thread (2 messages)