[Xfce-bugs] [Bug 15972] Segfault when un/mounting a device and tree view active

bugzilla-daemon at xfce.org bugzilla-daemon at xfce.org
Fri Sep 20 01:51:00 CEST 2019


https://bugzilla.xfce.org/show_bug.cgi?id=15972

--- Comment #2 from fuank <greob at yahoo.com.sg> ---
Created attachment 9041
  --> https://bugzilla.xfce.org/attachment.cgi?id=9041&action=edit
gdb/gef backtrace pointing at line 821

I have hit a similar crash while mounting, pointing at line 821
thunar_tree_model_unref_node() this time. Seems closely related.

Here is my process to emulate having an USB mass storage device being plugged
in (instead of using a real drive) and the result is the same:

# dd bs=1M count=64 if=/dev/zero of=/path/to/fake_storage_file
// create a partition
# cfdisk fake_storage_file

# fdisk -lu backing file
// grab the starting offset, multiply by sector size (usually 512)
# sudo losetup -o 1048576 /dev/loop1 fake_storage_file
# sudo mkfs.ext4 /dev/loop1

// remove the loopdevice (because it's probably not needed actually)
# sudo losetup -d /dev/loopX

// load the fake usb root hub module
# sudo modprobe dummy_hcd

// add the fake usb device while tree view active
# sudo modprobe g_mass_storage file=/path/to/fake_storage_file

// thunar will crash somewhere after clicking the new item and mounting it.
Still trying to determine when/where exactly.

// remove the fake usb device
# sudo modprobe -r g_mass_storage

Apparently it's de-referencing a null pointer?  
mov    rax, QWORD PTR [rax] 
while rax is apparently "0x0".

Sorry, I still don't know much about debugging, but I'll try throwing some
wrenches in there and see if it sparkles some more.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Xfce-bugs mailing list