DO NOT REPLY [Bug 7838] - Apache leaves shared memory segments and dies after unclean shutdown

2003-04-19 Thread bugzilla
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

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|RESOLVED|CLOSED

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 7838] - Apache leaves shared memory segments and dies after unclean shutdown

2003-02-26 Thread bugzilla
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





--- Additional Comments From [EMAIL PROTECTED]  2003-02-26 01:05 ---
The proper way is to use httpd -k stop or apachectl -k stop. This should run all
the cleanup stuff and shutdown gently.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 7838] - Apache leaves shared memory segments and dies after unclean shutdown

2002-04-26 Thread bugzilla
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





--- Additional Comments From [EMAIL PROTECTED]  2002-04-26 01:43 ---
What is the proper way to kill apache, having it NOT finish servicing any
requests, but die immediately and exit cleanly?

This is what I do now, which apparently leaves shared memory around
sometimes.

if (-e /var/run/httpd.pid) {
kill -TERM `cat /var/run/httpd.pid`
rm /var/run/httpd.pid
}

sleep 2

killall -9 httpd


DO NOT REPLY [Bug 7838] - Apache leaves shared memory segments and dies after unclean shutdown

2002-04-25 Thread bugzilla
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

[EMAIL PROTECTED] changed:

   What|Removed |Added

 CC||[EMAIL PROTECTED]
 Status|NEW |RESOLVED
 Resolution||INVALID



--- Additional Comments From [EMAIL PROTECTED]  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.


DO NOT REPLY [Bug 7838] - Apache leaves shared memory segments and dies after unclean shutdown

2002-04-16 Thread bugzilla
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





--- Additional Comments From [EMAIL PROTECTED]  2002-04-16 00:13 ---
[adding myself to CC]


DO NOT REPLY [Bug 7838] - Apache leaves shared memory segments and dies after unclean shutdown

2002-04-15 Thread bugzilla
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

[EMAIL PROTECTED] changed:

   What|Removed |Added

Summary|Apache leaves shared memory |Apache leaves shared memory
   |segments and dies gafter|segments and dies after
   |unclean shutdown|unclean shutdown



--- Additional Comments From [EMAIL PROTECTED]  2002-04-15 05:41 ---
This is one of the main drawbacks of using System V SHM.  Try using AcceptMutex
pthread if your platform supports it (Solaris certainly does).  You may also try
flock or fcntl if your OS supports those values.  We can attempt to try to
clean up certain shutdown paths, but I'm not sure we can catch everything.

The reason we do not want to delete the segment on initialization is that doing
so prevents third-party modules (such as mod_perl which relies on this, AIUI)
from attaching to the scoreboard externally.

Also fix typo in bug summary.