Thank you so much @linuxdev for taking the time on a Saturday to help me. Your suggestions are excellent and I appreciate them and used them to test futher and to find a successful workaround below.
Findings
# crashes
find / -type f -print0 | xargs -0 grep graphical.target
# works, does NOT crash
find / -xdev -type f -print0 | xargs -0 grep graphical.target
# works, does NOT crash
find / -xdev -type f | xargs grep graphical.target
Helpful! I have installed with and without patching (apt upgrade) and find fails unless -xdev is used.
In the case of the crashing test, no messages were on the console except the sudden termination of messages (which makes me think some part of this is affecting the kernel). The last entries are :
...
grep: /sys/kernel/slab/:tA-0000192/cgroup/cred_jar(76:systemd-modules-load.service)/alloc_calls: Function not implemented
grep: /sys/kernel/slab/:tA-0000192/cgroup/cred_jar(76:systemd-modules-load.service)/free_calls: Function not implemented
grep: /sys/kernel/slab/kmem_cache_node/alloc_calls: Function not implemented
grep: /sys/kernel/slab/kmem_cache_node/free_calls: Function not implemented
grep: /sys/kernel/debug/17000000.gv11b/fifo/profile/enable: Permission denied
grep: /sys/kernel/debug/tegra_hsp/ring: Permission denied
Addition fruitful findings:
I dual boot this Xavier between eMMC and an NFS mount (ttp and my own initrd) and noted that ‘find /’ worked correctly on my NFS variant.
My NFS rootfs is non-graphical (init 3) with many of the desktop/GUI pakcages removed (detail listing below) and the ‘find / …’ works without crashing with or without the -xdev.
So I did the following:
I rebuilt a new pristine rootfs from baseline image Tegra186_Linux_R32.5.1_aarch64.tbz2 (built samplefs, apply_binaries.sh, etc…), and used the resulting rootfs to flash the eMMC and I copied that same rootfs to the NFS export.
Both the eMMC and NFS mounted roots continued to crash via the ‘find / …’ command unless “-xdev” is specified.
I then upgraded both (eMMC and NFS roots) via “apt upgrade” and both of these rootfs continued to fail with the find command unless “-xdev” specified.
So not a network issue, but a package one it seems to me.
Solution - albeit by removing the ubuntu desktop
This works for me and the ‘find /’ (without “-xdev”) no longer crashes, but it removes the desktop.
sudo systemctl set-default multi-user.target
init 3
apt purge -y adwaita-icon-theme aisleriot alsa-utils aspell-en at-spi2-core bamfdaemon baobab bluez bluez bluez-obexd brltty brltty cheese-common chromium-browser chromium-browser chromium-codecs-ffmpeg-extra clipit colord compiz-gnome compiz-gnome crda deja-dup desktop-file-utils desktop-file-utils dictionaries-common dictionaries-common dosfstools eject eog espeak-ng-data:arm64 evince evince evince-common evolution-data-server evolution-data-server-common example-content example-content fakeroot ffmpeg file-roller fontconfig fontconfig-config fontconfig-config gdm3 gnome-disk-utility gnome-initial-setup gnome-keyring gnome-power-manager gnome-screensaver gnome-settings-daemon gnome-software gnome-system-tools gpg-agent gpsd-clients humanity-icon-theme ibus imagemagick indicator-applet indicator-application indicator-appmenu indicator-bluetooth indicator-datetime indicator-keyboard indicator-sound kio kwin-common:arm64 libcompizconfig0:arm64 libglade2-0:arm64 libgtk2.0-0:arm64 libgtk-3-0:arm64 libkf5crash5:arm64 libkf5globalaccel5:arm64 libqt5gui5:arm64 libreoffice-core libsane1:arm64 libsm6:arm64 libunity-core-6.0-9:arm64 libunity-misc4 libxaw7:arm64 libxft2:arm64 libxss1:arm64 lightdm-gtk-greeter light-themes lxlock lxpanel lxpolkit lxsession mpv nautilus network-manager network-manager-gnome network-manager-gnome network-manager-pptp notification-daemon notify-osd obsession oem-config oem-config-debconf oem-config-gtk onboard openbox openbox-lxde-session orca pcmanfm phonon4qt5:arm64 plymouth-theme-ubuntu-logo policykit-1-gnome pppconfig pppoeconf printer-driver-pnm2ppa pulseaudio rhythmbox rhythmbox-data samba-libs:arm64 sane-utils seahorse shotwell-common speech-dispatcher system-config-printer system-config-printer-common thunderbird totem transmission-gtk ubuntu-desktop ubuntu-drivers-common ubuntu-mono ubuntu-sounds unity unity-asset-pool unity-control-center unity-greeter unity-settings-daemon update-manager update-notifier vlc-plugin-base:arm64 vlc-plugin-video-output:arm64 whiptail whoopsie whoopsie-preferences whoopsie-preferences wireless-regdb wireless-tools wireless-tools wpasupplicant wpasupplicant x11-apps x11-common x11proto-dev x11-session-utils x11-xserver-utils xbrlapi xdg-user-dirs-gtk xfonts-base xfonts-scalable xfonts-utils xinit xscreensaver xscreensaver-data xserver-common xserver-xorg xserver-xorg-core xserver-xorg-legacy xterm yelp yelp-xsl youtube-dl zeitgeist-datahub
apt autoremove
init 6
Now ‘find / …’ works and does not cause a crash, but again no desktop which solves my issue, but may be a factor for others. I’m going to test against other Xaviers next week and see if I can reproduce this on other Desktop installs.