You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2011/04/19 01:36:38 UTC
DO NOT REPLY [Bug 51078] New: mod_fcgid spawned CGI Processes gets
orphaned when Apache gets restarted/killed
https://issues.apache.org/bugzilla/show_bug.cgi?id=51078
Summary: mod_fcgid spawned CGI Processes gets orphaned when
Apache gets restarted/killed
Product: Apache httpd-2
Version: 2.2.17
Platform: PC
OS/Version: Windows Server 2003
Status: NEW
Keywords: PatchAvailable
Severity: normal
Priority: P2
Component: mod_fcgid
AssignedTo: bugs@httpd.apache.org
ReportedBy: thangaraj@gmail.com
Created an attachment (id=26897)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=26897)
Patch to fix mod_fcgid spwaned CGI process orphaning when Apache is
restarted/killed
Problem:
mod_fcgid created CGI processes get orphaned during Apache shutdown or abrupt
child process termination.
Reproduction steps:
Allow Apache Child process to spwan few CGI process via mod_fcgid. Kill the
Apache child process.
Root Cause:
Apache when run as windows service during shutdown/restart of service process
(master/parent) will terminate child httpd process within 30 seconds (refer
\server\mpm\winnt\mpm_winnt.c:master_main() int timeout = 30000), therefore if
Apache worker threads are too busy to react to Master's graceful exit signal
within 30 seconds - mod_fcgid cleanup routines will not get invoked (refer
\server\mpm\winnt\child.c: child_main() apr_pool_destroy(pchild); ) thereby
orphaning all mod_fcgid spwaned CGI processes.
Solution (implemented in patch):
Utilize Win32 JobObjects to clean up child processes automatically so that CGI
processes are gauranteed to get killed during abnormal mod_fcgid/Apache
termination. Created a new Fcgid configuration option called
FcgidWin32PreventOrphans.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 51078] [PATCH] mod_fcgid spawned CGI Processes gets orphaned
when Apache gets restarted/killed
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51078
Mario <JB...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
--- Comment #2 from Mario <JB...@gmail.com> ---
isn't that issues fixed with
https://issues.apache.org/bugzilla/show_bug.cgi?id=50309 ?
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 51078] [PATCH] mod_fcgid spawned CGI Processes
gets orphaned when Apache gets restarted/killed
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51078
Felix Schwarz <fe...@oss.schwarz.eu> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |felix.schwarz@oss.schwarz.e
| |u
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 51078] [PATCH] mod_fcgid spawned CGI Processes
gets orphaned when Apache gets restarted/killed
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51078
--- Comment #1 from Steffen <in...@apachelounge.com> 2011-08-16 19:38:37 UTC ---
Attention to Bug report 50309, patch there addresses same issue.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 51078] [PATCH] mod_fcgid spawned CGI Processes
gets orphaned when Apache gets restarted/killed
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51078
Thangaraj AntonyCrouse <th...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |thangaraj@gmail.com
Summary|mod_fcgid spawned CGI |[PATCH] mod_fcgid spawned
|Processes gets orphaned |CGI Processes gets orphaned
|when Apache gets |when Apache gets
|restarted/killed |restarted/killed
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org