[Bug 62044] shared memory segments are not found in global list, but appear to exist in kernel.

2018-01-25 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=62044

--- Comment #3 from Yann Ylavic  ---
Created attachment 35698
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=35698=edit
Also remove SHM file if any

Does this help?

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: bugs-unsubscr...@httpd.apache.org
For additional commands, e-mail: bugs-h...@httpd.apache.org



[Bug 62044] shared memory segments are not found in global list, but appear to exist in kernel.

2018-01-25 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=62044

--- Comment #2 from m...@blackmans.org ---
looking at the code for apr_shm_remove at 

https://github.com/apache/apr/blob/1.6.1/shmem/unix/shm.c#L436

I am reminded that

/* Indicate that the segment is to be destroyed as soon
 * as all processes have detached. This also disallows any
 * new attachments to the segment. */
if (shmctl(shmid, IPC_RMID, NULL) == -1) {
goto shm_remove_failed;
}

So, while the remove can succeed, although I note the return status isn't
tested here, the key will hang around until the last process detaches, so the
defensive measure isn't effective.

So back to the original question, why does Apache think this slot isn't already
in the global list.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: bugs-unsubscr...@httpd.apache.org
For additional commands, e-mail: bugs-h...@httpd.apache.org



[Bug 62044] shared memory segments are not found in global list, but appear to exist in kernel.

2018-01-25 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=62044

--- Comment #1 from m...@blackmans.org ---
I believe the error arises here

https://github.com/apache/httpd/blob/2.4.29/modules/slotmem/mod_slotmem_shm.c#L408

I assume the 'file exists' error refers to the SHM key rather than the
placeholder file in the filesystem.

However, there is a defensive removal of the key *before* the create, which
makes this error very mysterious, it should be nearly impossible to fail here I
think.

apr_shm_remove(fname, gpool);
rv = apr_shm_create(, size, fname, gpool);

Is there any possibility there is some latency between the removal being
effective and the create starting? Or could the remove fail silently?

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: bugs-unsubscr...@httpd.apache.org
For additional commands, e-mail: bugs-h...@httpd.apache.org



[Bug 62044] New: shared memory segments are not found in global list, but appear to exist in kernel.

2018-01-25 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=62044

Bug ID: 62044
   Summary: shared memory segments are not found in global list,
but appear to exist in kernel.
   Product: Apache httpd-2
   Version: 2.4.29
  Hardware: PC
OS: Linux
Status: NEW
  Severity: critical
  Priority: P2
 Component: mod_proxy_balancer
  Assignee: bugs@httpd.apache.org
  Reporter: m...@blackmans.org
  Target Milestone: ---

With a large number of vhosts ( > 1000 ) and proxy balancer configurations ( >
1000), we are seeing Apache exit at start up time with a configuration error
(very frequently) with an error like. 

[Wed Jan 10 16:28:45.853599 2018] [slotmem_shm:error] [pid 29764:tid
140038537377536] (17)File exists: AH02611: create:
apr_shm_create(/apache24/logs/slotmem-shm-p71143bd8_balancer1.shm) failed

[Wed Jan 10 16:28:45.853641 2018] [:emerg] [pid 29764:tid 140038537377536]
AH00020: Configuration Failed, exiting 

turning on trace5 level logs we see things like the following for a single
balancer worker (I filtered on the balance SHM name)

[Thu Jan 25 03:48:08.397926 2018] [slotmem_shm:debug] [pid 13310:tid
140455729428224] mod_slotmem_shm.c(364): AH02602: create didn't find
/apache24/logs/slotmem-shm-pe1b232bb_balancer1.shm in global list
[Thu Jan 25 03:48:08.397932 2018] [slotmem_shm:debug] [pid 13310:tid
140455729428224] mod_slotmem_shm.c(374): AH02300: create
/apache24/logs/slotmem-shm-pe1b232bb_balancer1.shm: 1176/2
[Thu Jan 25 03:48:08.398076 2018] [slotmem_shm:debug] [pid 13310:tid
140455729428224] mod_slotmem_shm.c(417): AH02611: create:
apr_shm_create(/apache24/logs/slotmem-shm-pe1b232bb_balancer1.shm) succeeded
[Thu Jan 25 03:48:58.529349 2018] [slotmem_shm:debug] [pid 45813:tid
139795075143424] mod_slotmem_shm.c(364): AH02602: create didn't find
/apache24/logs/slotmem-shm-pe1b232bb_balancer1.shm in global list
[Thu Jan 25 03:48:58.529357 2018] [slotmem_shm:debug] [pid 45813:tid
139795075143424] mod_slotmem_shm.c(374): AH02300: create
/apache24/logs/slotmem-shm-pe1b232bb_balancer1.shm: 1176/2
[Thu Jan 25 03:49:01.835207 2018] [slotmem_shm:debug] [pid 46229:tid
139795075143424] mod_slotmem_shm.c(496): AH02301: attach looking for
/apache24/logs/slotmem-shm-pe1b232bb_balancer1.shm
[Thu Jan 25 03:49:01.835222 2018] [slotmem_shm:debug] [pid 46625:tid
139795075143424] mod_slotmem_shm.c(496): AH02301: attach looking for
/apache24/logs/slotmem-shm-pe1b232bb_balancer1.shm
[Thu Jan 25 03:49:01.835230 2018] [slotmem_shm:debug] [pid 46229:tid
139795075143424] mod_slotmem_shm.c(509): AH02302: attach found
/apache24/logs/slotmem-shm-pe1b232bb_balancer1.shm: 1176/2
[Thu Jan 25 03:49:01.835254 2018] [slotmem_shm:debug] [pid 46625:tid
139795075143424] mod_slotmem_shm.c(509): AH02302: attach found
/apache24/logs/slotmem-shm-pe1b232bb_balancer1.shm: 1176/2
[Thu Jan 25 03:49:01.886171 2018] [slotmem_shm:debug] [pid 47011:tid
139795075143424] mod_slotmem_shm.c(496): AH02301: attach looking for
/apache24/logs/slotmem-shm-pe1b232bb_balancer1.shm
[Thu Jan 25 03:49:01.886284 2018] [slotmem_shm:debug] [pid 47011:tid
139795075143424] mod_slotmem_shm.c(509): AH02302: attach found
/apache24/logs/slotmem-shm-pe1b232bb_balancer1.shm: 1176/2
[Thu Jan 25 03:49:01.899288 2018] [slotmem_shm:debug] [pid 47281:tid
139795075143424] mod_slotmem_shm.c(496): AH02301: attach looking for
/apache24/logs/slotmem-shm-pe1b232bb_balancer1.shm
[Thu Jan 25 03:49:01.899321 2018] [slotmem_shm:debug] [pid 47281:tid
139795075143424] mod_slotmem_shm.c(509): AH02302: attach found
/apache24/logs/slotmem-shm-pe1b232bb_balancer1.shm: 1176/2
[Thu Jan 25 03:53:03.516455 2018] [slotmem_shm:debug] [pid 45813:tid
139795075143424] mod_slotmem_shm.c(364): AH02602: create didn't find
/apache24/logs/slotmem-shm-pe1b232bb_balancer1.shm in global list
[Thu Jan 25 03:53:03.516462 2018] [slotmem_shm:debug] [pid 45813:tid
139795075143424] mod_slotmem_shm.c(374): AH02300: create
/apache24/logs/slotmem-shm-pe1b232bb_balancer1.shm: 1176/2
[Thu Jan 25 03:53:03.516499 2018] [slotmem_shm:error] [pid 45813:tid
139795075143424] (17)File exists: AH02611: create:
apr_shm_create(/apache24/logs/slotmem-shm-pe1b232bb_balancer1.shm) failed



In other words, in the space of five minutes, the balancer was not found in the
global list (03:48:08), successfully created, then found several times, then
went missing at 03:53:03, and then failed to create it, which then triggered an
Apache exit (not shown here)

Rather confusingly, the choice of the DefaultRuntimeDirectory has an impact on
frequence.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: bugs-unsubscr...@httpd.apache.org
For additional commands, e-mail: bugs-h...@httpd.apache.org



[Bug 62043] New: os x version 10.13.2 apache server version 2.4.28 php didn't work

2018-01-25 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=62043

Bug ID: 62043
   Summary: os x version 10.13.2 apache server version 2.4.28 php
didn't work
   Product: Apache httpd-2
   Version: 2.4.28
  Hardware: Macintosh
Status: NEW
  Severity: normal
  Priority: P2
 Component: All
  Assignee: bugs@httpd.apache.org
  Reporter: nku...@gmail.com
  Target Milestone: ---

os x version 10.13.2 apache server version 2.4.28 php didn't work
once update the mac os x to new version, it's override the httpd conf file.
I uncomment php but it didn't work on apache server

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: bugs-unsubscr...@httpd.apache.org
For additional commands, e-mail: bugs-h...@httpd.apache.org