Bug#820843: tail'ing a file in a script session hangs

2016-04-13 Thread Simon Deziel
Hi Andreas,

On 2016-04-13 06:49 AM, Andreas Henriksson wrote:
>> This regression was introduced upstream by this commit:
>> https://git.kernel.org/cgit/utils/util-linux/util-linux.git/commit/?id=54c6611d6f7b73609a5331f4d0bcf63c4af6429e
> 
> Thanks for your exemplary bug report. I mentioned it to upstream which
> promptly answered that it's now fixed in
> https://git.kernel.org/cgit/utils/util-linux/util-linux.git/commit/?id=b2bff0666101213d5ce9fc4166d8fc5b17581f57

What a quick turnaround! Thank you and Karel too.

I'm lucky as the patch applies cleanly on Ubuntu's version which is
where the bug was first noticed [*].

> Please feel free to notify upstream directly in the future if you find
> any similar issues.

Will do.

> PS. Please note that tailf is deprecated. Use tail -f 

Good to know. FTR, "tail -f" is what I noticed the problem with but I
switched to tailf because it was from the same source tree so easier to
bisect.

Regards,
Simon

*: https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/1553353



Bug#820843: tail'ing a file in a script session hangs

2016-04-13 Thread Andreas Henriksson
Control: tags -1 + upstream fixed-upstream
Control: forwarded -1 
https://git.kernel.org/cgit/utils/util-linux/util-linux.git/commit/?id=b2bff0666101213d5ce9fc4166d8fc5b17581f57

Hello Simon Deziel.

On Tue, Apr 12, 2016 at 08:12:56PM -0400, Simon Deziel wrote:
> Package: util-linux
> Version: 2.27.1-6
> 
> Hello,
> 
> I noticed a regression after upgrading from 2.26.2 to 2.27.1. Here are
> the steps to reproduce:
> 
> 1) Start script session (same issue when script is saving to /dev/null)
> script # or: script /dev/null
> 2) Tail a file
> tailf /var/log/syslog
> 3) Press "Enter" 2 times
> 4) Notice the script process taking 100% CPU
> 
> This regression was introduced upstream by this commit:
> https://git.kernel.org/cgit/utils/util-linux/util-linux.git/commit/?id=54c6611d6f7b73609a5331f4d0bcf63c4af6429e

Thanks for your exemplary bug report. I mentioned it to upstream which
promptly answered that it's now fixed in
https://git.kernel.org/cgit/utils/util-linux/util-linux.git/commit/?id=b2bff0666101213d5ce9fc4166d8fc5b17581f57

Please feel free to notify upstream directly in the future if you find
any similar issues.

Regards,
Andreas Henriksson

PS. Please note that tailf is deprecated. Use tail -f 



Bug#820843: tail'ing a file in a script session hangs

2016-04-12 Thread Simon Deziel
Package: util-linux
Version: 2.27.1-6

Hello,

I noticed a regression after upgrading from 2.26.2 to 2.27.1. Here are
the steps to reproduce:

1) Start script session (same issue when script is saving to /dev/null)
script # or: script /dev/null
2) Tail a file
tailf /var/log/syslog
3) Press "Enter" 2 times
4) Notice the script process taking 100% CPU

This regression was introduced upstream by this commit:
https://git.kernel.org/cgit/utils/util-linux/util-linux.git/commit/?id=54c6611d6f7b73609a5331f4d0bcf63c4af6429e

Thanks,
Simon