ID:               47799
 Comment by:       amr dot mostafa at gmail dot com
 Reported By:      mb at insidetheweb dot de
 Status:           No Feedback
 Bug Type:         PCRE related
 Operating System: *
 PHP Version:      5.2.9
 New Comment:

I've created a script to reproduce this. I was able to reproduce it on
*some* systems (Ubuntu 9.04) using PHP 5.2.10, 5.2.11 and 5.3.0 (using
vanilla PHP downloaded from php.net).

I've also tried compiling PHP 5.3.0 against vanilla PCRE 7.9 (using
--with-pcre-regex) but that didn't make any difference.

However, I cannot reproduce this issue on CentOS 5.3 and 4.6 with PHP
5.2.9 and 5.2.10 from Oracle RPMs.

Script:

http://gist.github.com/212434 (download directly:
http://gist.github.com/raw/212434/6cf1720cbac05340a5cb2a5c6431b2a4f6024e0d/pcre%20segfault)


Previous Comments:
------------------------------------------------------------------------

[2009-04-07 01:00:00] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".

------------------------------------------------------------------------

[2009-03-30 18:06:07] j...@php.net

You would find out how to generate the backtrace if you bother 
reading the document in the link provided. And you don't need to do 
it in web server, CLI is fine too.

------------------------------------------------------------------------

[2009-03-28 01:29:37] mb at insidetheweb dot de

Sorry, no clue how to get a backtrace on a running system.

This httpd -X does not work. Not even mod_backtrace.

Simply

Download the Text_Wiki with Mediawiki and parse some large Table. You
get the error then yourself. I really doubt its system related.

------------------------------------------------------------------------

[2009-03-27 16:16:34] fel...@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.



------------------------------------------------------------------------

[2009-03-27 01:09:11] mb at insidetheweb dot de

Description:
------------
When i do this Regex 

#^\{\|(.*?)(?:^\|\+(.*?))?(^(?:((?R))|.)*?)^\|}#msi

on larger requests, it causes a seqfault.

You just need to be some chars above some kind of limit and you got the
error.



Reproduce code:
---------------
http://cvs.php.net/viewvc.cgi/pear/Text_Wiki/Text/Wiki/Parse/Mediawiki/Table.php?revision=1.11&view=markup

Its Text_Wiki_Mediawiki.

Expected result:
----------------
HTTPD Seqfault



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=47799&edit=1

Reply via email to