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 50934] New: Intermittent empty HTTP response header in CGI request
Date Tue, 15 Mar 2011 15:44:35 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=50934

           Summary: Intermittent empty HTTP response header in CGI request
           Product: Apache httpd-2
           Version: 2.2.17
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_cgi
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: noliveira@hostopia.com


Created an attachment (id=26773)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=26773)
Apache httpd startup script

When issuing HTTP CGI requests, the server sometimes returns an empty HTTP
response. This is an intermittent problem and seems to happen randomly.
I've reproduced it in at least 1 request in 100,000, using a very simple Perl
CGI script. With other scripts, I've had this issue happening a few (less than
10)
times in 100,000 requests as well. The problem happens both when using HTTPS as
well as HTTP.

I've used an unmodified Apache 2.2.17 version, compiled with:

--enable-layout=Apache --enable-mods --enable-so --enable-vhost-alias
--enable-ssl --enable-expires --enable-rewrite --enable-proxy --enable-speling
--enable-deflate --enable-headers --disable-stat

The build platform is a Linux 2.6.18.8 i686 and the list of shared libraries
is:

    libz.so.1 => /lib/libz.so.1 (0x4001c000)
    libssl.so.0.9.8 => /usr/lib/libssl.so.0.9.8 (0x4002b000)
    libcrypto.so.0.9.6 => /usr/lib/libcrypto.so.0.9.6 (0x4006c000)
    libm.so.6 => /lib/libm.so.6 (0x40140000)
    libaprutil-1.so.0 => /services/apache2217-original/lib/libaprutil-1.so.0
(0x40163000)
    libexpat.so.0 => /usr/lib/libexpat.so.0 (0x4017f000)
    libiconv.so.2 => /usr/lib/libiconv.so.2 (0x4019f000)
    libapr-1.so.0 => /services/apache2217-original/lib/libapr-1.so.0
(0x4027e000)
    librt.so.1 => /lib/librt.so.1 (0x402a3000)
    libcrypt.so.1 => /lib/libcrypt.so.1 (0x402b4000)
    libpthread.so.0 => /lib/libpthread.so.0 (0x402e6000)
    libdl.so.2 => /lib/libdl.so.2 (0x402fb000)
    libc.so.6 => /lib/libc.so.6 (0x402fe000)
    libcrypto.so.0.9.8 => /usr/lib/libcrypto.so.0.9.8 (0x4041e000)
    /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

The server has version 5.6.1 of Perl installed, though this may not be relevant
to the issue. The CGI script is attached to this bug report and is installed in
a directory named:
/services/apache2217-original/htdocs/cranfordpub.com/cgi-bin/stress

I setup a test to send 100,000 HTTP get request to the CGI script, using JMeter
(version 2.4) and have had an empty HTTP response at least once in 100,000
requests. This response is logged by JMeter about 20 seconds after the request
was initiated and doesn't appear to fork the CGI process. It appears that the
problem occurs before the script has a chance to run.

The GET request is

http://server.dns.address/cgibin/stress/stress_test.cgi?/Merchant2/merchant.mv+Session_ID=4D12622E000AA3BD000069C400000000&Screen=LOGN&Order=1&Store_Code=CPOS

The parameters for this test are irrelevant and only mimic a request to a
different production script.

The attached CGI script logs each request with a timestamp in a temporary file
in /tmp.

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


Mime
View raw message