httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sander Striker" <stri...@apache.org>
Subject [BUG] Limit test 10 is failing
Date Tue, 12 Mar 2002 11:20:09 GMT
Hi,


Using the perl testsuite I see Limit test 10 failing:
# t/TEST

using Apache/2.0.34-dev (prefork MPM)

Failed Test  Status Wstat Total Fail  Failed  List of failed
-------------------------------------------------------------------------------
apache/limits.t              10    1  10.00%  10
modules/cgi.t                36   21  58.33%  2, 4, 10, 12, 14, 16, 18, 20, 22,
                                              24-27, 29-36
10 tests skipped.
server localhost.localdomain:8529 shutdown
error running tests (please examine t/logs/error_log)

The error log doesn't reveal anything special.


So, we try with:
# t/TEST -d 'lwp'

[...]
# Testing LimitRequestBody; should fail
# Chunked transfer-encoding disabled
#lwp request:
#GET http://localhost.localdomain:8529/limits/ HTTP/1.0
#User-Agent: libwww-perl/5.53
#Content-Type: text/plain
#X-Subtest: 10
#
#server response:
#500 (Internal Server Error) short write
#
#Content-Length: 0
#Client-Date: Tue, 12 Mar 2002 09:16:52 GMT
#X-Content-Length-Note: added by Apache::TestRequest
#
# testing : Test #10
# expected: 413
# received: 500
not ok 10
# Failed test 10 in apache/limits.t at line 123 fail #2
# Server response:
# 500 (Internal Server Error) short write
#$
# Content-Length: 0
# Client-Date: Tue, 12 Mar 2002 09:16:52 GMT
# X-Content-Length-Note: added by Apache::TestRequest
#$
#$
#$
FAILED test 10

Well, this is kind of strange, considering the error log:
[Tue Mar 12 11:42:07 2002] [error] [client 127.0.0.1] Requested content-length of 131072 is
larger than the configured limit of
65536

And access log:
127.0.0.1 - - [12/Mar/2002:11:21:15 +0100] "GET /limits/ HTTP/1.0" 413 811

It seems that the correct response code is logged, but not returned.
Wondering if I could discover something while running under gdb, I tried:
# t/TEST -debug
GNU gdb 5.0
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...
[New Thread 1024 (LWP 14460)]

And in another shell I reran the limit test:
# t/TEST -run t/apache/limits
apache/limits.......NOK 10FAILED test 10
        Failed 1/10 tests, 90.00% okay
Failed Test  Status Wstat Total Fail  Failed  List of failed
-------------------------------------------------------------------------------
apache/limits.t              10    1  10.00%  10
error running tests (please examine t/logs/error_log)


But when I put a breakpoint at ap_http_filter and continue
everytime I hit the breakpoint while running the test:

# t/TEST -run t/apache/limits
apache/limits.......ok
All tests successful.
Files=1, Tests=10, 24 wallclock secs ( 0.66 cusr +  0.06 csys =  0.72 CPU)

??

Thoughts?

FYI, this is on Linux 2.4.2, glibc 2.2.2, autoconf 2.52, libtool 1.4.2, gcc 2.95.2.1

httpd-2.0 HEAD (duh).


Sander


Mime
View raw message