#37120 [Opn->Fbk]: mod_php5 + apache2 + mail() = hung process

Ask a Question related to PHP Bugs, Design and Development.

  1. #1

    Default #37120 [Opn->Fbk]: mod_php5 + apache2 + mail() = hung process

    ID: 37120
    Updated by: [email]tony2001@php.net[/email]
    Reported By: brlcad at mac dot com
    -Status: Open
    +Status: Feedback
    Bug Type: Apache2 related
    Operating System: FreeBSD 5.2.1
    PHP Version: 5.1.2
    New Comment:
    >Now with whatever change was made in mail() since 5.2.1,
    > it crashes the httpd.
    A gdb backtrace is worth of thousand words.


    Previous Comments:
    ------------------------------------------------------------------------

    [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] [email]tony2001@php.net[/email]

    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:

    [url]http://www.freebsd.org/cgi/query-pr.cgi?pr=86421[/url]

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

    [2006-08-09 01:00:01] php-bugs at lists dot php dot net

    No feedback was provided for this bug for over a week, so it is
    being suspended automatically. If you are able to provide the
    information that was originally requested, please do so and change
    the status of the bug back to "Open".

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

    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
    [url]http://bugs.php.net/37120[/url]

    --
    Edit this bug report at [url]http://bugs.php.net/?id=37120&edit=1[/url]
    tony2001@php.net Guest

  2. Similar Questions and Discussions

    1. #37120 [Fbk->Opn]: mod_php5 + apache2 + mail() = hung process
      ID: 37120 User updated by: brlcad at mac dot com Reported By: brlcad at mac dot com -Status: Feedback +Status: ...
    2. #37120 [Opn]: mod_php5 + apache2 + mail() = hung process
      ID: 37120 Updated by: tony2001@php.net Reported By: brlcad at mac dot com Status: Open Bug Type: ...
    3. #37120 [NoF->Opn]: mod_php5 + apache2 + mail() = hung process
      ID: 37120 User updated by: brlcad at mac dot com Reported By: brlcad at mac dot com -Status: No Feedback +Status: ...
    4. php and process incoming e-mail
      Hello, I want to have a php script whereby incoming e-mail will be processed, and some database queries done as well. I am familiar with the...
    5. #25768 [Opn->Csd]: Apache2: <IfModule *.c> directive should be mod_php5.c instead of sapi_apache2.c
      ID: 25768 Updated by: sniper@php.net Reported By: ebcom at free dot fr -Status: Open +Status: Closed...
  3. #2

    Default #37120 [Opn->Fbk]: mod_php5 + apache2 + mail() = hung process

    ID: 37120
    Updated by: [email]tony2001@php.net[/email]
    Reported By: brlcad at mac dot com
    -Status: Open
    +Status: Feedback
    Bug Type: Apache2 related
    Operating System: FreeBSD 5.2.1
    PHP Version: 5.1.2
    New Comment:

    Do not touch the production Apache, setup an Apache instance in your
    $HOME dir, listening on a different port.


    Previous Comments:
    ------------------------------------------------------------------------

    [2007-02-22 04:59:45] brlcad at mac dot com

    <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!

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

    [2007-02-21 23:16:17] [email]tony2001@php.net[/email]
    >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] [email]tony2001@php.net[/email]

    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.

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

    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
    [url]http://bugs.php.net/37120[/url]

    --
    Edit this bug report at [url]http://bugs.php.net/?id=37120&edit=1[/url]
    tony2001@php.net Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139