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 34009] New: - Setting RLimitMEM prevents CGI scripts from running
Date Mon, 14 Mar 2005 15:15:26 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=34009>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34009

           Summary: Setting RLimitMEM prevents CGI scripts from running
           Product: Apache httpd-2.0
           Version: 2.0.53
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: critical
          Priority: P3
         Component: Core
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: public@wernig.net


Hi

I'v upgraded from 2.0.52 to 2.0.53 on Solaris9, using the same configure options
for both builds. gcc is 3.4.0 and 3.3.2 (happened on both servers).
MPM=worker, 1 CPU


I have 
RLimitCPU 30 60
RLimitMEM 524288 1048576

in the main httpd.conf. I suppose this applies to all children, then?

While this worked fine under 2.0.52, after the upgrade all CGI scripts (perl,
ksh) get immediately killed on all virtual hosts.
I get a 500 Premature end of script headers in the browser and error log.
Additionally, the error log (sometimes!) reports:

[Sat Mar 12 21:50:39 2005] [error] [client a.b.c.d] ld.so.1: /usr/bin/ksh:
fatal: /dev/zero: mmap anon failed: Not enough space

The same results from scripts running with suexec:
[Mon Mar 14 15:49:36 2005] [error] [client w.x.y.z] ld.so.1:
/usr/local/apache2/bin/suexec: fatal: /dev/zero: mmap anon failed: Not enough
space

When I disable RLimitMEM in the main httpd.conf, the scripts run normally on all
virtual hosts. 
When I enable it selectively on specific virtual hosts, CGI scripts get killed
on those hosts only.

The RLimitCPU directive does not seem to have any effect on this behaviour.
I've not checked though if it works at all.



Some perhaps relevant lines of output from configure:
srclib/apr/config.log:configure:28748: result: decision on anonymous shared
memory allocation method... 4.4BSD-style mmap() via MAP_ANON
srclib/apr/config.log:configure:28451: checking for mmap that can map /dev/zero
srclib/apr/config.log:havemmapzero='1'
srclib/apr/config.log:usemmapzero='0'
srclib/apr/config.status:s,@usemmapzero@,0,;t t
srclib/apr/config.status:s,@havemmapzero@,1,;t t

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message