#19386 [Opn]: crash at if (preg_match('/(.|[\r\n])+/', $x)):

From: Date: Thu, 26 Sep 2002 16:21:59 +0000
Subject: #19386 [Opn]: crash at if (preg_match('/(.|[\r\n])+/', $x)):
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-20446@lists.php.net to get a copy of this message
 ID:               19386
 Updated by:       wez@php.net
 Reported By:      paul.dodd@usb.unibe.ch
 Status:           Open
 Bug Type:         PCRE related
 Operating System: *
 PHP Version:      4.2.3, 4.3.0-dev
 New Comment:

How about a backtrace? (Jani?)
Is it PHP or PCRE that's causing this problem?


Previous Comments:
------------------------------------------------------------------------

[2002-09-20 07:21:16] sniper@php.net

I still can reproduce it with latest CVS HEAD and RH 6.2/x86 


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

[2002-09-20 04:45:55] devon@sitetronics.com

I cannot reproduce this bug using the latest cvs on redhat 7.3.  The
script just keeps going.  I cut it off after 20000 chars.

I also do not experience this problem with the latest cvs release on
FreeBSD 4.6-STABLE.

Devon

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

[2002-09-17 08:07:05] paul.dodd@usb.unibe.ch

I've reproduced this using the php4-win32-latest snapshot.
The only difference is that it crashes at
char 3915 instead of 4041. Sorry, but not gdb hence no
backtrace.

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

[2002-09-17 07:56:38] sniper@php.net

And I can still reproduce it with the short script and using latest
CVS. (which has the new pcre lib)


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

[2002-09-17 07:10:20] wez@php.net

I didn't see that Jani reproduced this.

FWIW, I can not reproduce using current CVS or with
PHP 4.2.1 (the oldest version I had to hand just now)
using the short script that you provided.

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

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/19386

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



Thread (14 messages)

« previous php.bugs (#20446) next »