FS#59353 - [nemo] Nemo crashes when removing drives safely

Attached to Project: Community Packages
Opened by Ali Molaei (ali_molaei) - Monday, 16 July 2018, 11:53 GMT
Last edited by Eli Schwartz (eschwartz) - Tuesday, 20 November 2018, 05:05 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Eli Schwartz (eschwartz)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
I have opened an issue on nemo's github page
https://github.com/linuxmint/nemo/issues/1899
But they said i should recompile package and all deps! with debugging enabled, since i have not enough resources for this, I think i should open a bug here for the package maintainer :/ I don't know

Additional info:

* Nemo version (nemo --version)
nemo 3.8.4
* Is issue with desktop or windowed nemo?
Issue with windowed nemo (file browser)

* Distribution - (Mint 17.2, Arch, Fedora 25, etc...)
Arch 4.17.5-1-ARCH

* Graphics hardware *and* driver used
Hardware: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
Driver: i915

Steps to reproduce:

Issue
I have found this similar issue:
https://github.com/linuxmint/nemo/issues/1662

but I think it is different, It happens every time for me, not depend on which folder (inside or outside of drive) is open, and it is not by design, I get segfault in journalctl.

Steps to reproduce

1. Connect an external storage (for example an external hard drive or usb flash)
2. On the left panel, right click on the device and click "Safely Remove Drive"

Expected behaviour

1. If a folder inside drive is open, close that and go to ~/
2. Remove the device from left panel and notify that device is safely removed

Other information
journalctl log:

[code]
Jul 11 17:26:38 B590 udisksd[871]: Cleaning up mount point /run/media/ali/MyDrive (device 8:49 is not mounted)
Jul 11 17:26:40 B590 udisksd[871]: Unmounted /dev/sdd1 on behalf of uid 1000
Jul 11 17:26:40 B590 udisksd[871]: Successfully sent SCSI command SYNCHRONIZE CACHE to /dev/sdd
Jul 11 17:26:40 B590 udisksd[871]: Successfully sent SCSI command START STOP UNIT to /dev/sdd
Jul 11 17:26:40 B590 kernel: sd 7:0:0:0: tag#0 uas_zap_pending 0 uas-tag 1 inflight: CMD
Jul 11 17:26:40 B590 kernel: sd 7:0:0:0: tag#0 CDB: Test Unit Ready 00 00 00 00 00 00
Jul 11 17:26:40 B590 kernel: sd 7:0:0:0: [sdd] Synchronizing SCSI cache
Jul 11 17:26:41 B590 kernel: sd 7:0:0:0: [sdd] Synchronize Cache(10) failed: Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
Jul 11 17:26:41 B590 udisksd[871]: Powered off /dev/sdd - successfully wrote to sysfs path /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/remove
Jul 11 17:26:41 B590 kernel: usb 1-1.2: USB disconnect, device number 7
Jul 11 17:26:41 B590 upowerd[838]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2:1.0
Jul 11 17:26:41 B590 upowerd[838]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2
Jul 11 17:26:41 B590 kernel: nemo[1645]: segfault at 4 ip 0000564bf707330b sp 00007fff74fef2a0 error 4 in nemo[564bf7006000+1a5000]
Jul 11 17:26:41 B590 systemd[1]: Started Process Core Dump (PID 1784/UID 0).
-- Subject: Unit systemd-coredump@3-1784-0.service has finished start-up
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit systemd-coredump@3-1784-0.service has finished starting up.
--
-- The start-up result is RESULT.
Jul 11 17:26:41 B590 systemd-coredump[1785]: Process 1645 (nemo) of user 1000 dumped core.

Stack trace of thread 1645:
#0 0x0000564bf707330b n/a (nemo)
#1 0x00007f7b73f2c204 n/a (libgio-2.0.so.0)
#2 0x00007f7b73f2cd07 n/a (libgio-2.0.so.0)
#3 0x00007f7b645e989e n/a (libgioremote-volume-monitor.so)
#4 0x00007f7b73f2c204 n/a (libgio-2.0.so.0)
#5 0x00007f7b73f2cd07 n/a (libgio-2.0.so.0)
#6 0x00007f7b73f6d73d n/a (libgio-2.0.so.0)
#7 0x00007f7b73f2c204 n/a (libgio-2.0.so.0)
#8 0x00007f7b73f2cd07 n/a (libgio-2.0.so.0)
#9 0x00007f7b73f61c43 n/a (libgio-2.0.so.0)
#10 0x00007f7b73f2c204 n/a (libgio-2.0.so.0)
#11 0x00007f7b73f2c239 n/a (libgio-2.0.so.0)
#12 0x00007f7b739811d6 g_main_context_dispatch (libglib-2.0.so.0)
#13 0x00007f7b739815b1 n/a (libglib-2.0.so.0)
#14 0x00007f7b7398163e g_main_context_iteration (libglib-2.0.so.0)
#15 0x00007f7b73f4297e g_application_run (libgio-2.0.so.0)
#16 0x0000564bf7032932 n/a (nemo)
#17 0x00007f7b71c7206b __libc_start_main (libc.so.6)
#18 0x0000564bf703297a n/a (nemo)

Stack trace of thread 1647:
#0 0x00007f7b71d3cea9 __poll (libc.so.6)
#1 0x00007f7b73981523 n/a (libglib-2.0.so.0)
#2 0x00007f7b7398163e g_main_context_iteration (libglib-2.0.so.0)
#3 0x00007f7b73981692 n/a (libglib-2.0.so.0)
#4 0x00007f7b739a9a2a n/a (libglib-2.0.so.0)
#5 0x00007f7b72012075 start_thread (libpthread.so.0)
#6 0x00007f7b71d4753f __clone (libc.so.6)

Stack trace of thread 1649:
#0 0x00007f7b71d3cea9 __poll (libc.so.6)
#1 0x00007f7b73981523 n/a (libglib-2.0.so.0)
#2 0x00007f7b7398163e g_main_context_iteration (libglib-2.0.so.0)
#3 0x00007f7b657f9f4e n/a (libdconfsettings.so)
#4 0x00007f7b739a9a2a n/a (libglib-2.0.so.0)
#5 0x00007f7b72012075 start_thread (libpthread.so.0)
#6 0x00007f7b71d4753f __clone (libc.so.6)

Stack trace of thread 1763:
#0 0x00007f7b71d420f9 syscall (libc.so.6)
#1 0x00007f7b739c852d g_cond_wait_until (libglib-2.0.so.0)
#2 0x00007f7b73953903 n/a (libglib-2.0.so.0)
#3 0x00007f7b73953eee g_async_queue_timeout_pop (libglib-2.0.so.0)
#4 0x00007f7b739aa541 n/a (libglib-2.0.so.0)
#5 0x00007f7b739a9a2a n/a (libglib-2.0.so.0)
#6 0x00007f7b72012075 start_thread (libpthread.so.0)
#7 0x00007f7b71d4753f __clone (libc.so.6)

Stack trace of thread 1648:
#0 0x00007f7b71d3cea9 __poll (libc.so.6)
#1 0x00007f7b73981523 n/a (libglib-2.0.so.0)
#2 0x00007f7b739818e2 g_main_loop_run (libglib-2.0.so.0)
#3 0x00007f7b73f70348 n/a (libgio-2.0.so.0)
#4 0x00007f7b739a9a2a n/a (libglib-2.0.so.0)
#5 0x00007f7b72012075 start_thread (libpthread.so.0)
#6 0x00007f7b71d4753f __clone (libc.so.6)
-- Subject: Process 1645 (nemo) dumped core
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Documentation: man:core(5)
--
-- Process 1645 (nemo) crashed and dumped core.
--
-- This usually indicates a programming error in the crashing program and
-- should be reported to its vendor as a bug.
[/code]

According to above info i think these maybe useful:
$ pacman -Q glib2 gvfs dconf
glib2 2.56.1-1
gvfs 1.36.2-2
dconf 0.28.0-1
This task depends upon

Closed by  Eli Schwartz (eschwartz)
Tuesday, 20 November 2018, 05:05 GMT
Reason for closing:  Works for me
Additional comments about closing:  OP cannot reproduce anymore with the latest nemo package, see https://github.com/linuxmint/nemo/issues /1899#issuecomment-440138708

Loading...