#30571 [NEW]: Imap2004a crashed apache

From: Date: Tue, 26 Oct 2004 20:28:05 +0000
Subject: #30571 [NEW]: Imap2004a crashed apache
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-68118@lists.php.net to get a copy of this message
From: bo at theaddedones dot com Operating system: Fedora 1 PHP version: 4.3.9 PHP Bug Type: IMAP related Bug description: Imap2004a crashed apache Description: ------------ the general problem was an odd one when using the HORDE-IMP pacakge. For certain messages (those with multi-parts i.e. a 'text' and an 'enriched' type). The attempting to access the message results in a apache SegFault... after 'downgrading' to IMAP-2002e the bug went away. -- my compile bits -- ./configure --with-apxs=/usr/local/apache/bin/apxs --with-xml --enable-bcmath --enable-calendar --with-curl --with-dom --with-dom-xslt --with-dom-exslt --enable-exif --enable-ftp --with-gd --with-png-dir=/usr --without-xpm --with-gettext --with-imap --enable-mbstring --enable-mbstr-enc-trans --enable-mbregex --with-mcrypt --with-mhash --enable-magic-quotes --with-mysql=/usr --with-openssl --enable-discard-path --with-pear --with-pspell --enable-xslt --with-xslt-sablot --enable-sockets --enable-track-vars --with-ttf --enable-versioning --enable-wddx --with-xmlrpc --with-zip --with-zlib --with-readline --with-iconv --with-openssl --with-freetype-dir=/usr --with-gdbm Reproduce code: --------------- use the Horde-Imp mail program...and attempt to read a message (i.e. like the ones sent from the OSX Mail programm where there are 2 parts a flat text and an enriched) Actual result: -------------- ---- gdb trace --- #0 0x00a0224c in _php_imap_add_body (arg=0x9bcbc5c, body=0x703c2065) at /home/cpapachebuild/buildapache/php-4.3.9/ext/imap/php_imap.c:3817 3817 if (body->type <= TYPEMAX) { (gdb) bt #0 0x00a0224c in _php_imap_add_body (arg=0x9bcbc5c, body=0x703c2065) at /home/cpapachebuild/buildapache/php-4.3.9/ext/imap/php_imap.c:3817 #1 0x00a0268b in _php_imap_add_body (arg=0x9bcbc9c, body=0x9bd06f8) at /home/cpapachebuild/buildapache/php-4.3.9/ext/imap/php_imap.c:3911 #2 0x009facd8 in zif_imap_fetchstructure (ht=3, return_value=0x9bcbc9c, this_ptr=0x0, return_value_used=1) at /home/cpapachebuild/buildapache/php-4.3.9/ext/imap/php_imap.c:1753 #3 0x00f9c892 in get_module () from /usr/local/Zend/lib/Optimizer-2.5.5/php-4.3.x/ZendOptimizer.so -- Edit bug report at http://bugs.php.net/?id=30571&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30571&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30571&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30571&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=30571&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=30571&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=30571&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=30571&r=needscript Try newer version: http://bugs.php.net/fix.php?id=30571&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=30571&r=support Expected behavior: http://bugs.php.net/fix.php?id=30571&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=30571&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=30571&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=30571&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30571&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=30571&r=dst IIS Stability: http://bugs.php.net/fix.php?id=30571&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=30571&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=30571&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=30571&r=mysqlcfg

« previous php.bugs (#68118) next »