A shm destroy cannot remove an open shm (any more than rm will remove an open file - at least on windows). In a graceful, you have a lingering child holding on to that resource.
The short term fix would be to rename the offending shm resource on each attempted graceful restart. It may be possible to grow an open shm resource when needed. Only previous openers are likely to be aware it was expanded. On Tue, Apr 17, 2018 at 11:37 AM, Exonetric <[email protected]> wrote: > FWIW, I am seeing this too, but examining the code I could not see how. It > looks like it just does a shm destroy and then moves on to recreating the > SHM segment. > > > On 17 Apr 2018, at 14:03, Jim Jagielski <[email protected]> wrote: > > This should not be a fatal error... I don't think it was before. > > Begin forwarded message: > > From: [email protected] > Subject: [Bug 62308] New: Apache crashes after graceful restart with > AH02599: slotmem (failed size check) > Date: April 17, 2018 at 6:21:09 AM EDT > To: [email protected] > Reply-To: "Apache HTTPD Bugs Notification List" <[email protected]> > > https://bz.apache.org/bugzilla/show_bug.cgi?id=62308 > > Bug ID: 62308 > Summary: Apache crashes after graceful restart with AH02599: > slotmem (failed size check) > Product: Apache httpd-2 > Version: 2.4.33 > Hardware: PC > Status: NEW > Severity: regression > Priority: P2 > Component: mod_proxy_balancer > Assignee: [email protected] > Reporter: [email protected] > Target Milestone: --- > > Created attachment 35878 > --> https://bz.apache.org/bugzilla/attachment.cgi?id=35878&action=edit > logfile with configuration change example > > After updating from 2.4.27 to 2.4.33, we get a crash when doing a graceful > restart after modifying the mod_proxy/mod_proxy_balancer configuration in > the > filesystem. > We are modifying the configuration files dynamicaly when our infrastructure > changes. After this, we do a graceful restart using the following Windows > command: httpd.exe -k restart > This worked fine with 2.4.27 and below. > With 2.4.33 we get the following message: > AH02599: existing shared memory for > C:/Apache24/temp/slotmem-shm-p17ffdef3.shm > could not be used (failed size check) > > I've added a Apache logfile with an example of configuration change that > causes > this issue > > -- > You are receiving this mail because: > You are the assignee for the bug. > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
