httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 23014] New: - wrong flag passed to shmget in unix/shm.c (libapr bundled with httpd)
Date Tue, 09 Sep 2003 07:03:50 GMT
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=23014>.
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=23014

wrong flag passed to shmget in unix/shm.c (libapr bundled with httpd)

           Summary: wrong flag passed to shmget in unix/shm.c (libapr
                    bundled with httpd)
           Product: Apache httpd-2.0
           Version: 2.0.47
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Platform
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: ken_yap_aus@yahoo.com


testshm fails for filename based shared memory segments on

Linux xxx.xxx.xxx.xxx 2.4.20-18.9 #1 Thu May 29 07:08:16 EDT 2003 i686 i686 i386
GNU/Linux

(RedHat 9)

Reason is apr_file_open is called with O_CREAT and O_EXCL, then the key is
generated, then shmget is called with O_CREAT and O_EXCL, and this fails because
the file already exists. I believe the fix is to remove the O_EXCL from the
shmget call. With this change the second half of the test program works and so
does my module.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message