#33152 [NEW]: Segmentation Fault
From: andrea dot busia at axis-sv dot it
Operating system: Linux Redhat ES
PHP version: 5CVS-2005-05-26 (dev)
PHP Bug Type: Mailparse related
Bug description: Segmentation Fault
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
--
Edit bug report at http://bugs.php.net/?id=33152&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33152&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33152&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33152&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=33152&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=33152&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=33152&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=33152&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=33152&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=33152&r=support
Expected behavior: http://bugs.php.net/fix.php?id=33152&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=33152&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=33152&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=33152&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33152&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=33152&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=33152&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=33152&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=33152&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=33152&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=33152&r=mysqlcfg
Thread (2 messages)
- andrea dot busia at axis-sv dot it