Description of problem: There is a regression in Perl interpreter on Fedora 16 (compared to Fedora 15). Please find attached a complete reproducer. In brief, imagine the following snippet of code: local $SIG{'ALRM'} = \&callback; while (<PIPE>) { ; } When multiple SIGALRM signals arrive during a single read() syscall. The cycle is ended, even thought there are unread data in the pipe. Version-Release number of selected component (if applicable): Fedora 16 perl-5.14.2-191.fc16.x86_64 How reproducible: Deterministic with the attached reproducer. Steps to Reproduce: 1. # /usr/bin/perl reproducer.pl 2. 3. Actual results: Only a first 8kb of pipe is read. The reproducer.pl prints-out: 8192 bytes processed. Expected results: Whole pipe should be read. The reproducer.pl prints-out something like: 4132049 bytes processed. Additional info:
Created attachment 547150 [details] The reproducer
Created attachment 547151 [details] Strace of the reproducer Please note the line 248, where the read() syscall resumes from alarms and sends 8192 bytes of data. Perl ends up the cycle immediately.
At least it's working with 5.10.x. I'll try bisect to find the rotten commit.
I've already tried to rebuild perl-5.12.4-163 from Fedora 15 on Fedora 16 and the bug was not reproducible any more.
Created attachment 548881 [details] Fix Marcela found this fix in development tree in commit be48bbe8d671b6841c3ec7cb734b98071afe3cd9.
perl-5.14 / F17--16 affected only.
perl-5.14.2-193.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/perl-5.14.2-193.fc16
Package perl-5.14.2-193.fc16: * should fix your issue, * was pushed to the Fedora 16 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing perl-5.14.2-193.fc16' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2011-17271/perl-5.14.2-193.fc16 then log in and leave karma (feedback).
perl-5.14.2-193.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report.