New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
reading a line from a filehandle results in eating all ram #15062
Comments
From michael.adamcik@pro-pos.atCreated by michael.adamcik@pro-pos.atThis is a bug report for perl from michael.adamcik@pro-pos.at, ----------------------------------------------------------------- i will attach a small script and the html which procuce this behaviour. Perl Info
|
From @tonycozOn Mon Nov 23 17:40:12 2015, michael.adamcik@pro-pos.at wrote:
This looks like a bug in Encode for that encoding, it isn't consuming any of the supplied data, so PerlIO::encoding can't fill it's buffer. As to the memory usage, I suspect that's from the temp svs returned by the call to the decode() method. In the usual case there would only be one or two temps before the code fell through to the FREETMPS at the end of PerlIOEncode_fill(), but in this case the code is looping so the memory doesn't get freed. Tony |
From @tonycoz |
The RT System itself - Status changed from 'new' to 'open' |
From @tonycozOn Mon Nov 23 21:51:09 2015, tonyc wrote:
Reported upstream as https://rt.cpan.org/Ticket/Display.html?id=109555 Perhaps PerlIOEncode_fill() should be more robust - if it reaches end-of-file on the lower layer and the decoder still isn't returning any data, croak. Tony |
Migrated from rt.perl.org#126719 (status was 'open')
Searchable as RT126719$
The text was updated successfully, but these errors were encountered: