ls only on ~/ hangs in state S after wakeup from suspend unless done with strace

Bug #1850756 reported by Peter Schüller
6
This bug affects 1 person
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-the-ordinary.

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("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=143444, ...}) = 0
mmap(NULL, 143444, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fed83c38000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libselinux.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\20b\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=154832, ...}) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fed83c36000
mmap(NULL, 2259152, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fed8380d000
mprotect(0x7fed83832000, 2093056, PROT_NONE) = 0
mmap(0x7fed83a31000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x24000) = 0x7fed83a31000
mmap(0x7fed83a33000, 6352, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fed83a33000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\260\34\2\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=2030544, ...}) = 0
mmap(NULL, 4131552, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fed8341c000
mprotect(0x7fed83603000, 2097152, PROT_NONE) = 0
mmap(0x7fed83803000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1e7000) = 0x7fed83803000
mmap(0x7fed83809000, 15072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fed83809000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libpcre.so.3", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0 \25\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=464824, ...}) = 0
mmap(NULL, 2560264, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fed831aa000
mprotect(0x7fed8321a000, 2097152, PROT_NONE) = 0
mmap(0x7fed8341a000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x70000) = 0x7fed8341a000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\16\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=14560, ...}) = 0
mmap(NULL, 2109712, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fed82fa6000
mprotect(0x7fed82fa9000, 2093056, PROT_NONE) = 0
mmap(0x7fed831a8000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7fed831a8000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0000b\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=144976, ...}) = 0
mmap(NULL, 2221184, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fed82d87000
mprotect(0x7fed82da1000, 2093056, PROT_NONE) = 0
mmap(0x7fed82fa0000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x19000) = 0x7fed82fa0000
mmap(0x7fed82fa2000, 13440, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fed82fa2000
close(3) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fed83c34000
arch_prctl(ARCH_SET_FS, 0x7fed83c35040) = 0
mprotect(0x7fed83803000, 16384, PROT_READ) = 0
mprotect(0x7fed82fa0000, 4096, PROT_READ) = 0
mprotect(0x7fed831a8000, 4096, PROT_READ) = 0
mprotect(0x7fed8341a000, 4096, PROT_READ) = 0
mprotect(0x7fed83a31000, 4096, PROT_READ) = 0
mprotect(0x556cca737000, 8192, PROT_READ) = 0
mprotect(0x7fed83c5c000, 4096, PROT_READ) = 0
munmap(0x7fed83c38000, 143444) = 0
set_tid_address(0x7fed83c35310) = 14467
set_robust_list(0x7fed83c35320, 24) = 0
rt_sigaction(SIGRTMIN, {sa_handler=0x7fed82d8ccb0, sa_mask=[], sa_flags=SA_RESTORER|SA_SIGINFO, sa_restorer=0x7fed82d99890}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {sa_handler=0x7fed82d8cd50, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART|SA_SIGINFO, sa_restorer=0x7fed82d99890}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
statfs("/sys/fs/selinux", 0x7ffcd3925a20) = -1 ENOENT (No such file or directory)
statfs("/selinux", 0x7ffcd3925a20) = -1 ENOENT (No such file or directory)
brk(NULL) = 0x556ccc4f4000
brk(0x556ccc515000) = 0x556ccc515000
openat(AT_FDCWD, "/proc/filesystems", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
read(3, "nodev\tsysfs\nnodev\trootfs\nnodev\tr"..., 1024) = 423
read(3, "", 1024) = 0
close(3) = 0
access("/etc/selinux/config", F_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=10281936, ...}) = 0
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=S_IFDIR|0700, st_size=20480, ...}) = 0
openat(AT_FDCWD, ".", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
fstat(3, {st_mode=S_IFDIR|0700, st_size=20480, ...}) = 0
getdents(3, /* 99 entries */, 32768) = 3232
getdents(3, /* 0 entries */, 32768) = 0
close(3) = 0
fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 2), ...}) = 0
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.cod"..., 65_xxxxxxx epu-management.code-workspace _organisator snap
) = 65
write(1, "Databases.db examples.desktop\t\t"..., 63Databases.db examples.desktop peschue1-s3ql Templates
) = 63
write(1, "debug.txt hex-ai4eu.code-wor"..., 65debug.txt hex-ai4eu.code-workspace pgadmin.log Videos
) = 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
ProcVersionSignature: Ubuntu 5.0.0-32.34~18.04.2-generic 5.0.21
Uname: Linux 5.0.0-32-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
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)

Revision history for this message
Peter Schüller (schueller-p) wrote :
Revision history for this message
Peter Schüller (schueller-p) wrote :

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.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.