From: andy at webtatic dot com Operating system: CentOS 5.3 i386 PHP version: 5.2.10 PHP Bug Type: IMAP related Bug description: imap_seach ALL causing segfault
Description: ------------ imap_search($connection, 'ALL') seems to be causing a segmentation fault. The backtrace (from what I guess), seems to suggest the command is recursively calling itself to free the searchset, the same thing being called endlessly. The php build was based on the CentOS testing php-5.2.6 rpm modified to compile php-5.2.10. php-5.2.9 did not have this issue. build --enable-force-cgi-redirect \ --enable-pcntl \ --with-imap=shared --with-imap-ssl \ --enable-mbstring=shared --enable-mbstr-enc-trans \ --enable-mbregex \ --with-ncurses=shared \ --with-gd=shared \ --enable-bcmath=shared \ --enable-dba=shared --with-db4=%{_prefix} \ --with-xmlrpc=shared \ --with-ldap=shared --with-ldap-sasl \ --with-mysql=shared,%{_prefix} \ --with-mysqli=shared,%{_bindir}/mysql_config \ --enable-dom=shared \ --with-dom-xslt=%{_prefix} --with-dom-exslt=%{_prefix} \ --with-pgsql=shared \ --with-snmp=shared,%{_prefix} \ --enable-soap=shared \ --with-xsl=shared,%{_prefix} \ --enable-xmlreader=shared --enable-xmlwriter=shared \ --enable-fastcgi \ --enable-pdo=shared \ --with-pdo-odbc=shared,unixODBC,%{_prefix} \ --with-pdo-mysql=shared,%{_prefix} \ --with-pdo-pgsql=shared,%{_prefix} \ --with-pdo-sqlite=shared,%{_prefix} \ --enable-json=shared \ --enable-zip=shared \ --with-readline \ --enable-dbase=shared \ --enable-debug Actual result: -------------- #0 0x020393ff in mail_free_searchset () from /usr/lib/libc-client.so.1 #1 0x0203941b in mail_free_searchset () from /usr/lib/libc-client.so.1 #2 0x0203941b in mail_free_searchset () from /usr/lib/libc-client.so.1 #3 0x0203941b in mail_free_searchset () from /usr/lib/libc-client.so.1 #4 0x0203941b in mail_free_searchset () from /usr/lib/libc-client.so.1 #5 0x0203941b in mail_free_searchset () from /usr/lib/libc-client.so.1 #6 0x0203941b in mail_free_searchset () from /usr/lib/libc-client.so.1 #7 0x0203941b in mail_free_searchset () from /usr/lib/libc-client.so.1 #8 0x0203941b in mail_free_searchset () from /usr/lib/libc-client.so.1 #9 0x0203941b in mail_free_searchset () from /usr/lib/libc-client.so.1 #10 0x0203941b in mail_free_searchset () from /usr/lib/libc-client.so.1 ... -- Edit bug report at http://bugs.php.net/?id=48619&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48619&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48619&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48619&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=48619&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48619&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=48619&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=48619&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=48619&r=needscript Try newer version: http://bugs.php.net/fix.php?id=48619&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=48619&r=support Expected behavior: http://bugs.php.net/fix.php?id=48619&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=48619&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=48619&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=48619&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48619&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=48619&r=dst IIS Stability: http://bugs.php.net/fix.php?id=48619&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=48619&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=48619&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=48619&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=48619&r=mysqlcfg