You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2003/02/19 00:17:39 UTC
DO NOT REPLY [Bug 17186] New: -
SEGV should sem_open fail in locks/unix/proc_mutex.c
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=17186>.
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=17186
SEGV should sem_open fail in locks/unix/proc_mutex.c
Summary: SEGV should sem_open fail in locks/unix/proc_mutex.c
Product: APR
Version: HEAD
Platform: PC
OS/Version: Linux
Status: NEW
Severity: Normal
Priority: Other
Component: APR
AssignedTo: bugs@httpd.apache.org
ReportedBy: sherod@pillardata.com
In httpd-2.0.44 if the sem_open function on line 120 of unix/proc_mutex.c
fails, the clean-up that occurs from the call on line 124 of the same file
will fail since the semaphore (psem) is not a valid file descriptor. The
error actually is in line 82 of the same file in the sem_close() call. (In
fact, the mutex filedes will contain nonsense which might do unforeseen evil
things later.)
A simple fix would be to insert at line 124 of unix/proc_mutex.c:
new_mutex->interproc->filedes = -1;
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org