Bug#1107748: spacefm segfaults when unmounting external disk
Package: spacefm
Version: 1.0.6-9
Severity: normal
Dear Maintainer,
When unmounting second partition from external USB hard drive with two
partitions, spacefm crashes with segfault.
Problem seems not to be very easy to reproduce
1. It doesn't depend from mounting backend. I've first encountered it
with udisk2, installed udevil, but with udevil problem is same.
2. It doesn't appear with usial usb sticks. Only with disk which has to
partition, one of wich conaining Parted Live distribution
3. It does appear only if spacefm --desktop --profile LXDE is started
from ~/.config/lxsession/LXDE/autostart, not when I stop this default
instance of spacefm and start another one with same arguments in
terminal window.
In this situation spacefm window disappears and when I open new window,
both partitions are mounted again for some reason, even if fitst
partition was unmounted succesfully and segfault happen when unmominting
second one.
In the lxsession run.log I can see folkowing lines:
** (lxpanel:11285): WARNING **: 19:50:39.585: task button : X error
udevil: error 64: unable to determine device fstype - specify with -t
Mounted /dev/sda1 at /media/vitus/PARTEDLIVE
Mounted /dev/sda5 at /media/vitus/VitusWagnerNB
/usr/bin/spacefm
** (lxpanel:11285): WARNING **: 19:51:03.553: task button : X error
** Message: 19:51:19.223: app.vala:130: spacefm exit with this type of exit: 11
** Message: 19:51:19.223: app.vala:148: Exit not normal, try to reload
** Message: 19:51:19.225: app.vala:76: Launching spacefm
udevil: error 64: unable to determine device fstype - specify with -t
Mounted /dev/sda1 at /media/vitus/PARTEDLIVE
Mounted /dev/sda5 at /media/vitus/VitusWagnerNB
Normal behavoir of the spacefm when unmounting disk shown in current
panel is to move to ${HOME}.
Partition table dump of USB disk where error was detectd:
ector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x42656f27
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 1026047 1024000 500M c W95 FAT32 (LBA)
/dev/sda2 1026048 1953525167 1952499120 931G 5 Extended
/dev/sda5 1028096 1953525167 1952497072 931G 83 Linux
I think that "Unable to determine device fstype" is related to /dev/sda2,
extended DOS partition which is not fs itself, but rather container for
other partitions (logical disks), in this case - sda5.
Probably it should be reported as wishlist bug to udevil - recognize
extended partitions and ignore them, because they are not mountable.
-- System Information:
Debian Release: 13.0
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 6.12.30-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages spacefm depends on:
ii desktop-file-utils 0.28-1
ii e2fsprogs 1.47.2-1+b1
ii libc6 2.41-8
ii libcairo2 1.18.4-1+b1
ii libffmpegthumbnailer4v5 2.2.3-2
ii libgdk-pixbuf-2.0-0 2.42.12+dfsg-2
ii libglib2.0-0t64 2.84.2-1
ii libgtk-3-0t64 3.24.49-3
ii libpango-1.0-0 1.56.3-1
ii libpangocairo-1.0-0 1.56.3-1
ii libstartup-notification0 0.12-8
ii libudev1 257.6-1
ii libx11-6 2:1.8.12-1
ii shared-mime-info 2.4-5+b2
Versions of packages spacefm recommends:
pn udisks2 <none>
Versions of packages spacefm suggests:
ii dbus 1.16.2-2
ii eject 2.41-5
pn gksu <none>
pn ktsuss <none>
ii lsof 4.99.4+dfsg-2
pn sshfs <none>
ii udevil 0.4.4-4
ii wget 1.25.0-2
-- no debconf information
Reply to: