#40624 [Opn->Fbk]: pcrelib broken with php 4.4.5
| From: | tony2001@php.net | Date: | Wed, 28 Feb 2007 12:03:07 +0000 |
| Subject: | #40624 [Opn->Fbk]: pcrelib broken with php 4.4.5 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-109702@lists.php.net to get a copy of this message | ||
ID: 40624
Updated by: tony2001@php.net
Reported By: test_junk at hotmail dot it
-Status: Open
+Status: Feedback
Bug Type: PCRE related
Operating System: linux 2.4 i386
PHP Version: 4.4.5
Previous Comments:
------------------------------------------------------------------------
[2007-02-28 11:49:42] test_junk at hotmail dot it
I downgraded the PCRE lib to the 6.6 release, the one shipped with php
4.4.4 and the problem appears to be resolved.
It's indeed a PCRE issue, I hope they will fix it in the future
releases.
------------------------------------------------------------------------
[2007-02-28 08:01:11] tony2001@php.net
>Is this issue going to be fixed in the next release?
We got a workaround for it in PHP5, but we're not going to add it to
PHP4, so you have to upgrade your PHP first.
This issue (if it's really what it seems to be) is actually not PHP
problem, but a well-known PCRE issue.
Though, I wouldn't be 100% sure without a test-case.
------------------------------------------------------------------------
[2007-02-28 07:07:52] test_junk at hotmail dot it
Is this issue going to be fixed in the next release? Unfortunately it
breaks lots of things, including very popular apps. I will try to do my
best in finding the responsible php code but I'm not sure it will be
possibile.
Thanks for your interest in this matter.
------------------------------------------------------------------------
[2007-02-28 00:13:38] tony2001@php.net
Yup, it does look like a stack overflow (which is a known issue in
PCRE), though we would appreciate a test case anyway.
------------------------------------------------------------------------
[2007-02-27 23:39:19] test_junk at hotmail dot it
I couldn't isolate the code yet. However the full backtrace is the
following (I ran the same app twice):
1st time:
#0 0x081851f2 in match (eptr=0x61737361 <Address 0x61737361 out of
bounds>,
ecode=0x2c69746c <Address 0x2c69746c out of bounds>,
offset_top=1919250464, md=0x7474656d,
ims=1868852837, eptrb=0x736f6320, flags=1629531331,
rdepth=1702192160)
at /sources/php/php-4.4.6/ext/pcre/pcrelib/pcre_exec.c:2209
#1 0x00000000 in ?? ()
2nd time:
#0 0x0818257f in match (eptr=0x61737361 <Address 0x61737361 out of
bounds>,
ecode=0x2c69746c <Address 0x2c69746c out of bounds>,
offset_top=1919250464, md=0x7474656d,
ims=1868852837, eptrb=0x736f6320, flags=1629531331,
rdepth=1702192160)
at /sources/php/php-4.4.6/ext/pcre/pcrelib/pcre_exec.c:1071
Cannot access memory at address 0xbf7ffff0
------------------------------------------------------------------------
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/40624
--
Edit this bug report at http://bugs.php.net/?id=40624&edit=1