#37120 [Fbk->Opn]: mod_php5 + apache2 + mail() = hung process
| From: | brlcad at mac dot com | Date: | Thu, 22 Feb 2007 04:59:45 +0000 |
| Subject: | #37120 [Fbk->Opn]: mod_php5 + apache2 + mail() = hung process | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-109303@lists.php.net to get a copy of this message | ||
ID: 37120
User updated by: brlcad at mac dot com
Reported By: brlcad at mac dot com
-Status: Feedback
+Status: Open
Bug Type: Apache2 related
Operating System: FreeBSD 5.2.1
PHP Version: 5.1.2
New Comment:
<whine>Yes, but such a pain in the arse to set up as it's a
live production system...where's the magical intuition and
devine insight??</whine> :-)
I'll see if I can get an updated backtrace. Cheers!
Previous Comments:
------------------------------------------------------------------------
[2007-02-21 23:16:17] tony2001@php.net
>Now with whatever change was made in mail() since 5.2.1,
> it crashes the httpd.
A gdb backtrace is worth of thousand words.
------------------------------------------------------------------------
[2007-02-21 23:10:23] brlcad at mac dot com
For what it's worth, I don't believe the problem (at least
as I've reported) is so much related to the previous
poster's freebsd bug report link. It may very well be
specific to FreeBSD and even this version of the OS, but it
also seems to be rather isolated to PHP5. I've tested with
other Apache modules and none of them have trouble sending
mail like PHP seems to be having, and sending mail directly
works like a charm.
What's perhaps useful to note, and that I perhaps didn't
emphasize enough, is that with version 5.1.2 it would just
hang the httpd process and the web page request would simply
never terminate. Now with whatever change was made in mail
() since 5.2.1, it crashes the httpd. It's curious that
httpd is dying via signal 6 (SIGABRT, abort()) and not a
usual segv or bus error, etc.
------------------------------------------------------------------------
[2007-02-21 21:53:48] tony2001@php.net
Doesn't look like PHP problem to me, more like FreeBSD bug.
------------------------------------------------------------------------
[2007-02-21 21:20:32] brlcad at mac dot com
To hopefully revive this issue, I'm using the latest release
5.2.1 version of php (from FreeBSD ports), with the same setup
and constraints as mentioned before in this report and still
see the same crashes (httpd exits on signal 6) during a mail()
call from mod_php5.
------------------------------------------------------------------------
[2006-08-10 21:42:15] spike at indra dot com
I am seeing the same behavor in 4.4.3. I wrote a script to replace
sendmail and confirmed that the data is being written to the pipe, but
that the pipe is not being closed. I then stuck debuging statements in
mail.c and found the it hangs on pclose(). Again, this is only in
apache, not from the command line.
There may be a connection to this FreeBSD bug report:
http://www.freebsd.org/cgi/query-pr.cgi?pr=86421
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/37120
--
Edit this bug report at http://bugs.php.net/?id=37120&edit=1