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
Endless loop when using encoding layer on STDERR #14362
Comments
From @eserteThe following script goes into an endless loop for all modern perl versions (5.8.9 .. 5.21.7, seen on FreeBSD and Linux): #!/usr/bin/perl my $extra_len = shift || 1022; # may be somewhat smaller, down to 970 or so __END__ My guess: the inEncodeCall hack in PerlIO/encoding.xs was triggered, and maybe some file pointer was not advanced. Regards, |
From @jkeenanOn Tue Dec 23 14:23:50 2014, slaven@rezic.de wrote:
On Linux/amd64 (Ubuntu 14.04 LTS), find that if I run the code above I get the alarm after 3 seconds. ##### However, when I edit the file to insert a print to STDERR statement after the assignment to $foo, I get the endless loop. ##### If, however, I print that line to STDOUT, I get the line, then the alarm in a few seconds. Thank you very much. -- |
The RT System itself - Status changed from 'new' to 'open' |
From @eserteDana Uto 23. Pro 2014, 14:50:28, jkeenan reče:
This is already the bug reproduced, unless you have a very (!) slow CPU which needs longer than three seconds for one warn() statement :-). The alarm clock is just there in case somebody wants to turn this into a test script which must not hang. |
From @LeontOn Tue, Dec 23, 2014 at 11:23 PM, slaven@rezic.de <perlbug-followup@perl.org
This sounds like a duplicate of #117537 Leon |
From @eserteDana Tue, 23 Dec 2014 14:23:50 -0800, slaven@rezic.de reče:
Good news: starting with perl 5.29.9 the script does not hang anymore (checked on various FreeBSD and Linux systems). |
Migrated from rt.perl.org#123489 (status was 'open')
Searchable as RT123489$
The text was updated successfully, but these errors were encountered: