php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #48258 imap_header crash without any response when to: or cc: is very long
Submitted: 2009-05-13 08:01 UTC Modified: 2013-02-18 00:33 UTC
Votes:4
Avg. Score:5.0 ± 0.0
Reproduced:4 of 4 (100.0%)
Same Version:2 (50.0%)
Same OS:3 (75.0%)
From: rimgaudas dot laucius at delfi dot lt Assigned:
Status: No Feedback Package: IMAP related
PHP Version: 5.2.9 OS: linux-windows
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: rimgaudas dot laucius at delfi dot lt
New email:
PHP Version: OS:

 

 [2009-05-13 08:01 UTC] 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



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-05-13 08:09 UTC] 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-21 01:00 UTC] 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-06-01 01:50 UTC] freezehell at hotmail dot com
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.
 [2010-11-11 21:42 UTC] felipe@php.net
-Status: No Feedback +Status: Feedback
 [2010-11-11 21:42 UTC] felipe@php.net
Please try using this snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/


 [2013-02-18 00:33 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 22:01:30 2024 UTC