tail'ing a file in a script session hangs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
util-linux (Debian) |
Fix Released
|
Unknown
|
|||
util-linux (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Xenial |
Fix Released
|
High
|
Unassigned |
Bug Description
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:/
$ lsb_release -rd
Description: Ubuntu Xenial Xerus (development branch)
Release: 16.04
$ apt-cache policy util-linux bsdutils coreutils
util-linux:
Installed: 2.27.1-4ubuntu1
Candidate: 2.27.1-4ubuntu1
Version table:
*** 2.27.1-4ubuntu1 500
500 http://
100 /var/lib/
2.
500 http://
bsdutils:
Installed: 1:2.27.1-4ubuntu1
Candidate: 1:2.27.1-4ubuntu1
Version table:
*** 1:2.27.1-4ubuntu1 500
500 http://
100 /var/lib/
1:
500 http://
coreutils:
Installed: 8.25-2ubuntu2
Candidate: 8.25-2ubuntu2
Version table:
*** 8.25-2ubuntu2 500
500 http://
100 /var/lib/
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: util-linux 2.27.1-4ubuntu1
ProcVersionSign
Uname: Linux 4.4.0-10-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20-0ubuntu3
Architecture: amd64
CurrentDesktop: Unity
Date: Fri Mar 4 15:14:15 2016
SourcePackage: util-linux
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in util-linux (Ubuntu): | |
importance: | Undecided → High |
tags: | added: regression-release |
description: | updated |
Changed in util-linux (Debian): | |
status: | Unknown → New |
Changed in util-linux (Debian): | |
status: | New → Confirmed |
Changed in util-linux (Debian): | |
status: | Confirmed → Fix Released |
I couldn't reproduce it. Can you post strace output of script? There will be more than one script process -- chose the one that is consuming 100% CPU and run something like:
$ strace -tt -p <pid of scrip> >/tmp/strace.out
Let it run for about 15 seconds and exit. Then upload the output.