[Bug 63169] New: MPM event, stuck process after graceful: no (old gen)

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 63169] New: MPM event, stuck process after graceful: no (old gen)

Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=63169

            Bug ID: 63169
           Summary: MPM event, stuck process after graceful: no (old gen)
           Product: Apache httpd-2
           Version: 2.4.34
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mpm_event
          Assignee: [hidden email]
          Reporter: [hidden email]
  Target Milestone: ---

apachectl graceful fails to kill some processes, which in return keeps logfiles
forever open after logrotate.

"apachectl fullstatus" says in the "stopping" row that the processes are "no
(old gen)"

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 63169] MPM event, stuck process after graceful: no (old gen)

Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=63169

--- Comment #1 from Yann Ylavic <[hidden email]> ---
Since there are some changes in MPM event since 2.4.34, can you reproduce with
the latest/2.4.38 version?

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 63169] MPM event, stuck process after graceful: no (old gen)

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=63169

--- Comment #2 from Stephan Schultchen <[hidden email]> ---
2.4.38 is not available as a IUS rpm package. i updated some systems to 2.4.37.
and check if this solves the issue

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 63169] MPM event, stuck process after graceful: no (old gen)

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=63169

--- Comment #3 from Stephan Schultchen <[hidden email]> ---
the problem still persists with apache httpd 2.4.37 from the IUS repository.

the changelog from 2.4.37 seem to not have any changes related to MPM, or
anthing else that looks related to log file handling.

quite now apache has some processes running since yesterday, that are in the
"no (old gen)" stopping status, and these processes have the old, rotated
logfiles open.

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 63169] MPM event, stuck process after graceful: no (old gen)

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=63169

Stephan Schultchen <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|2.4.34                      |2.4.37

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 63169] MPM event, stuck process after graceful: no (old gen)

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=63169

--- Comment #4 from Yann Ylavic <[hidden email]> ---
What's the state of old gen processes/threads?
Number of requests currently being processed, idle workers, status of the
threads (letters S/R/W/K/L/D/C/./G/I/?), full status for "stuck" processes
please?

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 63169] MPM event, stuck process after graceful: no (old gen)

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=63169

Jacob Lundberg <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 63169] MPM event, stuck process after graceful: no (old gen)

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=63169

--- Comment #5 from [hidden email] ---
I believe it is change introduced in 2.4.34 to run cleanups on exit in single
process mode:

http://svn.apache.org/viewvc/httpd/httpd/trunk/os/unix/unixd.c?view=diff&r1=1830743&r2=1830744&pathrev=1830744

httpd drops privileges to switch to a non-root user if the User directive is
defined in
httpd.conf. If httpd is required to started as root to bind to well known
ports, and if
the User directive is defined in the conf, piped logs remain running as root
while http
d runs as a non-privileged user. This causes graceful restarts on receipt of a
SIGTERM to
fail, causing both httpd and the piped log processes to remain stuck and not
respond to
SIGTERMs.

A possible fix within apache would be to add code to drop privilges or any sub
processes
registered with the server (for e.g., the piped log processes) like it is done
for httpd.

A workaround is to setuid the piped log processes to that of the User in
httpd.conf using
something like ap_uname2id() so as to make the owner of the piped logs same as
the parent
httpd process.

Additionally, after making the setuid change in our piped log binaries, we've
seen core dumps
around free() in apr_pool_destroy when cleaning up the apr pool. I'm still
investigating
these but meanhile any help from the apache team would be well appreciated.

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 63169] MPM event, stuck process after graceful: no (old gen)

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=63169

[hidden email] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |regression

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 63169] MPM event, stuck process after graceful: no (old gen)

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=63169

[hidden email] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 63169] MPM event, stuck process after graceful: no (old gen)

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=63169

[hidden email] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P1

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]