Re: PHP 4.0 Bug #7670 Updated: PHP crashes when accessing IMAP mailbox
| From: | Samuli Karkkainen | Date: | Thu, 09 Nov 2000 02:02:11 +0000 |
| Subject: | Re: PHP 4.0 Bug #7670 Updated: PHP crashes when accessing IMAP mailbox | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-37490@lists.php.net to get a copy of this message | ||
PHP's configure says
checking whether to include debugging symbols... yes
checking whether to enable Zend debugging... yes
And file says that neither apache nor libphp4.so are stripped:
[...]/bin/httpd: ELF 32-bit LSB executable, Intel 80386, version 1, dynamically linked
(uses shared libs), not stripped
[...]/libexec/libphp4.so: ELF 32-bit LSB shared object, Intel 80386, version 1, not stripped
But the fact that I compiled Apache with StackGuard might cause this? I
now recompiled Apache with normal gcc, but am unable to get a core
file. Into which directory should Apache write its core?
On Thu, Nov 09, 2000 at 02:51:54AM +0200, Zeev Suraski wrote:
> Any idea why you're not getting a full stack trace? Any chance some of the
> debugging symbols were stripped?
>
> Zeev
>
> At 01:39 09/11/2000, skarkkai@woods.iki.fi wrote:
> >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
> >
> >
> >--
> >PHP Development Mailing List <http://www.php.net/>
> >To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
> >For additional commands, e-mail: php-dev-help@lists.php.net
> >To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
> --
> Zeev Suraski <zeev@zend.com>
> http://www.zend.com/
>
--
Samuli Kärkkäinen |\ _,,,---,,_
skarkkai@woods.iki.fi----------ZZZzz /,
.-'' -. ;-;;,_------
http://www.woods.iki.fi |,4- ) )-,_. ,\ (
`'-'
'---''(_/--' `-'\_)