#39380 [Asn->Bgs]: php crashes in preg_match

From: Date: Fri, 01 Dec 2006 21:29:07 +0000
Subject: #39380 [Asn->Bgs]: php crashes in preg_match
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-105760@lists.php.net to get a copy of this message
ID: 39380 Updated by: nlopess@php.net Reported By: corinl at gmx dot de -Status: Assigned +Status: Bogus Bug Type: PCRE related Operating System: linux debian PHP Version: 5.2.0 Assigned To: andrei New Comment: another stack overflow problem. you can use the new ini settings to prevent the segfault and/or increase the stack size. Previous Comments: ------------------------------------------------------------------------ [2006-11-04 17:14:01] corinl at gmx dot de Description: ------------ running the reproduce code crashes php 5.1.6 and 5.2.0 with a segmentation fault. -- (gdb) set args php_crash.php (gdb) run Starting program: /usr/bin/php php_crash.php [Thread debugging using libthread_db enabled] [New Thread -1486911808 (LWP 25359)] ok1 Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1486911808 (LWP 25359)] 0x080b167d in match ( eptr=0xa73d1542 "t; schwierig<br />\r\n&gt;&lt; seltsam &gt;&lt; sensibel &gt;&lt; spontan &gt;&lt; stur &gt;&lt; t&auml;towiert &gt;&lt; treu &gt;&lt; unberechenbar <br />\r\n\r\n&gt;&lt; unentschlossen &gt;&lt;ungeduldig&"..., ecode=0x880b9a8 ";", offset_top=2, md=0xaf9e2620, ims=4, eptrb=0xaf1e8558, flags=2, rdepth=6454) at /usr/local/src/php-5.2.0/ext/pcre/pcrelib/pcre_exec.c:554 554 utf8 = md->utf8; /* Local copy of the flag */ (gdb) Reproduce code: --------------- http://www.netskin.de/download/php_crash.php.txt Expected result: ---------------- ok1 ok2 Actual result: -------------- ok1 -> crashes before echo('ok2') ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=39380&edit=1

« previous php.bugs (#105760) next »