php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #64125 Segfault on large strings
Submitted: 2013-02-01 14:04 UTC Modified: 2016-03-25 11:03 UTC
From: robs at codexsoftware dot co dot uk Assigned:
Status: Not a bug Package: PCRE related
PHP Version: 5.4.11 OS: Debian Squeeze AMD64
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: robs at codexsoftware dot co dot uk
New email:
PHP Version: OS:

 

 [2013-02-01 14:04 UTC] robs at codexsoftware dot co dot uk
Description:
------------
PHP Version: PHP 5.4.11-1~dotdeb.0 (cli) (built: Jan 24 2013 15:04:58) 

match causes a segfault when processing large strings.  Increasing the stack size 
from the default of 8192 to 16384 allows me to circumvent the problem.

dpkg -l 'php*' | grep '^.i':

ii  php-pear                                5.4.7-1~dotdeb.0             PEAR - 
PHP Extension and Application Repository
ii  php5-apc                                5.4.11-1~dotdeb.0            apc 
module for php5
ii  php5-cgi                                5.4.11-1~dotdeb.0            server-
side, HTML-embedded scripting language (CGI binary)
ii  php5-cli                                5.4.11-1~dotdeb.0            command-
line interpreter for the php5 scripting language
ii  php5-common                             5.4.11-1~dotdeb.0            Common 
files for packages built from the php5 source
ii  php5-curl                               5.4.11-1~dotdeb.0            CURL 
module for php5
ii  php5-dbg                                5.4.11-1~dotdeb.0            Debug 
symbols for PHP5
ii  php5-dev                                5.4.7-1~dotdeb.0             Files for 
PHP5 module development
ii  php5-fpm                                5.4.11-1~dotdeb.0            server-
side, HTML-embedded scripting language (FPM-CGI binary)
ii  php5-gd                                 5.4.11-1~dotdeb.0            GD module 
for php5
ii  php5-mcrypt                             5.4.11-1~dotdeb.0            MCrypt 
module for php5
ii  php5-memcached                          5.4.11-1~dotdeb.0            memcached 
module for php5
ii  php5-mysql                              5.4.11-1~dotdeb.0            MySQL 
module for php5
ii  phpmyadmin                              4:3.3.7-7                    MySQL web 
administration tool

Actual result:
--------------
#0  match (eptr=0x3a6344c "rum Dx3E  <br />\n<br />\nBattery", ' ' <repeats 50 
times>, "7.4v 2200mah 2S Lipo pack", ' ' <repeats 11 times>, "<br />\n<br 
/>\nCharger", ' ' <repeats 50 times>, "Charger 1.8A"..., ecode=0x25ba736 "\177", 
mstart=Cannot access memory at address 0x7fff90141f08
) at /usr/src/php5.4/source/php5-5.4.11/ext/pcre/pcrelib/pcre_exec.c:482
#1  0x000000000048e2ee in match (eptr=0x3a6344c "rum Dx3E  <br />\n<br 
/>\nBattery", ' ' <repeats 50 times>, "7.4v 2200mah 2S Lipo pack", ' ' <repeats 11 
times>, "<br />\n<br />\nCharger", ' ' <repeats 50 times>, "Charger 1.8A"..., 
ecode=0x25ba74b "s", mstart=0x0, offset_top=4, md=0x7fff9093ce60, eptrb=0x0, 
    rdepth=4732265) at /usr/src/php5.4/source/php5-
5.4.11/ext/pcre/pcrelib/pcre_exec.c:2017
#2  0x0000000000483569 in match (eptr=0x3a6344b "trum Dx3E  <br />\n<br 
/>\nBattery", ' ' <repeats 50 times>, "7.4v 2200mah 2S Lipo pack", ' ' <repeats 11 
times>, "<br />\n<br />\nCharger", ' ' <repeats 50 times>, "Charger 1.8"..., 
ecode=0x25ba746 "q", mstart=0x0, offset_top=4, md=0x7fff9093ce60, eptrb=0x0, 
    rdepth=4776686) at /usr/src/php5.4/source/php5-
5.4.11/ext/pcre/pcrelib/pcre_exec.c:955
#3  0x000000000048e2ee in match (eptr=0x3a6344b "trum Dx3E  <br />\n<br 
/>\nBattery", ' ' <repeats 50 times>, "7.4v 2200mah 2S Lipo pack", ' ' <repeats 11 
times>, "<br />\n<br />\nCharger", ' ' <repeats 50 times>, "Charger 1.8"..., 
ecode=0x25ba74b "s", mstart=0x0, offset_top=4, md=0x7fff9093ce60, eptrb=0x0, 
    rdepth=4732265) at /usr/src/php5.4/source/php5-
5.4.11/ext/pcre/pcrelib/pcre_exec.c:2017
#4  0x0000000000483569 in match (eptr=0x3a6344a "ktrum Dx3E  <br />\n<br 
/>\nBattery", ' ' <repeats 50 times>, "7.4v 2200mah 2S Lipo pack", ' ' <repeats 11 
times>, "<br />\n<br />\nCharger", ' ' <repeats 50 times>, "Charger 1."..., 
ecode=0x25ba746 "q", mstart=0x0, offset_top=4, md=0x7fff9093ce60, eptrb=0x0, 
    rdepth=4776686) at /usr/src/php5.4/source/php5-
5.4.11/ext/pcre/pcrelib/pcre_exec.c:955
#5  0x000000000048e2ee in match (eptr=0x3a6344a "ktrum Dx3E  <br />\n<br 
/>\nBattery", ' ' <repeats 50 times>, "7.4v 2200mah 2S Lipo pack", ' ' <repeats 11 
times>, "<br />\n<br />\nCharger", ' ' <repeats 50 times>, "Charger 1."..., 
ecode=0x25ba74b "s", mstart=0x0, offset_top=4, md=0x7fff9093ce60, eptrb=0x0, 
    rdepth=4732265) at /usr/src/php5.4/source/php5-
5.4.11/ext/pcre/pcrelib/pcre_exec.c:2017
#6  0x0000000000483569 in match (eptr=0x3a63449 "ektrum Dx3E  <br />\n<br 
/>\nBattery", ' ' <repeats 50 times>, "7.4v 2200mah 2S Lipo pack", ' ' <repeats 11 
times>, "<br />\n<br />\nCharger", ' ' <repeats 50 times>, "Charger 1"..., 
ecode=0x25ba746 "q", mstart=0x0, offset_top=4, md=0x7fff9093ce60, eptrb=0x0, 
    rdepth=4776686) at /usr/src/php5.4/source/php5-
5.4.11/ext/pcre/pcrelib/pcre_exec.c:955
#7  0x000000000048e2ee in match (eptr=0x3a63449 "ektrum Dx3E  <br />\n<br 
/>\nBattery", ' ' <repeats 50 times>, "7.4v 2200mah 2S Lipo pack", ' ' <repeats 11 
times>, "<br />\n<br />\nCharger", ' ' <repeats 50 times>, "Charger 1"..., 
ecode=0x25ba74b "s", mstart=0x0, offset_top=4, md=0x7fff9093ce60, eptrb=0x0, 
    rdepth=4732265) at /usr/src/php5.4/source/php5-
5.4.11/ext/pcre/pcrelib/pcre_exec.c:2017
#8  0x0000000000483569 in match (eptr=0x3a63448 "pektrum Dx3E  <br />\n<br 
/>\nBattery", ' ' <repeats 50 times>, "7.4v 2200mah 2S Lipo pack", ' ' <repeats 11 
times>, "<br />\n<br />\nCharger", ' ' <repeats 50 times>, "Charger "..., 
ecode=0x25ba746 "q", mstart=0x0, offset_top=4, md=0x7fff9093ce60, eptrb=0x0, 
    rdepth=4776686) at /usr/src/php5.4/source/php5-
5.4.11/ext/pcre/pcrelib/pcre_exec.c:955
#9  0x000000000048e2ee in match (eptr=0x3a63448 "pektrum Dx3E  <br />\n<br 
/>\nBattery", ' ' <repeats 50 times>, "7.4v 2200mah 2S Lipo pack", ' ' <repeats 11 
times>, "<br />\n<br />\nCharger", ' ' <repeats 50 times>, "Charger "..., 
ecode=0x25ba74b "s", mstart=0x0, offset_top=4, md=0x7fff9093ce60, eptrb=0x0, 
    rdepth=4732265) at /usr/src/php5.4/source/php5-
5.4.11/ext/pcre/pcrelib/pcre_exec.c:2017
#10 0x0000000000483569 in match (eptr=0x3a63447 "Spektrum Dx3E  <br />\n<br 
/>\nBattery", ' ' <repeats 50 times>, "7.4v 2200mah 2S Lipo pack", ' ' <repeats 11 
times>, "<br />\n<br />\nCharger", ' ' <repeats 50 times>, "Charger"..., 
ecode=0x25ba746 "q", mstart=0x0, offset_top=4, md=0x7fff9093ce60, eptrb=0x0, 
    rdepth=4776686) at /usr/src/php5.4/source/php5-
5.4.11/ext/pcre/pcrelib/pcre_exec.c:955
#11 0x000000000048e2ee in match (eptr=0x3a63447 "Spektrum Dx3E  <br />\n<br 
/>\nBattery", ' ' <repeats 50 times>, "7.4v 2200mah 2S Lipo pack", ' ' <repeats 11 
times>, "<br />\n<br />\nCharger", ' ' <repeats 50 times>, "Charger"..., 
ecode=0x25ba74b "s", mstart=0x0, offset_top=4, md=0x7fff9093ce60, eptrb=0x0, 
    rdepth=4732265) at /usr/src/php5.4/source/php5-
5.4.11/ext/pcre/pcrelib/pcre_exec.c:2017
#12 0x0000000000483569 in match (eptr=0x3a63446 " Spektrum Dx3E  <br />\n<br 
/>\nBattery", ' ' <repeats 50 times>, "7.4v 2200mah 2S Lipo pack", ' ' <repeats 11 
times>, "<br />\n<br />\nCharger", ' ' <repeats 50 times>, "Charge"..., 
ecode=0x25ba746 "q", mstart=0x0, offset_top=4, md=0x7fff9093ce60, eptrb=0x0, 
    rdepth=4776686) at /usr/src/php5.4/source/php5-
5.4.11/ext/pcre/pcrelib/pcre_exec.c:955
#13 0x000000000048e2ee in match (eptr=0x3a63446 " Spektrum Dx3E  <br />\n<br 
/>\nBattery", ' ' <repeats 50 times>, "7.4v 2200mah 2S Lipo pack", ' ' <repeats 11 
times>, "<br />\n<br />\nCharger", ' ' <repeats 50 times>, "Charge"..., 
ecode=0x25ba74b "s", mstart=0x0, offset_top=4, md=0x7fff9093ce60, eptrb=0x0, 
    rdepth=4732265) at /usr/src/php5.4/source/php5-
5.4.11/ext/pcre/pcrelib/pcre_exec.c:2017
#14 0x0000000000483569 in match (eptr=0x3a63445 "  Spektrum Dx3E  <br />\n<br 
/>\nBattery", ' ' <repeats 50 times>, "7.4v 2200mah 2S Lipo pack", ' ' <repeats 11 
times>, "<br />\n<br />\nCharger", ' ' <repeats 50 times>, "Charg"..., 
ecode=0x25ba746 "q", mstart=0x0, offset_top=4, md=0x7fff9093ce60, eptrb=0x0, 
    rdepth=4776686) at /usr/src/php5.4/source/php5-
5.4.11/ext/pcre/pcrelib/pcre_exec.c:955
#15 0x000000000048e2ee in match (eptr=0x3a63445 "  Spektrum Dx3E  <br />\n<br 
/>\nBattery", ' ' <repeats 50 times>, "7.4v 2200mah 2S Lipo pack", ' ' <repeats 11 
times>, "<br />\n<br />\nCharger", ' ' <repeats 50 times>, "Charg"..., 
ecode=0x25ba74b "s", mstart=0x0, offset_top=4, md=0x7fff9093ce60, eptrb=0x0, 
    rdepth=4732265) at /usr/src/php5.4/source/php5-
5.4.11/ext/pcre/pcrelib/pcre_exec.c:2017
#16 0x0000000000483569 in match (eptr=0x3a63444 "   Spektrum Dx3E  <br />\n<br 
/>\nBattery", ' ' <repeats 50 times>, "7.4v 2200mah 2S Lipo pack", ' ' <repeats 11 
times>, "<br />\n<br />\nCharger", ' ' <repeats 50 times>, "Char"..., 
ecode=0x25ba746 "q", mstart=0x0, offset_top=4, md=0x7fff9093ce60, eptrb=0x0, 
    rdepth=4776686) at /usr/src/php5.4/source/php5-
5.4.11/ext/pcre/pcrelib/pcre_exec.c:955
#17 0x000000000048e2ee in match (eptr=0x3a63444 "   Spektrum Dx3E  <br />\n<br 
/>\nBattery", ' ' <repeats 50 times>, "7.4v 2200mah 2S Lipo pack", ' ' <repeats 11 
times>, "<br />\n<br />\nCharger", ' ' <repeats 50 times>, "Char"..., 
ecode=0x25ba74b "s", mstart=0x0, offset_top=4, md=0x7fff9093ce60, eptrb=0x0, 
    rdepth=4732265) at /usr/src/php5.4/source/php5-
5.4.11/ext/pcre/pcrelib/pcre_exec.c:2017
#18 0x0000000000483569 in match (eptr=0x3a63443 "    Spektrum Dx3E  <br />\n<br 
/>\nBattery", ' ' <repeats 50 times>, "7.4v 2200mah 2S Lipo pack", ' ' <repeats 11 
times>, "<br />\n<br />\nCharger", ' ' <repeats 50 times>, "Cha"..., 
ecode=0x25ba746 "q", mstart=0x0, offset_top=4, md=0x7fff9093ce60, eptrb=0x0, 
    rdepth=4776686) at /usr/src/php5.4/source/php5-
5.4.11/ext/pcre/pcrelib/pcre_exec.c:955
#19 0x000000000048e2ee in match (eptr=0x3a63443 "    Spektrum Dx3E  <br />\n<br 
/>\nBattery", ' ' <repeats 50 times>, "7.4v 2200mah 2S Lipo pack", ' ' <repeats 11 
times>, "<br />\n<br />\nCharger", ' ' <repeats 50 times>, "Cha"..., 
ecode=0x25ba74b "s", mstart=0x0, offset_top=4, md=0x7fff9093ce60, eptrb=0x0, 
    rdepth=4732265) at /usr/src/php5.4/source/php5-
5.4.11/ext/pcre/pcrelib/pcre_exec.c:2017
#20 0x0000000000483569 in match (eptr=0x3a63442 "     Spektrum Dx3E  <br />\n<br 
/>\nBattery", ' ' <repeats 50 times>, "7.4v 2200mah 2S Lipo pack", ' ' <repeats 11 
times>, "<br />\n<br />\nCharger", ' ' <repeats 50 times>, "Ch"..., 
ecode=0x25ba746 "q", mstart=0x0, offset_top=4, md=0x7fff9093ce60, eptrb=0x0, 
    rdepth=4776686) at /usr/src/php5.4/source/php5-
5.4.11/ext/pcre/pcrelib/pcre_exec.c:955
#21 0x000000000048e2ee in match (eptr=0x3a63442 "     Spektrum Dx3E  <br />\n<br 
/>\nBattery", ' ' <repeats 50 times>, "7.4v 2200mah 2S Lipo pack", ' ' <repeats 11 
times>, "<br />\n<br />\nCharger", ' ' <repeats 50 times>, "Ch"..., 
ecode=0x25ba74b "s", mstart=0x0, offset_top=4, md=0x7fff9093ce60, eptrb=0x0, 
    rdepth=4732265) at /usr/src/php5.4/source/php5-
5.4.11/ext/pcre/pcrelib/pcre_exec.c:2017
#22 0x0000000000483569 in match (eptr=0x3a63441 "      Spektrum Dx3E  <br />\n<br 
/>\nBattery", ' ' <repeats 50 times>, "7.4v 2200mah 2S Lipo pack", ' ' <repeats 11 
times>, "<br />\n<br />\nCharger", ' ' <repeats 50 times>, "C"..., ecode=0x25ba746 
"q", mstart=0x0, offset_top=4, md=0x7fff9093ce60, eptrb=0x0, 
    rdepth=4776686) at /usr/src/php5.4/source/php5-
5.4.11/ext/pcre/pcrelib/pcre_exec.c:955
#23 0x000000000048e2ee in match (eptr=0x3a63441 "      Spektrum Dx3E  <br />\n<br 
/>\nBattery", ' ' <repeats 50 times>, "7.4v 2200mah 2S Lipo pack", ' ' <repeats 11 
times>, "<br />\n<br />\nCharger", ' ' <repeats 50 times>, "C"..., ecode=0x25ba74b 
"s", mstart=0x0, offset_top=4, md=0x7fff9093ce60, eptrb=0x0, 
    rdepth=4732265) at /usr/src/php5.4/source/php5-
5.4.11/ext/pcre/pcrelib/pcre_exec.c:2017
#24 0x0000000000483569 in match (eptr=0x3a63440 "       Spektrum Dx3E  <br />\n<br 
/>\nBattery", ' ' <repeats 50 times>, "7.4v 2200mah 2S Lipo pack", ' ' <repeats 11 
times>, "<br />\n<br />\nCharger", ' ' <repeats 50 times>..., ecode=0x25ba746 "q", 
mstart=0x0, offset_top=4, md=0x7fff9093ce60, eptrb=0x0, 
    rdepth=4776686) at /usr/src/php5.4/source/php5-
5.4.11/ext/pcre/pcrelib/pcre_exec.c:955
#25 0x000000000048e2ee in match (eptr=0x3a63440 "       Spektrum Dx3E  <br />\n<br 
/>\nBattery", ' ' <repeats 50 times>, "7.4v 2200mah 2S Lipo pack", ' ' <repeats 11 
times>, "<br />\n<br />\nCharger", ' ' <repeats 50 times>..., ecode=0x25ba74b "s", 
mstart=0x0, offset_top=4, md=0x7fff9093ce60, eptrb=0x0, 
    rdepth=4732265) at /usr/src/php5.4/source/php5-
5.4.11/ext/pcre/pcrelib/pcre_exec.c:2017
#26 0x0000000000483569 in match (eptr=0x3a6343f "        Spektrum Dx3E  <br 
/>\n<br />\nBattery", ' ' <repeats 50 times>, "7.4v 2200mah 2S Lipo pack", ' ' 
<repeats 11 times>, "<br />\n<br />\nCharger", ' ' <repeats 49 times>..., 
ecode=0x25ba746 "q", mstart=0x0, offset_top=4, md=0x7fff9093ce60, eptrb=0x0, 
    rdepth=4776686) at /usr/src/php5.4/source/php5-
5.4.11/ext/pcre/pcrelib/pcre_exec.c:955
#27 0x000000000048e2ee in match (eptr=0x3a6343f "        Spektrum Dx3E  <br 
/>\n<br />\nBattery", ' ' <repeats 50 times>, "7.4v 2200mah 2S Lipo pack", ' ' 
<repeats 11 times>, "<br />\n<br />\nCharger", ' ' <repeats 49 times>..., 
ecode=0x25ba74b "s", mstart=0x0, offset_top=4, md=0x7fff9093ce60, eptrb=0x0, 
    rdepth=4732265) at /usr/src/php5.4/source/php5-
5.4.11/ext/pcre/pcrelib/pcre_exec.c:2017
#28 0x0000000000483569 in match (eptr=0x3a6343e "         Spektrum Dx3E  <br 
/>\n<br />\nBattery", ' ' <repeats 50 times>, "7.4v 2200mah 2S Lipo pack", ' ' 
<repeats 11 times>, "<br />\n<br />\nCharger", ' ' <repeats 48 times>..., 
ecode=0x25ba746 "q", mstart=0x0, offset_top=4, md=0x7fff9093ce60, eptrb=0x0, 
    rdepth=4776686) at /usr/src/php5.4/source/php5-
5.4.11/ext/pcre/pcrelib/pcre_exec.c:955
#29 0x000000000048e2ee in match (eptr=0x3a6343e "         Spektrum Dx3E  <br 
/>\n<br />\nBattery", ' ' <repeats 50 times>, "7.4v 2200mah 2S Lipo pack", ' ' 
<repeats 11 times>, "<br />\n<br />\nCharger", ' ' <repeats 48 times>..., 
ecode=0x25ba74b "s", mstart=0x0, offset_top=4, md=0x7fff9093ce60, eptrb=0x0, 
    rdepth=4732265) at /usr/src/php5.4/source/php5-
5.4.11/ext/pcre/pcrelib/pcre_exec.c:2017
#30 0x0000000000483569 in match (eptr=0x3a6343d "          Spektrum Dx3E  <br 
/>\n<br />\nBattery", ' ' <repeats 50 times>, "7.4v 2200mah 2S Lipo pack", ' ' 
<repeats 11 times>, "<br />\n<br />\nCharger", ' ' <repeats 47 times>..., 
ecode=0x25ba746 "q", mstart=0x0, offset_top=4, md=0x7fff9093ce60, eptrb=0x0, 
    rdepth=4776686) at /usr/src/php5.4/source/php5-
5.4.11/ext/pcre/pcrelib/pcre_exec.c:955
#31 0x000000000048e2ee in match (eptr=0x3a6343d "          Spektrum Dx3E  <br 
/>\n<br />\nBattery", ' ' <repeats 50 times>, "7.4v 2200mah 2S Lipo pack", ' ' 
<repeats 11 times>, "<br />\n<br />\nCharger", ' ' <repeats 47 times>..., 
ecode=0x25ba74b "s", mstart=0x0, offset_top=4, md=0x7fff9093ce60, eptrb=0x0, 
    rdepth=4732265) at /usr/src/php5.4/source/php5-
5.4.11/ext/pcre/pcrelib/pcre_exec.c:2017
#32 0x0000000000483569 in match (eptr=0x3a6343c ' ' <repeats 11 times>, "Spektrum 
Dx3E  <br />\n<br />\nBattery", ' ' <repeats 50 times>, "7.4v 2200mah 2S Lipo 
pack", ' ' <repeats 11 times>, "<br />\n<br />\nCharger", ' ' <repeats 46 
times>..., ecode=0x25ba746 "q", mstart=0x0, offset_top=4, md=0x7fff9093ce60, 
    eptrb=0x0, rdepth=4776686) at /usr/src/php5.4/source/php5-
5.4.11/ext/pcre/pcrelib/pcre_exec.c:955
#33 0x000000000048e2ee in match (eptr=0x3a6343c ' ' <repeats 11 times>, "Spektrum 
Dx3E  <br />\n<br />\nBattery", ' ' <repeats 50 times>, "7.4v 2200mah 2S Lipo 
pack", ' ' <repeats 11 times>, "<br />\n<br />\nCharger", ' ' <repeats 46 
times>..., ecode=0x25ba74b "s", mstart=0x0, offset_top=4, md=0x7fff9093ce60, 
    eptrb=0x0, rdepth=4732265) at /usr/src/php5.4/source/php5-
5.4.11/ext/pcre/pcrelib/pcre_exec.c:2017
#34 0x0000000000483569 in match (eptr=0x3a6343b ' ' <repeats 12 times>, "Spektrum 
Dx3E  <br />\n<br />\nBattery", ' ' <repeats 50 times>, "7.4v 2200mah 2S Lipo 
pack", ' ' <repeats 11 times>, "<br />\n<br />\nCharger", ' ' <repeats 45 
times>..., ecode=0x25ba746 "q", mstart=0x0, offset_top=4, md=0x7fff9093ce60, 
    eptrb=0x0, rdepth=4776686) at /usr/src/php5.4/source/php5-
5.4.11/ext/pcre/pcrelib/pcre_exec.c:955
#35 0x000000000048e2ee in match (eptr=0x3a6343b ' ' <repeats 12 times>, "Spektrum 
Dx3E  <br />\n<br />\nBattery", ' ' <repeats 50 times>, "7.4v 2200mah 2S Lipo 
pack", ' ' <repeats 11 times>, "<br />\n<br />\nCharger", ' ' <repeats 45 
times>..., ecode=0x25ba74b "s", mstart=0x0, offset_top=4, md=0x7fff9093ce60, 
    eptrb=0x0, rdepth=4732265) at /usr/src/php5.4/source/php5-
5.4.11/ext/pcre/pcrelib/pcre_exec.c:2017
#36 0x0000000000483569 in match (eptr=0x3a6343a ' ' <repeats 13 times>, "Spektrum 
Dx3E  <br />\n<br />\nBattery", ' ' <repeats 50 times>, "7.4v 2200mah 2S Lipo 
pack", ' ' <repeats 11 times>, "<br />\n<br />\nCharger", ' ' <repeats 44 
times>..., ecode=0x25ba746 "q", mstart=0x0, offset_top=4, md=0x7fff9093ce60, 
    eptrb=0x0, rdepth=4776686) at /usr/src/php5.4/source/php5-
5.4.11/ext/pcre/pcrelib/pcre_exec.c:955
#37 0x000000000048e2ee in match (eptr=0x3a6343a ' ' <repeats 13 times>, "Spektrum 
Dx3E  <br />\n<br />\nBattery", ' ' <repeats 50 times>, "7.4v 2200mah 2S Lipo 
pack", ' ' <repeats 11 times>, "<br />\n<br />\nCharger", ' ' <repeats 44 
times>..., ecode=0x25ba74b "s", mstart=0x0, offset_top=4, md=0x7fff9093ce60, 
    eptrb=0x0, rdepth=4732265) at /usr/src/php5.4/source/php5-
5.4.11/ext/pcre/pcrelib/pcre_exec.c:2017
#38 0x0000000000483569 in match (eptr=0x3a63439 ' ' <repeats 14 times>, "Spektrum 
Dx3E  <br />\n<br />\nBattery", ' ' <repeats 50 times>, "7.4v 2200mah 2S Lipo 
pack", ' ' <repeats 11 times>, "<br />\n<br />\nCharger", ' ' <repeats 43 
times>..., ecode=0x25ba746 "q", mstart=0x0, offset_top=4, md=0x7fff9093ce60, 
    eptrb=0x0, rdepth=4776686) at /usr/src/php5.4/source/php5-
5.4.11/ext/pcre/pcrelib/pcre_exec.c:955

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-02-01 14:10 UTC] pajoye@php.net
-Status: Open +Status: Not a bug
 [2013-02-01 14:10 UTC] pajoye@php.net
Yes, that's a well known "problem" in pcre. Not much we can do fix it and your 
workaround is actually the right solution.
 [2016-03-25 09:55 UTC] martin at sutunam dot com
This "well-know" error is still a bug. It is also undocumented and should be wrapped by a check to throw a php error (and not a segfault in the system).
 [2016-03-25 11:03 UTC] yohgaki@php.net
PHP does not detect if system's stack limit is reached or not.
One may request the detection if there is no request for it.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 06:01:29 2025 UTC