#47799 [Fbk->Opn]: Segfault with Regex

[email protected] ("mb at insidetheweb dot de")
Newsgroups php.bugs
Message-ID <[email protected]>
 ID:              47799
 User updated by: mb at insidetheweb dot de
 Reported By:     mb at insidetheweb dot de
-Status:          Feedback
+Status:          Open
 Bug Type:        PCRE related
 PHP Version:     5.2.9
 New Comment:

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.


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

[2009-03-27 16:16:34] [email protected]

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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.