Edit report at http://bugs.php.net/bug.php?id=45546&edit=1

 ID:                 45546
 Comment by:         sergio at gruposinternet dot com dot br
 Reported by:        kaiser at macbureau dot de
 Summary:            PCRE with utf8 kill apache childprocess
 Status:             No Feedback
 Type:               Bug
 Package:            PCRE related
 Operating System:   FreeBSD 7
 PHP Version:        5.2.6
 Block user comment: N

 New Comment:

Still broken.



FreeBSD: 7.2-RELEASE

Apache: 2.2.15

PHP version: 5.2.14 (without Suhosin patch)

PCRE Library Version => 7.9 2009-04-11



>From dmesg:

pid 61580 (httpd), uid 80: exited on signal 4


Previous Comments:
------------------------------------------------------------------------
[2010-06-04 18:56:30] martin at veverka dot eu

Hi. Still broken.



from Apache error log:

[notice] child pid 43125 exit signal Illegal instruction (4)



FreeBSD 8.0

Apache/2.2.15

PHP 5.3.2 with Suhosin-Patch

PCRE Library Version => 8.02 2010-03-19

------------------------------------------------------------------------
[2009-09-18 19:57:50] chris at smartt dot com

Still happening on FreeBSD 7.2 and PHP 5.2.9 with Suhosin-Patch 0.9.7
(cli) (built: May 11 2009 22:23:18)





#1860 0x28cdcad1 in match () from /usr/local/lib/libpcre.so.0

#1861 0x28cde851 in match () from /usr/local/lib/libpcre.so.0

#1862 0x28ce6ad7 in pcre_exec () from /usr/local/lib/libpcre.so.0

#1863 0x28cc931b in php_pcre_match_impl () from
/usr/local/lib/php/20060613/pcre.so

#1864 0x28cc9de0 in php_do_pcre_match () from
/usr/local/lib/php/20060613/pcre.so

#1865 0x0815c7bd in execute_internal ()

#1866 0x285d16e0 in suhosin_execute_internal () from
/usr/local/lib/php/20060613/suhosin.so

#1867 0x081695db in zend_do_fcall_common_helper_SPEC ()

#1868 0x0815d961 in execute ()

#1869 0x287810c2 in _su3jdmx () from
/usr/local/lib/php/20060613/ioncube_loader_fre_5.2.so

#1870 0x2912ef9c in ?? ()

#1871 0x00000000 in ?? ()

#1872 0x285dc780 in __JCR_LIST__ () from
/usr/local/lib/php/20060613/suhosin.so

#1873 0x285d1c55 in suhosin_execute_ex () from
/usr/local/lib/php/20060613/suhosin.so

------------------------------------------------------------------------
[2009-06-10 18:06:00] bob at veznat dot com

This is still broken. FreeBSD 7.1 and PHP 5.2.9. It seems that the 

original bug filer has provided plenty of repro. If that is not the case


I'd be happy to go through the process of digging up all I can from my 

machine.

------------------------------------------------------------------------
[2009-02-26 01:30:01] joe at lastpass dot com

Happens at somewhere between 3500 and 6400 characters on every Linux
platform I have access to (x86 and x86_64): 



PHP 5.2.6-3ubuntu2 with Suhosin-Patch 0.9.6.2 (cli) (built: Feb 13 2009
20:07:08)



PHP 5.2.6-2ubuntu4.1 with Suhosin-Patch 0.9.6.2 (cli) (built: Feb 11
2009 20:44:58) 



PHP 5.2.4-2ubuntu5.5 with Suhosin-Patch 0.9.6.2 (cli) (built: Feb 11
2009 20:09:11) 



PHP 5.2.6-3ubuntu2 with Suhosin-Patch 0.9.6.2 (cli) (built: Feb 13 2009
20:20:01)

------------------------------------------------------------------------
[2009-02-08 11:55:20] vanav at vanav dot com dot ua

Two gdb examples:



gdb66: Program received signal SIGSEGV, Segmentation fault.

match (

    eptr=0x29385a68 "3'\";\n$select[] = \"SELECT p1.id, nick,
p1.creation_date, p1.modification_date, p1.post_title, p1.post_text,
p1.parent_post_id, p2.post_title AS parent_post_title, p3.post_title AS
answer_parent_post_ti"..., ecode=0x28f160ed "\034\"T", 

    mstart=0x293854bc "<?php\n$select = array();\n$select[] = \"SELECT
uni_files.id, name, disk_filename, icon, size FROM uni_files INNER JOIN
uni_filetypes ON uni_files.filetype_id=uni_filetypes.id WHERE
post_id='167' AND blo"..., offset_top=4, md=0xbfbef000, ims=6,
eptrb=0x0, flags=0, 

    rdepth=1362) at
/usr/ports/lang/php5/work/php-5.2.8/ext/pcre/pcrelib/pcre_exec.c:580

580     prop_value = 0;



and



0x2863b28a in match (

    eptr=0x2940b64f "?&#1072;&#1052;202&#1052;214,
&#1076;&#1072;&#1078;&#1077;
&#1052;201&#1052;200&#1077;&#1076;&#1085;&#1077;&#1084;&#1052;203
&#1082;&#1083;&#1072;&#1052;201&#1052;201&#1052;203>, ?00\223
&#1079;&#1072;&#1052;217&#1074;&#1080;&#1083;
?232&#1052;203&#1085;&#1080;&#1052;206&#1052;213&#1085;.  
&#1076;&#1072;&#1078;&#1077;
&#1052;201&#1052;200&#1077;&#1076;&#1085;&#1077;&#1084;&#1052;203
&#1082;&#1083;&#1072;&#1052;201&#1052;201&#1052;203>, ?00\223
&#1079;&#1072;&#1052;217&#1074;&#1080;&#1083;
?232&#1052;203&#1085;&#1080;&#1052;206&#1052;213&#1085;. 
</p><p><?222&#1052;213 &#1079;&#1085;&#1072;&#1077;&#1052;202&#1077;,
&#1052;207&#1052;202&#1086; ?..., ecode=0x28ef03bb "\034'U", 

    mstart=0x2940b398 "'<p>?237&#1086;
&#1084;&#1085;&#1077;&#1085;&#1080;&#1052;216
?232&#1052;203&#1085;&#1080;&#1052;206&#1052;213&#1085;&#1072;,
&#1082;&#1052;200&#1052;213&#1084;&#1052;201&#1082;&#1080;&#1077;
&#1074;&#1083;&#1072;&#1052;201&#1052;202&#1080;
&#1076;&#1086;&#1083;&#1078;&#1085;&#1052;213
&#1076;&#1072;&#1052;202&#1052;214
&#1074;&#1086;&#1079;&#1084;&#1086;&#1078;&#1085;&#1086;&#1052;201&#1052;202&#1052;214
&#1052;201&#1052;200&#1077;&#1076;&#1085;&#1077;&#1084;&#1052;203
&#1082;&#1083;&#1072;&#1052;201&#1052;201&#1052;203
&#1082;&#1072;&#1087;&#1080;&#1052;202&#1072;&#1083;&#1080;&#1079;&#1080;&#1052;200&#1086;&#1074;&#1072;&#1052;202&#1052;214
&#1080;&#1052;205
&#1052;201&#1073;&#1077;&#1052;200&#1077;&#1078;&#1077;&#1085;?...,
offset_top=4, md=0xbfbf89d0, ims=0, eptrb=0xbfa006a0, flags=2,
rdepth=1388)

    at
/usr/ports/lang/php5/work/php-5.2.8/ext/pcre/pcrelib/pcre_exec.c:2160

2160    /usr/ports/lang/php5/work/php-5.2.8/ext/pcre/pcrelib/pcre_exec.c:
No such file or directory.

        in /usr/ports/lang/php5/work/php-5.2.8/ext/pcre/pcrelib/pcre_exec.c

------------------------------------------------------------------------


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/bug.php?id=45546


-- 
Edit this bug report at http://bugs.php.net/bug.php?id=45546&edit=1

Reply via email to