BUG REPORT

James M. Swenson (swensonj@netcom.com)
Thu, 16 Jan 1997 01:31:33 -0700 (MST)

From: swensonj@netcom.com (James M. Swenson)
Message-Id: <199701160831.BAA13156@netcom23.netcom.com>
Subject: BUG REPORT
To: fastcgi-developers@OpenMarket.com
Date: Thu, 16 Jan 1997 01:31:33 -0700 (MST)


Name:  Jim Swenson
Email: swensonj@netcom.com

OS: 
    _ Sun Solaris 2.5

Web Server:
    _ Apache Web Server,		Version: 1.1.1

FastCGI application's language:
    _ Perl,				Version: 5.003

FastCGI Developer's Kit  		Version: 1.5
mod_fastcgi (if applicable)		Version: 1.3.3

Directives:
    AppClass: AppClass /lhome/jswenson/apache/htdocs/user/bad.fas \
              -listen-queue-depth 10 -processes 1 -restart-delay 10

Description of the problem:

On a rare occasion, I've seen Apache generating the following when
running my Fast CGIs:

    Assertion failed: len > 0, file mod_fastcgi.c, line 1564

I finally ran across a repeatable test case.  For a given set of input data,
I got the error every time.  I suspected it was being caused by the
output from the script, so I wrote the output to a file instead and
then cobbled up the attached test Fast CGI (bad.fas).  It throws the error
every time.

- Jim

------- cut here --------
begin 755 bad.fas.gz
M'XL("$;9W3(  V)A9"YF87, [5KK;]LX$O\NH/_#K-)N$\"V_,BKB>T[OY*X
MZ]@^6VW0PP(!+=$6KQ*II:BX[F'_]YV1;,<IBFS;#XL"B>'8H<@9#H>_>9'>
M^\51L7%F0CHQUZ%EM7N7_2'\WP)\Q6D2[/^[/^P4X(_E/CAIHIU0>2QT0C'+
MQL/!P;GUIV6E"8>+SF7_W++V]N!&Z8_ M$JE#R;@8/,H-BL04AC!0N#R3F@E
M(RZ-#;-T021N(!+ -P-?>2EU<9_ZD C&--$%2PQ.4 *8<DX4R^6R-,>'WD*4
M/!4Y$1-AD6DO$'?<*9>/#TN!B4*8*PV1TAF)SPT.2DJ6M0Q$R&%__Z582.P\
M@ 9PY@7PJC=\?X"KQR7E8_9I56=GS/-X;/8/H-F ,@W(]/,R,5K(1:->MWO#
M[NABZKZ[N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