PHP 4.0 Bug #7670 Updated: PHP crashes when accessing IMAP mailbox

From: Date: Wed, 08 Nov 2000 23:39:16 +0000
Subject: PHP 4.0 Bug #7670 Updated: PHP crashes when accessing IMAP mailbox
Groups: php.dev 
Request: Send a blank email to php-dev+get-37471@lists.php.net to get a copy of this message
ID: 7670 User Update by: skarkkai@woods.iki.fi Status: Feedback Bug Type: IMAP related Description: PHP crashes when accessing IMAP mailbox I recompiled PHP from today's snapshot 200011081445, which didn't make the bug go away. The stack trace is now: #0 0x4038924c in zend_hash_index_update_or_next_insert (ht=0x806cb6f, h=135351912, pData=0xbffffba8, nDataSize=2514400684, pDest=0x806cc2f, flag=135155768) at zend_hash.c:433 #1 0xe5ec688e in ?? () [...] My c-client is from imap-devel-4.6-3 rpm (I think, at least that package has the right headers). Previous Comments: --------------------------------------------------------------------------- [2000-11-08 00:46:14] sniper@php.net 1. Use --enable-debug in your configure line to get valid backtrace. 2. Try latest snapshot from http://snaps.php.net (IIRC, this is fixed already) 3. Have you compiled libc-client.a from sources ? ( http://www.php.net/manual/ref.imap.php ) --Jani --------------------------------------------------------------------------- [2000-11-06 23:07:57] skarkkai@woods.iki.fi When Courier IMAPd crashes while being accessed by IMP using PHP's IMAP functions, that causes also the Apache process to crash. The last IMAP messages before the crash are 00000005 SEARCH ALL UNSEEN * SEARCH 29 30 31 32 33 34 35 00000005 OK SEARCH done. 00000006 FETCH 29:35 (UID ENVELOPE BODY.PEEK[HEADER.FIELDS (Path Message-ID Newsgroups Followup-To References)] INTERNALDATE RFC822.SIZE FLAGS) Stack trace is obviously quite useless, as it is: #0 0x3a4c8d10 in ?? () #1 0xbf60b801 in ?? () #2 0xc8b604ff in ?? () #3 0x7e7fc391 in ?? () #4 0xc8b604ff in ?? () #5 0x7e710cf1 in ?? () #6 0xd029715b in ?? () #7 0xa1a1ee2f in ?? () #8 0x55e8be66 in ?? () This happens both with PHP 3.0.16 and 4.0.3pl1. Apache is 1.3.11. I compile PHP with ./configure --with-mysql=/usr --with-apxs=/usr/local/www/apache/bin/apxs --with-xml --enable-track-vars=yes --enable-bcmath=yes --enable-memory-limit=yes --with-imap --with-ldap --enable-sysvshm --enable-sysvsem --with-gdbm I can easily reproduce the crash by putting an offending email message into a Maildir that Courier reads. Any other information I should provide? --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=7670

« previous php.dev (#37471) next »