|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16021 imap_bodystruct call generates signal (via abort())
Submitted: 2002-03-12 10:43 UTC Modified: 2002-06-13 01:00 UTC
From: reinke at e-softinc dot com Assigned:
Status: No Feedback Package: Reproducible crash
PHP Version: 4.1.2 OS: Linux (RedHat 6.2)
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2002-03-12 10:43 UTC] reinke at e-softinc dot com
While this may have been used incorrectly causing a problem (don't know
since I've not been able to get it to work properly),
Consider the following steps:
a) Create a message with two attachments (in this case .doc files)
b) Mail the message to an account.
c) Read the email (in this case, with Netscape) and forward the
    message as an attachment to an account from where you will
    access it via PHP.
d) Now try to read and process the file.
The problem comes in dealin with the multipart/mixed portion that
represents the original message that is now an attachment.
When the call imap_bodystruct($stream, $msgno, $partno) is
invoked, where $partno can actually be any value at all (tested values from
0 to 5), each case causes the Apache process handling the request to

The configure line from phpinfo() reads
'./configure' '--with-apache=../apache_1.3.23' '--enable-debug=no' '--prefix=/usr/local/apache' '--with-zlib' '--with-imap=/home/thomas/imap-4.7c' '--with-mcrypt' '--with-mhash' '--with-pgsql' '--with-gd=/home/thomas/gd1.2'

The apache error log shows a single line
[Tue Mar 12 00:09:13 2002] [notice] child pid 10813 exit signal Aborted (6)


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-03-12 18:23 UTC]
Try first using the latest c-client. 4.7c is really old
and the new ones have lot of bug fixes..

 [2002-06-13 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a month, 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".
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Mon Dec 11 17:01:30 2023 UTC