#1107748 spacefm segfaults when unmounting external disk

Package:
spacefm
Source:
spacefm
Description:
Multi-panel tabbed file manager - GTK2 version
Submitter:
Victor Wagner
Date:
2025-06-13 17:21:02 UTC
Severity:
normal
#1107748#5
Date:
2025-06-13 17:12:52 UTC
From:
To:
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.