|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2007-02-25 03:04 UTC] test_junk at hotmail dot it
Description:
------------
Recent update to php 4.4.5 broke PCRE regex support.
The issue showed up upgrading to 4.4.5 installed as apache module (1.3.37 both on 2.4 and 2.6 kernels) and was resolved downgrading back to 4.4.4
I could trigger a segfault with several applications but I was not able to detect the chunk of php code responsible of it.
Actual result:
--------------
segfault...
#0 match (eptr=0x0, ecode=0x0, offset_top=0, md=0x0, ims=0, eptrb=0x0, flags=0, rdepth=0)
at /sources/php-4.4.5/ext/pcre/pcrelib/pcre_exec.c:517
Cannot access memory at address 0xbf7fff30
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 21 17:00:01 2025 UTC |
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 0xbf7ffff0Hello, I have the same problem with PHP 4.4.7 [Thread debugging using libthread_db enabled] [New Thread -1218357568 (LWP 2423)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1218357568 (LWP 2423)] match ( eptr=0x89ea7f8 "Ingredi?nten<p> een kloeke braadkip, ca. 2 Kg, bv. eentje uit de Landes<p> 4 sjalotten<p> 100 g chocolade, extra donkere bv. Cote (...)", ecode=0x897ed4a "Y", offset_top=4, md=0xbfdc2a10, ims=0, eptrb=0x0, flags=0, rdepth=5704) at /usr/src/php-4.4.7/ext/pcre/pcrelib/pcre_exec.c:517 517 prop_value = 0; (gdb) quit This wasn't with 4.4.4 but i have also updated my distribution to the latest debian stable version (etch)I have this with the latest 5.5.2: [Switching to Thread -1216501536 (LWP 2903)] 0x080b11b4 in match (eptr=<value optimized out>, ecode=<value optimized out>, offset_top=<value optimized out>, md=0xbfb4329c, ims=0, eptrb=0x0, flags=0, rdepth=11068) at /usr/src/php-5.2.2/ext/pcre/pcrelib/pcre_exec.c:629 629 RMATCH(rrc, eptr, ecode + _pcre_OP_lengths[*ecode], offset_top, md, Regards, Tom