httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 55449] AH01185: worker slotmem_create failed --> slotmem file name/ID not unique
Date Thu, 22 Aug 2013 21:01:47 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=55449

--- Comment #2 from enteiser@googlemail.com ---
We experience semaphore collisions too when there a many apache instances on a
machine. Apache tries to create a semaphore which is already occupied by
another users apache instance.

If I interpret the code correctly the username prefix for the ID won't work
because the ID is passed to shmget, and key_t is an integer.

So various data is passed to a hash function to create a unique key_t. To me it
seems it's not so unique and collisions are more likely than intended?

Isn't it possible to use IPC_PRIVATE?

For quick lookup:

AH01179 happens here in line 797:
http://svn.apache.org/viewvc/httpd/httpd/tags/2.4.6/modules/proxy/mod_proxy_balancer.c?revision=1503324&view=markup

conf->id is some hashed value of some data created in line 766, and is
presumably passed as key_t to shmget at the end.

-- 
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


Mime
View raw message