www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Pietro <greg.pie...@fairchildsemi.com>
Subject os-hpux/8705: httpd daemon creates a defunct shared memory segment when started
Date Wed, 07 Nov 2001 20:07:05 GMT

>Number:         8705
>Category:       os-hpux
>Synopsis:       httpd daemon creates a defunct shared memory segment when started
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Wed Nov 07 12:10:01 PST 2001
>Originator:     greg.pietro@fairchildsemi.com
>Release:        1.3.22
OS:  HP-UX 11.0, 10.20
Patch Level: latest
Compiler: Tried gcc 2.8.1 and gcc 2.9.5
Apache Version: up to 1.3.22
Uname -a:  HP-UX fsce02 B.11.00 A 9000/800 76224 two-user license
I have compile 3 different version of apache 1.3.1, 1.3.20, and 1.3.22 with to different version
of gcc 2.8.1 and gcc 2.9.5.  All create a defunct shared memory segment when started.


Note:  The capital "D" indicates that the segment is defunct, or that a segment has been deleted
with proccesses still attached

# ipcs -pm
IPC status from /dev/kmem as of Wed Nov  7 14:57:20 2001
T      ID     KEY        MODE        OWNER     GROUP  CPID  LPID
Shared Memory:
m    5123 0x00000000 D-rw-------       web     psoft  3637  3637

# ps -fp 3637 
    root  3637     1  0  Oct 29  ?         1:23 /opt/apache/sbin/httpd
The problem is very easy to repeat.  Just compile apache with the standard directives and
start the httpd daemon (apachectl start). I have reproduced it on a hp-ux 10.20 and 11.0 system.
A shared memory segment is defunct when the associated shared memory segment has been removed,
however there are processes still attached to it.  You can probably fix it by detaching all
the proccesses from the segment before deleting it.
 [In order for any reply to be added to the PR database, you need]
 [to include <apbugs@Apache.Org> in the Cc line and make sure the]
 [subject line starts with the report component and number, with ]
 [or without any 'Re:' prefixes (such as "general/1098:" or      ]
 ["Re: general/1098:").  If the subject doesn't match this       ]
 [pattern, your message will be misfiled and ignored.  The       ]
 ["apbugs" address is not added to the Cc line of messages from  ]
 [the database automatically because of the potential for mail   ]
 [loops.  If you do not include this Cc, your reply may be ig-   ]
 [nored unless you are responding to an explicit request from a  ]
 [developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]

View raw message