#47352 [Opn->Fbk]: preg_replace Segmentation fault
ID: 47352
Updated by: jani@php.net
-Summary: preg_replace Segmetation fault
Reported By: whitephoenix at mail dot ru
-Status: Open
+Status: Feedback
Bug Type: PCRE related
Operating System: *
PHP Version: 5.3.0beta1
Previous Comments:
------------------------------------------------------------------------
[2009-02-10 21:58:11] felipe@php.net
Try increasing the value of pcre.backtrack_limit directive.
http://docs.php.net/manual/en/pcre.configuration.php
------------------------------------------------------------------------
[2009-02-10 16:17:15] whitephoenix at mail dot ru
5.3.0beta2-dev
------------------------------------------------------------------------
[2009-02-10 15:40:15] whitephoenix at mail dot ru
httpd.exe - Apache 2.2.4.0 on Windows XP.
Thread 250 - System ID 39948
Entry point msvcrt!_endthreadex+3a
Create time 10.02.2009 18:35:47
Time spent in user mode 0 Days 0:0:0.62
Time spent in kernel mode 0 Days 0:0:0.15
Function Arg 1 Arg 2 Arg 3 Source
ntdll!_SEH_prolog+1a 00270000 00000000 00000090
msvcrt!_heap_alloc+e0 00000090 05c43098 77c1c42e
msvcrt!_nh_malloc+13 00000090 00000000 06a524c7
msvcrt!malloc+27 00000090 05c4323c 00000319
php5ts!php_pcre_exec+5ad4 00000319 06a524c7 00000018
0x05c4323c 06a524c7 00000018 00000000
NTDLL!_SEH_PROLOG+1AIn
httpd__PID__39128__Date__02_10_2009__Time_06_36_38PM__718__Second_Chance_Exception_C00000FD.dmp
the assembly instruction at ntdll!_SEH_prolog+1a in
C:\WINDOWS.0\system32\ntdll.dll from Êîðïîðàöèÿ Ìàéêðîñîôò has caused a
stack overflow exception (0xC00000FD) when trying to write to memory
location 0x05c42e24 on thread 250
------------------------------------------------------------------------
[2009-02-10 15:07:32] scottmac@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php
for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php
for Win32
Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.
I can't reproduce this with a CVS version, can you provide the
backtrace.
------------------------------------------------------------------------
[2009-02-10 14:48:44] whitephoenix at mail dot ru
Description:
------------
Segmentation fault, core dumped ;)
PCRE 7.8.
Reproduce code:
---------------
http://quicky-tpl.net/files/pcre-bug.php.txt
Expected result:
----------------
Empty.
Actual result:
--------------
Segmentation fault, core dumped.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=47352&edit=1
Thread (9 messages)