Adding on to this to say we're experiencing this issue on all Ubuntu 18.04 systems and we're also running xfs for a filesystem. It seems to be related to /var/lib/lxcfs on all of those systems. When we exclude /var/lib/lxcfs from du, it completes without core dumping.
root@system:/var# du --exclude 'lib/lxcfs/*' -h -d 1 . 3.1G ./log 14M ./backups 3.0G ./cache 480K ./crash 444M ./lib 0 ./local 4.0K ./mail 0 ./opt 1.3M ./spool 4.0K ./tmp 12K ./www 6.5G . root@system:/var# du -h --max-depth=1 . 873M ./log 14M ./backups 178M ./cache 312K ./crash Aborted (core dumped) -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to coreutils in Ubuntu. https://bugs.launchpad.net/bugs/1788060 Title: du program crashes on /var/lib Status in coreutils package in Ubuntu: Expired Bug description: We have an Ubuntu 18 installation using xfs file systems user@hostname:~$ df Filesystem 1K-blocks Used Available Use% Mounted on udev 1989640 0 1989640 0% /dev tmpfs 404008 848 403160 1% /run /dev/sda1 9754624 3083376 6671248 32% / tmpfs 2020032 0 2020032 0% /dev/shm tmpfs 5120 0 5120 0% /run/lock tmpfs 2020032 0 2020032 0% /sys/fs/cgroup /dev/sda2 11194368 958336 10236032 9% /var tmpfs 404004 0 404004 0% /run/user/1001 tmpfs 404004 0 404004 0% /run/user/601005952 du aborts when run in /var and /var/lib, but not in any of the subdirectories of /var/lib I tried rebooting with linux ... init=/bin/bash to run xfs_repair on the /var/file system and it found no errors. After the repair command, I mounted /var and ran du again with no errors. However once I rebooted into the full O/S, du aborted again in /var and /var/lib. The du and sudo du both abort, but non-privileged du also dumps core. ProblemType: Bug DistroRelease: Ubuntu 18.04 Package: coreutils 8.28-1ubuntu1 ProcVersionSignature: Ubuntu 4.15.0-32.35-generic 4.15.18 Uname: Linux 4.15.0-32-generic x86_64 ApportVersion: 2.20.9-0ubuntu7.2 Architecture: amd64 Date: Mon Aug 20 15:26:49 2018 InstallationDate: Installed on 2018-06-11 (69 days ago) InstallationMedia: Ubuntu-Server 18.04 LTS "Bionic Beaver" - Release amd64 (20180426) ProcEnviron: TERM=linux PATH=(custom, no user) XDG_RUNTIME_DIR=<set> LANG=en_CA.UTF-8 SHELL=/bin/bash SourcePackage: coreutils UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/coreutils/+bug/1788060/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp