#48258 [Com]: imap_header crash without any response when to: or cc: is very long
| From: | freezehell at hotmail dot com | Date: | Mon, 01 Jun 2009 01:50:39 +0000 |
| Subject: | #48258 [Com]: imap_header crash without any response when to: or cc: is very long | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-137929@lists.php.net to get a copy of this message | ||
ID: 48258
Comment by: freezehell at hotmail dot com
Reported By: rimgaudas dot laucius at delfi dot lt
Status: No Feedback
Bug Type: IMAP related
Operating System: linux-windows
PHP Version: 5.2.9
New Comment:
Hi PHP,
We are having exactly the same issue with Sugarcrm 4.51 email module
which uses PHP Imap function to pull emails.
Fedora 9
Apache/2.2.9 (Fedora)
PHP 5.2.9
Apache throws a segmentation fault 11 error when IMAP tries to pull an
email with long to or CC email address list.
Please re-open this BUG.
Previous Comments:
------------------------------------------------------------------------
[2009-05-21 01:00:01] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
[2009-05-13 08:09:04] pajoye@php.net
Please install the debug symbols or compile PHP in debug mode.
Which c-client do you use? If it is an old version (<2007) please try
using 2007e.
------------------------------------------------------------------------
[2009-05-13 08:01:40] rimgaudas dot laucius at delfi dot lt
Description:
------------
failure noticed when "to:" was 14 KB long and another failure noticed
when "cc:" was 34 KB long.
here stacktrace (with php 5.2.8, but 5.2.9 crash as well):
This GDB was configured as "i686-pld-linux"...(no debugging symbols
found)
Using host libthread_db library "/lib/tls/libthread_db.so.1".
(gdb) run imaptest.php
Starting program: /usr/bin/php imaptest.php
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1215653088 (LWP 26789)]
[New Thread -1232208976 (LWP 26792)]
[Thread -1232208976 (zombie) exited]
test
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1215653088 (LWP 26789)]
0xb7938afc in memcpy () from /lib/tls/libc.so.6
(gdb) bt
#0 0xb7938afc in memcpy () from /lib/tls/libc.so.6
#1 0xb6ed420f in rfc822_skip_comment () from
/usr/lib/libc-client.so.2006k
#2 0xb6ed4255 in rfc822_skip_comment () from
/usr/lib/libc-client.so.2006k
#3 0xb6ed4c0b in rfc822_output_address () from
/usr/lib/libc-client.so.2006k
#4 0xb6ed497d in rfc822_output_address_list () from
/usr/lib/libc-client.so.2006k
#5 0xb6fac3c2 in zif_imap_mime_header_decode () from
/usr/lib/php/imap.so
#6 0x00000029 in ?? ()
#7 0x00000000 in ?? ()
(gdb) Quit
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=48258&edit=1