Edit report at http://bugs.php.net/bug.php?id=52317&edit=1
ID: 52317
User updated by: om at wysiwyg dot de
Reported by: om at wysiwyg dot de
Summary: Segmentation fault when using mail() on a rhel 4.x
(only 64 bit)
Status: Assigned
Type: Bug
Package: Reproducible crash
Operating System: rhel4.8_x86_64
PHP Version: 5.2SVN-2010-07-12 (snap)
Assigned To: aharvey
New Comment:
sorry I forgot the testscript:
<?php
$to = '[email protected]';
$subject = 'test';
$message = 'test';
$headers = 'From: OM' . "\r\n" .
'Reply-To: [email protected]' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
//mail without $headers is working
//mail($to, $subject, $message);
//with $headers -> seg. fault
mail($to, $subject, $message, $headers);
?>
Previous Comments:
------------------------------------------------------------------------
[2010-07-13 18:26:07] [email protected]
Since I committed the offending patch, I'll look into it.
If you could provide both the test script (which doesn't seem to have
made it) and, if possible, a backtrace per the instructions [1], that
would be most helpful.
[1] http://bugs.php.net/bugs-generating-backtrace.php
------------------------------------------------------------------------
[2010-07-12 16:52:53] om at wysiwyg dot de
Description:
------------
Since the patch for "headers_trimmed" was added in the mail.c I always
get a segmentation fault when using mail(). This only affects rhel4.x 64
bit os. rhel 5.x 64 bit or rhel4.x 32 bit works fine.
Using mail.c from a snapshot before 2010-04-22 in the actual snapshot
source everything works fine.
--- php/php-src/branches/PHP_5_2/ext/standard/mail.c 2010-04-22 01:07:48
UTC (rev 298290) -> works fine
+++ php/php-src/branches/PHP_5_2/ext/standard/mail.c 2010-04-22 02:22:49
UTC (rev 298291) -> segmentation fault when using mail() in a php script
on a rhel4.x 64 bit host
Test script:
---------------
running "make test" after building php from source.
the provided test script also reports the problem.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=52317&edit=1