Bug #16436 Updated: ereg causes apache crashes

From: Date: Fri, 05 Apr 2002 21:34:47 +0000
Subject: Bug #16436 Updated: ereg causes apache crashes
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-4177@lists.php.net to get a copy of this message
ID: 16436 Updated by: mfischer@php.net Reported By: lb@lamuella.de -Status: Open +Status: Feedback Bug Type: Regexps related Operating System: Linux PHP Version: 4.0CVS-2002-04-0 New Comment: Your last statement could easily lead to the assumption that your local regexp implementation/library is broken. To produce a backtrace on apache, fire up gdb with the apache binary and start with the parameter '-X'. Previous Comments: ------------------------------------------------------------------------ [2002-04-05 16:18:09] lb@lamuella.de The crash don't happen when php is runing as a cgi or with the cli api. And I have no idea how to tell the apache to dump a core when the php-module crashes. So I'm not able to provide a backtrace. This is the configure I've used: './configure' '--prefix=/usr/local' '--with-config-file-path=/etc' '--with-apxs=/usr/local/apache/bin/apxs' '--enable-shared' '--enable-sysvsem' '--enable-sysvshm' '--enable-inline-optimization' '--with-regex=system' '--with-mysql=/usr/local/mysql' '--with-interbase=/opt/interbase' '--enable-ftp' '--enable-sockets' '--with-zlib-dir=/usr/local' '--with-ttf' '--with-png-dir=/usr/local' '--with-gd=/usr/local' '--with-jpeg-dir=/usr/local' '--with-gettext' '--with-pdflib' If I use '--with-regex=php' instead of 'system' everything works fine. Lutz ------------------------------------------------------------------------ [2002-04-04 20:03:20] sniper@php.net I can not reproduce this with latest CVS or with 4.2.0RC2. Please add the configure line used into this bug report. Also, configure php with --enable-debug and generate a GDB backtrace of the crash. ------------------------------------------------------------------------ [2002-04-04 15:37:51] lb@lamuella.de this line crashes the apache process with php 4.2.0RC2 as a module <?php if (ereg('foo', 'string with foo')) echo 'got it'; ?> Lutz ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=16436&edit=1

« previous php.bugs (#4177) next »