There is a known issue in libfcgi that has been fixed for ages in 2.4.1-SNAP-0311112127. (See http://www.fastcgi.com/dist/fcgi-2.4.1-SNAP-0311112127.tar.gz) As noted in the README, *) Fix fcgi_streambuf::underflow() such that when there is no buffer the character isn't removed. AIDA Shinra <shinra@j10n.org> *) Add attach() and detach() support. Reproducible: Always Steps to Reproduce: 1. Compile a FastCGI that uses iostream. 2. Read from the input stream. Actual Results: Missing characters. Expected Results: No missing characters.
Created attachment 174615 [details] new ebuild incorporating iostream::underflow patch
Created attachment 174617 [details] iostream::underflow patch A diff between http://www.fastcgi.com/dist/fcgi-2.4.0.tar.gz and http://www.fastcgi.com/dist/fcgi-2.4.1-SNAP-0311112127.tar.gz
Thanks for submitting this fix! Assigning to maintainer.
I think it will be more transparent to just add the "new" SNAP version to portage instead of patching the 2.4.0 version, but that needs a bit of work due to the weird upstream version number.
I've just added fcgi-2.4.1-pre-0311112127 to CVS.