ID: 48153
Updated by: jani@php.net
Reported By: raul dot gigea at directmedia dot de
-Status: Open
+Status: Bogus
Bug Type: PCRE related
Operating System: FreeBSD 7.1-RELEASE-p4
PHP Version: 5.2CVS-2009-05-06 (snap)
Assigned To: fb-req-jani
New Comment:
You either have to increase the stack size or tune pcre.recursion_limit
and pcre.backtrack_limit properly.
Previous Comments:
------------------------------------------------------------------------
[2009-05-06 21:11:12] raul dot gigea at directmedia dot de
I already wrote that my stacksize was 64 MB. ulimit -s 1024 would
reduce it to only 1 MB. 64MB is the upper limit without recompiling
the kernel. And i don't think that this specific regex should eat up
64 MB of stack size ...
Anyway, here's the result:
% ulimit -s 1024
% ulimit -s
1024
% ./sapi/cli/php ~/test.php
zsh: segmentation fault (core dumped) ./sapi/cli/php ~/test.php
% ulimit -s 65535
% ulimit -s
65535
% ./sapi/cli/php ~/test.php
zsh: segmentation fault (core dumped) ./sapi/cli/php ~/test.php
% ulimit -s 65537
ulimit: value exceeds hard limit
------------------------------------------------------------------------
[2009-05-06 20:53:44] jani@php.net
You need to increase the stack size. I tried with 'ulimit -s 1024' and
that does not crash..
------------------------------------------------------------------------
[2009-05-06 20:44:58] raul dot gigea at directmedia dot de
Ok, i tried using the CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
Which by the way was only 1 day newer than the one I tried.
I used your configure line:
'configure' \
'--disable-all' \
'--enable-debug' \
'--disable-reflection' \
'--disable-cgi' \
'--with-curl' \
'--with-curlwrappers' \
'--with-pcre-regex' \
'--with-mhash'
And its still segfaulting
------------------------------------------------------------------------
[2009-05-06 18:37:28] jani@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
I can not reproduce this with linux and latest PHP_5_2 snapshot using
this configure line:
'/usr/src/php-5.2CVS/configure' \
'--disable-all' \
'--enable-debug' \
'--disable-reflection' \
'--disable-cgi' \
'--with-curl' \
'--with-curlwrappers' \
'--with-pcre-regex' \
'--with-mhash'
------------------------------------------------------------------------
[2009-05-05 18:36:26] fa@php.net
verified with FreeBSD 7.1-RELEASE-p4 and current snapshot:
"Segmentation fault: 11 (core dumped)"
Although I didn't examine the coredump in detail
HEAD works fine
------------------------------------------------------------------------
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/48153--
Edit this bug report at http://bugs.php.net/?id=48153&edit=1