From: [EMAIL PROTECTED] Operating system: GNU/linux PHP version: 4.3.0 PHP Bug Type: Reproducible crash Bug description: PCRE segfault with (very) large string.
PCRE segfault on a big regular expression on a really big string (>17490 chars) special parameters in php.ini file: memory_limit = 64M test script: http://planet-service.fr/test2.php.gz this script test a substring of the crashing string. a loop do the test with this substring, and increase the size of the string at each step and print out the size. I put 17490 as starting size as that crash at 17491. The parameters at at the end of the script (after the string itself). compilation options: ./configure --prefix=/opt/php-4.3.0 --with-apache=../apache_1.3.27 --with-config-file-path=/opt/php-4.3.0/lib --enable-calendar --enable-track-vars --enable-ftp --with-readline --with-imap=/opt/c-client --with-openssl=/opt/openssl --with -gdbm=/usr --with-mysql=/opt/mysql --with-pgsql=/opt/postgresql --enable-trans-sid -with-regex=php --enable-sysvsem --enable-sysvshm --enable-memory-limit --enable-debug=no --with-ttf=/opt/freetype --with-t1lib=/opt/t1lib --with-xml --enable-sockets --with-jpeg-dir=/opt/jpeg --with-tiff-dir=/opt/tiff --with-png-dir=/opt/libpng --with-zlib-dir=/opt/zlib --with-gd --enable-gd-native-ttf --enable-exif --with-pdflib=/opt/pdflib --enable-bcmath --with-ming=/opt/ming --with-bz2=/opt/bzip2 --with-zlib --with-dom=/opt/libxml2 --with-dom-xslt=/opt/libxslt --with-dom-exslt=/opt/libxslt --enable-xslt --with-xslt-sablot=/opt/sablotron --with-expat-dir=/opt/expat --with-ldap=/opt/openldap --with-mcal=/opt/libmcal --with-curl=/opt/curl-7.10.2 --with-iconv=/opt/libiconv --enable-mbstring --with-zip=/opt/zziplib Olivier -- Edit bug report at http://bugs.php.net/?id=21615&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=21615&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=21615&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=21615&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=21615&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=21615&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=21615&r=support Expected behavior: http://bugs.php.net/fix.php?id=21615&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=21615&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=21615&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=21615&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21615&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=21615&r=dst IIS Stability: http://bugs.php.net/fix.php?id=21615&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=21615&r=gnused