httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 7838] - Apache leaves shared memory segments and dies after unclean shutdown
Date Thu, 25 Apr 2002 15:38:09 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7838>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7838

Apache leaves shared memory segments and dies after unclean shutdown

aaron@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |aaron@apache.org
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID



------- Additional Comments From aaron@apache.org  2002-04-25 15:38 -------
A few very good proposals have been made here, but unfortunately they are
insufficient:

1) calling shmctl(new_m->shmid, IPC_RMID, NULL) right after calling shmat()
  -- This won't work because segments that are marked IPC_RMID can not be
     attached to in child processes.

2) calling shmctl($shmid, IPC_RMID, 0) before creating a new segment
  -- This is also problematic because this would allow a second instance
     of apache to remove the segment of another already-running apache.


It is my understanding that the normal shutdown signals will call the
cleanup routines and properly detach and remove the segment. If you are
killing apache with SIGKILL then you're going to have to use ipcs/ipcrm
to clean up those segments. For the above reasons I'm marking this bug as
invalid, if you disagree please comment.

Mime
View raw message