php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56403 Segmentation Fault
Submitted: 2005-05-26 16:40 UTC Modified: 2005-10-31 08:22 UTC
From: andrea dot busia at axis-sv dot it Assigned:
Status: Closed Package: mailparse (PECL)
PHP Version: 5_0 CVS-2005-05-26 (dev) OS: Linux Redhat ES
Private report: No CVE-ID: None
 [2005-05-26 16:40 UTC] andrea dot busia at axis-sv dot it
Description:
------------
I have installed mailparse 2.1.1 modified as suggested in PHP bug #32999.

I have again segmentation fault problems as described.

"mail_bug.txt" content:
----------------------
Return-Path: <andrea.busia@axis-sv.it>
Delivered-To: axis-sv.it-andrea.busia@axis-sv.it
Received: (qmail 11056 invoked from network); 26 May 2005 13:51:01 -0000
Received: from ppp-217-133-35-137.cust-adsl.tiscali.it (HELO axis20)
(217.133.35.137)
  by 212.100.249.98 with SMTP; 26 May 2005 13:51:01 -0000
Message-ID: <009c01c561f9$e7e3e3b0$1401a8c0@axis20>
From: "Andrea Busia - Axis" <andrea.busia@axis-sv.it>
To: "Andrea Busia - Axis" <andrea.busia@axis-sv.it>
Subject: bye bye
Date: Thu, 26 May 2005 15:50:41 +0200
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: base64
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2900.2527
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527

YnllIGJ5ZQ0K




----------------------




gdb backtrace:
----------------------
(gdb) run tracking_mail_prova.php
Starting program: /usr/bin/php tracking_mail_prova.php [Thread debugging using libthread_db enabled] [New Thread 8192 (LWP 14106)]
Content-type: text/html
X-Powered-By: PHP/5.0.5-dev

bye bye

a

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 8192 (LWP 14106)]
0x0819784d in shutdown_memory_manager (silent=0, full_shutdown=0)
    at /home/archivi/php5-STABLE-200505261236/Zend/zend_alloc.c:489
489                                     REMOVE_POINTER_FROM_LIST(ptr);
(gdb) bt
#0  0x0819784d in shutdown_memory_manager (silent=0, full_shutdown=0)
    at /home/archivi/php5-STABLE-200505261236/Zend/zend_alloc.c:489
#1  0x0817a20f in php_request_shutdown (dummy=0x0)
    at /home/archivi/php5-STABLE-200505261236/main/main.c:1239
#2  0x081e7b48 in main (argc=2, argv=0xbffecdf4)
    at /home/archivi/php5-STABLE-200505261236/sapi/cgi/cgi_main.c:1640
----------------------


Reproduce code:
---------------
<?
$email_in=file_get_contents("mail_bug.txt");
$msg = new MimeMessage("var", $email_in); echo $msg->extract_body(MAILPARSE_EXTRACT_RETURN);
$email_headers=$msg->extract_headers(MAILPARSE_EXTRACT_RETURN);

echo "\na\n";
?>


Expected result:
----------------
bye bye

a


Actual result:
--------------
bye bye

a
Segmentation fault


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-10-23 10:25 UTC] mike@php.net
Please try a newer PHP version and report back if you're still experiencing this issue.
 [2005-10-31 08:22 UTC] andrea dot busia at axis-sv dot it
I have changed the php script to change the operations sequence and upgraded php. II'm not experiencing any more the bug.

Thanks
Andrea Busia
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Mon May 27 11:01:28 2019 UTC