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

From: Date: Fri, 20 Sep 2002 12:21:17 +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-19868@lists.php.net to get a copy of this message
 ID:               19386
 Updated by:       sniper@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:

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



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

[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.

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

[2002-09-17 07:03:48] wez@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

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.

Could you supply a backtrace?
Also, could you try with a non-stable snapshot from the
last couple of days as the PCRE library was updated recently.

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

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 (#19868) next »