Bug #55035 [Opn->Bgs]: pcre_exec() deadlock causing Segmentation fault (11)

From: Date: Sat, 11 Jun 2011 14:52:20 +0000
Subject: Bug #55035 [Opn->Bgs]: pcre_exec() deadlock causing Segmentation fault (11)
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-161310@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=55035&edit=1 ID: 55035 Updated by: felipe@php.net Reported by: jimmy dot axenhus at gmail dot com Summary: pcre_exec() deadlock causing Segmentation fault (11) -Status: Open +Status: Bogus Type: Bug Package: PCRE related Operating System: Ubuntu 11.04 and Trisquel 4.5 PHP Version: 5.3.6 Block user comment: N Private report: N New Comment: Try setting a bigger pcre.backtrack_limit and pcre.recursion_limit. See http://docs.php.net/manual/en/pcre.configuration.php Previous Comments: ------------------------------------------------------------------------ [2011-06-11 15:52:43] jimmy dot axenhus at gmail dot com Description: ------------ It appears that PHP can deadlock in pcre_exec(), repeatingly calling a function(itself?). Was converting a vBulletin forum to phpBB, therefore might be hard to reproduce. Despite that I managed to reproduce it on three different computers. I spent several hours debugging this, and will dig deeper into the code that caused this problem to find the specific string causing this. Expect more debug data soon. Test script: --------------- phpBB 3.0.8, converting from vBulletin 3.8.x, with code attached to http://www.phpbb.com/community/viewtopic.php?f=65&t=1722325#p10391895 You also need a database to convert. Expected result: ---------------- Normal phpBB progress when converting (php deliving an HTML page) Actual result: -------------- PHP delivered a blank php script file to the browser and apache logged a segfault (11). After a very long session trying to debug this I finally managed to generate a stacktrace with gdb. The resource below will be accessible as long as this bug is unresolved. http://jimmy.axenhus.com/gdb.txt ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=55035&edit=1

« previous php.bugs (#161310) next »