#28461 [Opn->Fbk]: segmentation fault when using backreferences on a long string

From: Date: Sun, 20 Nov 2005 18:22:56 +0000
Subject: #28461 [Opn->Fbk]: segmentation fault when using backreferences on a long string
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-88586@lists.php.net to get a copy of this message
ID: 28461 Updated by: sniper@php.net Reported By: xanthor at xanthor dot tk -Status: Open +Status: Feedback Bug Type: PCRE related Operating System: * PHP Version: 4.4.1 Assigned To: andrei New Comment: It's not really useful since it doesn't exist. Try again.. Previous Comments: ------------------------------------------------------------------------ [2005-11-19 17:07:20] xanthor at xanthor dot tk Here is the bactrace : http://rafb.net/paste/results/221Dcs52.html I don't know if this will be usefull :¬/ ------------------------------------------------------------------------ [2005-11-16 10:21:24] tony2001@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 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. ------------------------------------------------------------------------ [2005-11-16 04:48:51] xanthor at xanthor dot tk Still crashes with 4.4.1, increasing the length of the string. ------------------------------------------------------------------------ [2005-06-22 21:51:39] tony2001@php.net Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip Can't reproduce with latest PHP4 and PHP5 snapshots (PCRE was upgraded to 5.0, this might have fixed it). ------------------------------------------------------------------------ [2004-12-09 14:57:59] jorton@php.net This is the standard "PCRE uses on-stack recursion" bug which has been filed and closed umpteen times. To reproduce just increase the length of the string until exhausts your stack space. One way PHP could mitigate the issue is to to set the match_limit field in the pcre_extra structure which puts a limit on the depth of the stack recursion. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/28461 -- Edit this bug report at http://bugs.php.net/?id=28461&edit=1

« previous php.bugs (#88586) next »