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 2011/06/16 06:48:48 UTC

DO NOT REPLY [Bug 51383] New: cgi hung by ErrorLog syslog

https://issues.apache.org/bugzilla/show_bug.cgi?id=51383

             Bug #: 51383
           Summary: cgi hung by ErrorLog syslog
           Product: Apache httpd-2
           Version: 2.0-HEAD
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: All
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: chenwsh@ffcs.cn
    Classification: Unclassified


Server version: Apache/1.3.41 (Unix)  (Red-Hat/Linux)

the cgi has following source
#!/bin/sh
tar xzf /save/etc.tgz
/bin/rm -f etc/device
.......

the tar command may create following message(stderr)
tar: etc/version: time stamp 2009-05-28 14:39:00 is 252030566 s in the future
tar: etc/aaa: time stamp 2009-05-28 14:39:00 is 252030566 s in the future
........

in the apache configure file,when setting 
ErrorLog syslog
In this state,when tar command generates a large number of messages,
the cgi will be hung in the command "tar xzf /save/etc.tgz".

In Linux versions before 2.6.11, the capacity of a pipe was 4096 bytes.
so in linux 2.4.20 when the tar messages total length over 4096bytes,hanging
the script's execution(tar command).

Since Linux 2.6.11, the pipe capacity is 65536 bytes. 
so in linux 2.6.18 when the messages total length over 65536bytes,hanging the
script's execution(tar command).

But if the apache configure file is modified as follows,
Errorlog /dev/null
the cgi will not be hung.

why the cgi is hung when apache setting "ErrorLog syslog"?
Is apache's bug ?

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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


DO NOT REPLY [Bug 51383] cgi hung by ErrorLog syslog

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51383

--- Comment #1 from chenwsh <ch...@ffcs.cn> 2011-06-16 04:59:40 UTC ---
when setting ErrorLog /dev/null,it will not be hung,why?

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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


[Bug 51383] cgi hung by ErrorLog syslog

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51383

Takashi Sato <ta...@tks.st> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |RESOLVED
         Resolution|---                         |INVALID

--- Comment #3 from Takashi Sato <ta...@tks.st> ---
no response from the reporter

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


DO NOT REPLY [Bug 51383] cgi hung by ErrorLog syslog

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51383

Stefan Fritsch <sf...@sfritsch.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #2 from Stefan Fritsch <sf...@sfritsch.de> 2011-06-29 17:32:58 UTC ---
(In reply to comment #0)
> Server version: Apache/1.3.41 (Unix)  (Red-Hat/Linux)

Does this happen also with 2.2.x? 1.3 has reached end of life (that's why it's
not possible to open new PRs for it).

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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