Subject: | "deflate failed, error -5 (buffer error)" in some situations |
To reproduce:
$ NYTPROF=stmts=0:subs=0 perl -d:NYTProf -e '1'
deflate failed, error -5 (buffer error) in pid 55363.
END failed--call queue aborted.
The cause seems to be that deflate() may be called with avail_in==0 and nothing to flush. http://www.zlib.net/manual.html#deflate