#21615 [Ver]: PCRE segfault with (very) large string.

2003-03-04 Thread moriyoshi
 ID:   21615
 Updated by:   [EMAIL PROTECTED]
 Reported By:  olivier dot gondouin at planet-service dot fr
 Status:   Verified
 Bug Type: Reproducible crash
 Operating System: GNU/linux
 PHP Version:  4.3.0
 New Comment:

Similar to bug #21389


Previous Comments:


[2003-01-14 09:42:24] olivier dot gondouin at planet-service dot fr

after php.ini: 
the working php is 4.1.2 from this distribution/kernel:
Linux montreal.mandrakesoft.com 2.4.18-1mdksmp #1 SMP

configure options are (after php.ini):
 './configure' '--disable-static' '--disable-debug' '--disable-rpath'
'--enable-pic' '--enable-inline-optimization' '--prefix=/usr'
'--with-zlib' '--with-config-file-path=/etc' '--enable-magic-quotes'
'--enable-debugger' '--enable-track-vars' '--enable-safe-mode'
'--with-exec-dir=/usr/bin' '--with-regex=system' '--with-versioning'
'--enable-sysvsem' '--enable-sysvshm' '--with-mod_charset'
'--enable-force-cgi-redirect' '--enable-trans-sid' '--with-dbase'
'--with-filepro' '--enable-yp' '--enable-ftp' '--with-gettext'
'--with-ttf' '--with-freetype-dir'  [Some modules are external: look
for packages php-pgsql,php-mysql,...]

PCRE is:
PCRE Library Version3.4 22-Aug-2000



[2003-01-13 17:21:01] [EMAIL PROTECTED]

Could you please confirm the PHP  PCRE version that are used in the
'working' version, that would be of great help.



[2003-01-13 17:14:36] olivier dot gondouin at planet-service dot fr

for information ther's the same bug on php-4.2.3 compiled more infos.

With same parameters (only gd external lib was used instead of 4.3
bundled).

But this works fine on Mandrake linux 8.2 system with its own rpmized
php (php-4.1.2 I think).
Don't know if Mandrake team applied a special patch on sources???



[2003-01-13 16:26:42] [EMAIL PROTECTED]

The actual crash occurs inside the pcrelib, so it could pcre related,
but since I am unable to replicate the crash using pcre command line
tools it maybe PHP related after all.



[2003-01-13 10:56:27] olivier dot gondouin at planet-service dot fr

oops:
http://planet-service.fr/test2.txt.gz



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

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



#21615 [Ver]: PCRE segfault with (very) large string.

2003-01-14 Thread olivier . gondouin
 ID:   21615
 User updated by:  [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Verified
 Bug Type: Reproducible crash
 Operating System: GNU/linux
 PHP Version:  4.3.0
 New Comment:

after php.ini: 
the working php is 4.1.2 from this distribution/kernel:
Linux montreal.mandrakesoft.com 2.4.18-1mdksmp #1 SMP

configure options are (after php.ini):
 './configure' '--disable-static' '--disable-debug' '--disable-rpath'
'--enable-pic' '--enable-inline-optimization' '--prefix=/usr'
'--with-zlib' '--with-config-file-path=/etc' '--enable-magic-quotes'
'--enable-debugger' '--enable-track-vars' '--enable-safe-mode'
'--with-exec-dir=/usr/bin' '--with-regex=system' '--with-versioning'
'--enable-sysvsem' '--enable-sysvshm' '--with-mod_charset'
'--enable-force-cgi-redirect' '--enable-trans-sid' '--with-dbase'
'--with-filepro' '--enable-yp' '--enable-ftp' '--with-gettext'
'--with-ttf' '--with-freetype-dir'  [Some modules are external: look
for packages php-pgsql,php-mysql,...]

PCRE is:
PCRE Library Version3.4 22-Aug-2000


Previous Comments:


[2003-01-13 17:21:01] [EMAIL PROTECTED]

Could you please confirm the PHP  PCRE version that are used in the
'working' version, that would be of great help.



[2003-01-13 17:14:36] [EMAIL PROTECTED]

for information ther's the same bug on php-4.2.3 compiled more infos.

With same parameters (only gd external lib was used instead of 4.3
bundled).

But this works fine on Mandrake linux 8.2 system with its own rpmized
php (php-4.1.2 I think).
Don't know if Mandrake team applied a special patch on sources???



[2003-01-13 16:26:42] [EMAIL PROTECTED]

The actual crash occurs inside the pcrelib, so it could pcre related,
but since I am unable to replicate the crash using pcre command line
tools it maybe PHP related after all.



[2003-01-13 10:56:27] [EMAIL PROTECTED]

oops:
http://planet-service.fr/test2.txt.gz



[2003-01-13 10:55:35] [EMAIL PROTECTED]

I'm really sorry:

http://planet-service.fr/test2.php.gz



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

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




#21615 [Ver]: PCRE segfault with (very) large string.

2003-01-13 Thread olivier . gondouin
 ID:   21615
 User updated by:  [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Verified
 Bug Type: Reproducible crash
 Operating System: GNU/linux
 PHP Version:  4.3.0
 New Comment:

for information ther's the same bug on php-4.2.3 compiled more infos.

With same parameters (only gd external lib was used instead of 4.3
bundled).

But this works fine on Mandrake linux 8.2 system with its own rpmized
php (php-4.1.2 I think).
Don't know if Mandrake team applied a special patch on sources???


Previous Comments:


[2003-01-13 16:26:42] [EMAIL PROTECTED]

The actual crash occurs inside the pcrelib, so it could pcre related,
but since I am unable to replicate the crash using pcre command line
tools it maybe PHP related after all.



[2003-01-13 10:56:27] [EMAIL PROTECTED]

oops:
http://planet-service.fr/test2.txt.gz



[2003-01-13 10:55:35] [EMAIL PROTECTED]

I'm really sorry:

http://planet-service.fr/test2.php.gz



[2003-01-13 09:53:25] [EMAIL PROTECTED]

Cannot download the test script due to what appears to be a parse
error. Could you please make the file avaliable as text (.txt).



[2003-01-13 07:51:41] [EMAIL PROTECTED]

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 this bug report at http://bugs.php.net/?id=21615edit=1




#21615 [Ver]: PCRE segfault with (very) large string.

2003-01-13 Thread iliaa
 ID:   21615
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Verified
 Bug Type: Reproducible crash
 Operating System: GNU/linux
 PHP Version:  4.3.0
 New Comment:

Could you please confirm the PHP  PCRE version that are used in the
'working' version, that would be of great help.


Previous Comments:


[2003-01-13 17:14:36] [EMAIL PROTECTED]

for information ther's the same bug on php-4.2.3 compiled more infos.

With same parameters (only gd external lib was used instead of 4.3
bundled).

But this works fine on Mandrake linux 8.2 system with its own rpmized
php (php-4.1.2 I think).
Don't know if Mandrake team applied a special patch on sources???



[2003-01-13 16:26:42] [EMAIL PROTECTED]

The actual crash occurs inside the pcrelib, so it could pcre related,
but since I am unable to replicate the crash using pcre command line
tools it maybe PHP related after all.



[2003-01-13 10:56:27] [EMAIL PROTECTED]

oops:
http://planet-service.fr/test2.txt.gz



[2003-01-13 10:55:35] [EMAIL PROTECTED]

I'm really sorry:

http://planet-service.fr/test2.php.gz



[2003-01-13 09:53:25] [EMAIL PROTECTED]

Cannot download the test script due to what appears to be a parse
error. Could you please make the file avaliable as text (.txt).



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

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