php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33152 Segmentation Fault
Submitted: 2005-05-26 16:23 UTC Modified: 2007-04-04 18:28 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: andrea dot busia at axis-sv dot it Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 5CVS-2005-05-26 (dev) OS: Linux Redhat ES
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: andrea dot busia at axis-sv dot it
New email:
PHP Version: OS:

 

 [2005-05-26 16:23 UTC] andrea dot busia at axis-sv dot it
Description:
------------
I have installed mailparse 2.1.1 modified as suggested in 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

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-05-26 19:36 UTC] sniper@php.net
This is wrong place to report bugs in extensions found only in PECL. Report at http://pecl.php.net/bugs/

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Dec 07 10:00:02 2025 UTC