elementary / triage

Catch-all repo for issues that don't have a better home
https://elementary.io
4 stars 2 forks source link

dbus-daemon segfault with session or system crash #142

Open ayoungethan opened 2 years ago

ayoungethan commented 2 years ago

What Happened?

Occasionally, dbus seems to crash on or near user session start, e.g.

dbus-daemon[1315]: segfault at 0 ip 00007f489048b0d7 sp 00007ffdeaa764f8 error 6 in libdbus-1.so.3.19.11[7f4890467000+2e000]
[27774.268767] Code: 44 00 00 48 89 d6 e9 58 fe ff ff 0f 1f 84 00 00 00 00 00 f3 0f 1e fa 48 8b 46 08 48 39 f0 74 43 48 8b 16 48 89 42 08 48 8b 16 <48> 89 10 48 39 37 74 11 48 c7 46 08 00 00 00 00 48 c7 06 00 00 00

At this point, accessing filesystem often results in log out of user session, or causes system hard lockup. Often times, however, the system can seem to recover and continue operating fine after the segfault. It may also be related to the bluetooth becoming unusable when two user sessions are active (https://github.com/elementary/switchboard-plug-bluetooth/issues/193)

This is a multi-user system.

Steps to Reproduce

The bug appears on user session start. I'm not sure if it appears before user session login.

The bug appears to occur more frequently when both users of the system have been active on a boot cycle.

Expected Behavior

I expect users to be able to switch seamlessly between sessions, and reliable access to disk drives.

OS Version

6.x (Odin)

Software Version

Latest release (I have run all updates)

Log Output

No response

Hardware Info

$ cat /etc/fstab 
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system>  <mount point>  <type>  <options>  <dump>  <pass>
PARTUUID=5a8909ee-62d0-49b0-a51f-85d6a1bc5025  /boot/efi  vfat  umask=0077  0  0
UUID=3da39f5a-1345-4c18-bf16-7b0cc2273d2b  /  ext4  noatime,errors=remount-ro  0  0
/dev/mapper/cryptswap  none  swap  defaults  0  0
UUID=60b1ff29-322b-476e-8511-8c5fb12d1a84  /home  ext4  noatime,errors=remount-ro  0  0
LABEL=Backup_10TB /media/Backup_10TB auto nosuid,nodev,nofail,x-gvfs-show 0 0
LABEL=Media_5TB /mnt/Media_5TB auto nosuid,nodev,nofail,noauto,x-gvfs-show 0 0
$ uname -a
Linux NanoQube 5.13.0-39-generic elementary/releases#44~20.04.1-Ubuntu SMP Thu Mar 24 16:43:35 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
ayoungethan commented 2 years ago
$ cat /etc/passwd
root:x:0:0:root:/root:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
bin:x:2:2:bin:/bin:/usr/sbin/nologin
sys:x:3:3:sys:/dev:/usr/sbin/nologin
sync:x:4:65534:sync:/bin:/bin/sync
games:x:5:60:games:/usr/games:/usr/sbin/nologin
man:x:6:12:man:/var/cache/man:/usr/sbin/nologin
lp:x:7:7:lp:/var/spool/lpd:/usr/sbin/nologin
mail:x:8:8:mail:/var/mail:/usr/sbin/nologin
news:x:9:9:news:/var/spool/news:/usr/sbin/nologin
uucp:x:10:10:uucp:/var/spool/uucp:/usr/sbin/nologin
proxy:x:13:13:proxy:/bin:/usr/sbin/nologin
www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin
backup:x:34:34:backup:/var/backups:/usr/sbin/nologin
list:x:38:38:Mailing List Manager:/var/list:/usr/sbin/nologin
irc:x:39:39:ircd:/var/run/ircd:/usr/sbin/nologin
gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/usr/sbin/nologin
nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin
systemd-network:x:100:102:systemd Network Management,,,:/run/systemd:/usr/sbin/nologin
systemd-resolve:x:101:103:systemd Resolver,,,:/run/systemd:/usr/sbin/nologin
systemd-timesync:x:102:104:systemd Time Synchronization,,,:/run/systemd:/usr/sbin/nologin
messagebus:x:103:106::/nonexistent:/usr/sbin/nologin
syslog:x:104:110::/home/syslog:/usr/sbin/nologin
_apt:x:105:65534::/nonexistent:/usr/sbin/nologin
tss:x:106:111:TPM software stack,,,:/var/lib/tpm:/bin/false
uuidd:x:107:114::/run/uuidd:/usr/sbin/nologin
tcpdump:x:108:116::/nonexistent:/usr/sbin/nologin
avahi-autoipd:x:109:117:Avahi autoip daemon,,,:/var/lib/avahi-autoipd:/usr/sbin/nologin
usbmux:x:110:46:usbmux daemon,,,:/var/lib/usbmux:/usr/sbin/nologin
rtkit:x:111:118:RealtimeKit,,,:/proc:/usr/sbin/nologin
dnsmasq:x:112:65534:dnsmasq,,,:/var/lib/misc:/usr/sbin/nologin
cups-pk-helper:x:113:121:user for cups-pk-helper service,,,:/home/cups-pk-helper:/usr/sbin/nologin
lightdm:x:114:122:Light Display Manager:/var/lib/lightdm:/bin/false
speech-dispatcher:x:115:29:Speech Dispatcher,,,:/run/speech-dispatcher:/bin/false
avahi:x:116:124:Avahi mDNS daemon,,,:/var/run/avahi-daemon:/usr/sbin/nologin
kernoops:x:117:65534:Kernel Oops Tracking Daemon,,,:/:/usr/sbin/nologin
saned:x:118:126::/var/lib/saned:/usr/sbin/nologin
nm-openvpn:x:119:127:NetworkManager OpenVPN,,,:/var/lib/openvpn/chroot:/usr/sbin/nologin
hplip:x:120:7:HPLIP system user,,,:/run/hplip:/bin/false
colord:x:121:128:colord colour management daemon,,,:/var/lib/colord:/usr/sbin/nologin
geoclue:x:122:129::/var/lib/geoclue:/usr/sbin/nologin
_flatpak:x:123:130:Flatpak system-wide installation helper,,,:/nonexistent:/usr/sbin/nologin
pulse:x:124:131:PulseAudio daemon,,,:/var/run/pulse:/usr/sbin/nologin
systemd-coredump:x:999:999:systemd Core Dumper:/:/usr/sbin/nologin
ayoungethan:x:1000:1000:Ethan Alexander Young,,,:/home/ayoungethan:/bin/bash
caityholladay:x:1001:1001:Caitlin Holladay Roberts,,,:/home/caityholladay:/bin/bash