ls only on ~/ hangs in state S after wakeup from suspend unless done with strace
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
coreutils (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Recently (last 1 month) I encounter the problem that after waking up the computer from sleep mode (suspend to RAM) sometimes the home directory (encrypted) becomes inaccessible to programs.
For example ls ~/ will just hang in S mode.
Attaching an strace to ls from another console does not show anything, not even a started syscall.
Starting ls as root on the problematic home directory also hangs.
The only way I found to undo the hang is a reboot.
dmesg and journalctl does not show anything I could recognize as out-of-
Starting strace ls as root on the problematic home directory does not hang but return the correct list of files and exits with 0. See the strace below.
/home/ps# strace ls .
execve("/bin/ls", ["ls", "."], 0x7fff47d1b0e8 /* 34 vars */) = 0
brk(NULL) = 0x556ccc4f4000
access(
access(
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=
mmap(NULL, 143444, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fed83c38000
close(3) = 0
access(
openat(AT_FDCWD, "/lib/x86_
read(3, "\177ELF\
fstat(3, {st_mode=
mmap(NULL, 8192, PROT_READ|
mmap(NULL, 2259152, PROT_READ|
mprotect(
mmap(0x7fed83a3
mmap(0x7fed83a3
close(3) = 0
access(
openat(AT_FDCWD, "/lib/x86_
read(3, "\177ELF\
fstat(3, {st_mode=
mmap(NULL, 4131552, PROT_READ|
mprotect(
mmap(0x7fed8380
mmap(0x7fed8380
close(3) = 0
access(
openat(AT_FDCWD, "/lib/x86_
read(3, "\177ELF\
fstat(3, {st_mode=
mmap(NULL, 2560264, PROT_READ|
mprotect(
mmap(0x7fed8341
close(3) = 0
access(
openat(AT_FDCWD, "/lib/x86_
read(3, "\177ELF\
fstat(3, {st_mode=
mmap(NULL, 2109712, PROT_READ|
mprotect(
mmap(0x7fed831a
close(3) = 0
access(
openat(AT_FDCWD, "/lib/x86_
read(3, "\177ELF\
fstat(3, {st_mode=
mmap(NULL, 2221184, PROT_READ|
mprotect(
mmap(0x7fed82fa
mmap(0x7fed82fa
close(3) = 0
mmap(NULL, 8192, PROT_READ|
arch_prctl(
mprotect(
mprotect(
mprotect(
mprotect(
mprotect(
mprotect(
mprotect(
munmap(
set_tid_
set_robust_
rt_sigaction(
rt_sigaction(
rt_sigprocmask(
prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=
statfs(
statfs("/selinux", 0x7ffcd3925a20) = -1 ENOENT (No such file or directory)
brk(NULL) = 0x556ccc4f4000
brk(0x556ccc515000) = 0x556ccc515000
openat(AT_FDCWD, "/proc/
fstat(3, {st_mode=
read(3, "nodev\
read(3, "", 1024) = 0
close(3) = 0
access(
openat(AT_FDCWD, "/usr/lib/
fstat(3, {st_mode=
mmap(NULL, 10281936, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fed823b8000
close(3) = 0
ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, TIOCGWINSZ, {ws_row=24, ws_col=80, ws_xpixel=0, ws_ypixel=0}) = 0
stat(".", {st_mode=
openat(AT_FDCWD, ".", O_RDONLY|
fstat(3, {st_mode=
getdents(3, /* 99 entries */, 32768) = 3232
getdents(3, /* 0 entries */, 32768) = 0
close(3) = 0
fstat(1, {st_mode=
write(1, "_archive.svn Downloads\t\t\t _"..., 49_archive.svn Downloads _oewf _science
) = 49
write(1, "bin\t _epu\t\t\t oewf.code-"..., 50bin _epu oewf.code-workspace _setup
) = 50
write(1, "_xxxxxxx epu-management.
) = 65
write(1, "Databases.db examples.
) = 63
write(1, "debug.txt hex-ai4eu.
) = 65
write(1, "Desktop _homepage\t\t\t P"..., 40Desktop _homepage Pictures
) = 40
write(1, "Documents _management\t\t "..., 42Documents _management _xxxxxxxx
) = 42
write(1, "_xxxxxxx Music\t\t\t Publi"..., 34_xxxxxxx Music Public
) = 34
close(1) = 0
close(2) = 0
exit_group(0) = ?
+++ exited with 0 +++
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: coreutils 8.28-1ubuntu1
ProcVersionSign
Uname: Linux 5.0.0-32-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.9-0ubuntu7.8
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Thu Oct 31 08:48:09 2019
EcryptfsInUse: Yes
InstallationDate: Installed on 2019-04-06 (207 days ago)
InstallationMedia: Ubuntu 18.04.2 LTS "Bionic Beaver" - Release amd64 (20190210)
SourcePackage: coreutils
UpgradeStatus: No upgrade log present (probably fresh install)
I forgot to mention: when attaching strace to the problematic ls, strace also hangs and cannot be interrupted with CTRL+C - the console is practically dead.