From: long at ku dot edu Operating system: RHEL3 PHP version: 5.2.3 PHP Bug Type: GD related Bug description: 'make test' goes into infinite loop on infinite loop test
Description: ------------ Here is the configure line I used: #! /bin/sh # # Created by configure CFLAGS='-O3' \ CXXFLAGS='-O3' \ LIBS='-lssl -lncurses' \ './configure' \ '--enable-discard-path' \ '--with-openssl=shared' \ '--with-zlib=shared' \ '--enable-bcmath' \ '--with-bz2=shared' \ '--enable-calendar' \ '--with-curl=shared' \ '--enable-dba=shared' \ '--with-gdbm=shared' \ '--with-db4=shared' \ '--with-cdb=shared' \ '--with-inifile=shared' \ '--enable-dbase' \ '--enable-dbx' \ '--enable-dio' \ '--enable-exif' \ '--enable-filepro' \ '--enable-ftp' \ '--with-gd=shared' \ '--enable-gd-native-ttf' \ '--enable-gd-jis-conv' \ '--with-gettext=shared' \ '--with-gmp=shared' \ '--with-imap=shared' \ '--with-kerberos' \ '--with-imap-ssl' \ '--with-ldap' \ '--enable-mbstring' \ '--with-mysql=/usr' \ '--with-ncurses=shared' \ '--with-oci8' \ '--with-pgsql=shared' \ '--with-pspell=shared' \ '--with-readline=shared' \ '--enable-shmop' \ '--with-snmp=shared' \ '--enable-sockets' \ '--with-sqlite' \ '--enable-sysvmsg' \ '--enable-sysvsem' \ '--enable-sysvshm' \ '--enable-wddx' \ '--with-freetype-dir' \ '--with-jpeg-dir' \ '--with-xpm-dir' \ '--with-apxs2=/usr/local/apache/bin/apxs' \ '--with-mysqli' \ '--with-pdo-mysql' \ '--with-pdo-oci' \ '--with-tidy' \ '--enable-soap=shared' \ '--enable-zip' \ "$@" When I run 'make test' it gets to this point and enters an infinite loop it appears: PASS jpeg <--> gd1/gd2 conversion test [ext/gd/tests/jpg2gd.phpt] TEST 1061/2667 [ext/gd/tests/libgd00086.phpt] Fatal error: Out of memory (allocated 1611661312) (tried to allocate 1610350689 bytes) in /apps/home/long/src/php-5.2.3-ap2/run-tests.php on line 882 I've also verified this in php5.2-200706061230. Here's a gdb backtrace: Loaded symbols for /lib/libnss_files.so.2 0x009b616e in __read_nocancel () from /lib/tls/libc.so.6 (gdb) bt #0 0x009b616e in __read_nocancel () from /lib/tls/libc.so.6 #1 0x00952bb8 in _IO_file_read_internal () from /lib/tls/libc.so.6 #2 0x00951e8e in _IO_new_file_underflow () from /lib/tls/libc.so.6 #3 0x00953f9d in __underflow () from /lib/tls/libc.so.6 #4 0x00953068 in _IO_file_xsgetn_internal () from /lib/tls/libc.so.6 #5 0x009546d8 in _IO_sgetn_internal () from /lib/tls/libc.so.6 #6 0x009476bd in fread () from /lib/tls/libc.so.6 #7 0x003d8af9 in fileGetbuf () from /usr/local/lib/php/extensions/no-debug-non-zts-20060613/gd.so #8 0x003d862b in php_gd_gdGetBuf () from /usr/local/lib/php/extensions/no-debug-non-zts-20060613/gd.so #9 0x0055f9e4 in png_read_data () from /usr/lib/libpng12.so.0 #10 0x099ff0e8 in ?? () #11 0x00000009 in ?? () #12 0xb75b43cc in ?? () #13 0x099fecc8 in ?? () #14 0xbfff5db4 in ?? () #15 0x0056ea0c in ?? () from /usr/lib/libpng12.so.0 #16 0xbfff5dc8 in ?? () #17 0x00555103 in png_crc_read () from /usr/lib/libpng12.so.0 #18 0x099fee30 in ?? () #19 0x099ff0e8 in ?? () #20 0x00000009 in ?? () #21 0x0056ea0c in ?? () from /usr/lib/libpng12.so.0 #22 0x00000009 in ?? () #23 0x00002000 in ?? () #24 0xbfff5de8 in ?? () #25 0x00555220 in png_crc_finish () from /usr/lib/libpng12.so.0 #26 0x099fee30 in ?? () #27 0x099ff0e8 in ?? () #28 0x00000009 in ?? () ---Type <return> to continue, or q <return> to quit--- #29 0x0056ea0c in ?? () from /usr/lib/libpng12.so.0 #30 0x099fefa9 in ?? () #31 0x0056b0bf in png_pHYs () from /usr/lib/libpng12.so.0 #32 0xbfff5e58 in ?? () #33 0x00557f20 in png_handle_unknown () from /usr/lib/libpng12.so.0 #34 0x099fee30 in ?? () #35 0x00000009 in ?? () #36 0xbfff5e18 in ?? () #37 0x003d862b in php_gd_gdGetBuf () from /usr/local/lib/php/extensions/no-debug-non-zts-20060613/gd.so Previous frame inner to this frame (corrupt stack?) (gdb) Expected result: ---------------- I expect the test to either PASS or FAIL and 'make test' to continue. Actual result: -------------- TEST 1061/2667 [ext/gd/tests/libgd00086.phpt] Fatal error: Out of memory (allocated 1611661312) (tried to allocate 1610350689 bytes) in /apps/home/long/src/php-5.2.3-ap2/run-tests.php on line 882 (infinite loop?) -- Edit bug report at http://bugs.php.net/?id=41612&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41612&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41612&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41612&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=41612&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=41612&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=41612&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=41612&r=needscript Try newer version: http://bugs.php.net/fix.php?id=41612&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=41612&r=support Expected behavior: http://bugs.php.net/fix.php?id=41612&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=41612&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=41612&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=41612&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41612&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=41612&r=dst IIS Stability: http://bugs.php.net/fix.php?id=41612&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=41612&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=41612&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=41612&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=41612&r=mysqlcfg