TL;DR: Bug happened again, workaround works.
Have not tried dd yet, but whenever the bug happen I open a shell, use
bash Ctrl-R to find the one-liner below, press enter and expect that it
works around the bug.
for PROCESSLINE in $( grep -a ^script /proc/*/cmdline -l ) ; do cd
$(dirname $PROCESSLINE) ; pwd ; ls -al fd ; strace head -n 1 fd/4 & echo
voila ; done
It did.
Here's a relevant part of strace output:
open("fd/4", O_RDONLY) = 3
read(3, "\n", 8192) = 1
lseek(3, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek)
fstat(3, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 9), ...}) = 0
fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 12), ...}) = 0
write(1, "\n", 1
) = 1
close(3) = 0
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1558236
Title:
/usr/bin/script freezes and eats all CPU, has to be killed, which
kills shell and programs inside
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/1558236/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs