#775 PCManFM 99% CPU when ejecting SD mounted using udisks

open
None
7
2014-06-27
2013-08-27
Camden Lindsay
No

– version of pcmanfm you are using (you can see it in "About" dialog)
PCManFM 1.1.2

– version of your operating system
[dylan@zenbook ~]$ uname -a
Linux zenbook 3.10.7-1-ARCH #1 SMP PREEMPT Thu Aug 15 11:55:34 CEST 2013 x86_64 GNU/Linux

[dylan@zenbook ~]$ cat /etc/lsb-release
LSB_VERSION=1.4
DISTRIB_ID=arch
DISTRIB_RELEASE=rolling
DISTRIB_DESCRIPTION="Arch Linux"

[dylan@zenbook ~]$ fluxbox --version
Fluxbox 1.3.5 : (c) 2001-2011 Fluxbox Team

[dylan@zenbook ~]$ sudo pacman -S udisks
warning: udisks-1.0.4-8 is up to date -- reinstalling

– steps how we can reproduce your problem
Udisks automounts SD card
Use 'eject' button in PCManFM to eject device
CPU hangs at 99%
11079 dylan 20 0 445664 15808 10664 R 99.8 0.4 0:09.32 pcmanfm

Manually umounting device does not cause this, only using eject button

Bug report FS#36686 with Arch
https://bugs.archlinux.org/task/36686

Discussion

1 2 3 4 > >> (Page 1 of 4)
  • I would like to get more info on the issue:
    a) what version of libfm do you use?
    b) is libfm compiled with internal udisks support?
    c) do you have any gvfs libs installed?
    Thank you very much.

     
    • priority: 5 --> 7
    • milestone: --> 3172103
    • labels: --> 805537
     
  • While you don't answer, I would like to notice there was a bug which caused memory corruption, that bug leaded to crash, and that bug is fixed in libfm-1.1.2.2. May be it leaded to your issue instead of crash in your case.

     
  • Camden Lindsay
    Camden Lindsay
    2013-09-09

    Sorry that I didn't reply the first time, i somehow missed the email alert for the first response.
    I will check versions/etc later today.
    Thanks!

     
  • Camden Lindsay
    Camden Lindsay
    2013-09-10

    i installed gvfs using pacman. Restarted and the problem still exists.

    Any pointers as to how to find the information you need is appreciated.!
    Thanks!

     
  • Thank you for your testing. Since issue still happens with gvfs - it is not udisks problem. I suggested you already to upgrade libfm to 1.1.2.2 version, the most probably your problem will be gone.

     
  • Camden Lindsay
    Camden Lindsay
    2013-09-11

    Problem still appears to persist:
    [dylan@zenbook ~]$ pacman -Q libfm
    libfm 1.1.2.2-1

    [dylan@zenbook ~]$ mount | grep sdc
    /dev/sdc1 on /media/8244-5239 type vfat (rw,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0022,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,errors=remount-ro,uhelper=udisks)

    click 'eject'
    PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
    2072 dylan 20 0 461172 14116 10512 R 100.1 0.4 0:24.27 pcmanfm

    I'm open to other troubleshooting suggestions...

     
  • Thank you very much for your efforts. I would like to get more help from you. That can be done with GDB running in terminal when that CPU eating happens:
    gdb pcmanfm `pidof pcmanfm`
    you'll get into running application from gdb so you can type a gdb command:
    bt full
    and let me see that stack trace.

     
  • Camden Lindsay
    Camden Lindsay
    2013-09-11

    Something i should have mentioned before, I am using the desktop mode for pcmanfm
    dylan 1647 0.0 0.2 386612 11356 ? S 08:53 0:00 pcmanfm --desktop

    Here is stack trace
    warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7fffad5fe000
    0x00007fd8d496ef5d in poll () from /usr/lib/libc.so.6
    (gdb) bt full
    #0 0x00007fd8d496ef5d in poll () from /usr/lib/libc.so.6
    No symbol table info available.
    #1 0x00007fd8d51a6084 in ?? () from /usr/lib/libglib-2.0.so.0
    No symbol table info available.
    #2 0x00007fd8d51a64ea in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
    No symbol table info available.
    #3 0x00007fd8d6efd6a2 in ?? () from /usr/lib/libfm-gtk.so.3
    No symbol table info available.
    #4 0x00007fd8d6eee0c6 in ?? () from /usr/lib/libfm-gtk.so.3
    No symbol table info available.
    #5 0x00007fd8d69bb345 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
    No symbol table info available.
    #6 0x00007fd8d546c458 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
    No symbol table info available.
    #7 0x00007fd8d547d1cb in ?? () from /usr/lib/libgobject-2.0.so.0
    No symbol table info available.
    #8 0x00007fd8d5484e52 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
    No symbol table info available.
    #9 0x00007fd8d5485462 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
    No symbol table info available.
    #10 0x00007fd8d6acaa14 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
    No symbol table info available.
    #11 0x00007fd8d69b9af4 in gtk_propagate_event () from /usr/lib/libgtk-x11-2.0.so.0
    No symbol table info available.
    #12 0x00007fd8d69b9eab in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0
    No symbol table info available.
    #13 0x00007fd8d6635b1c in ?? () from /usr/lib/libgdk-x11-2.0.so.0
    No symbol table info available.
    #14 0x00007fd8d51a5d96 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
    No symbol table info available.
    #15 0x00007fd8d51a60e8 in ?? () from /usr/lib/libglib-2.0.so.0
    No symbol table info available.
    #16 0x00007fd8d51a64ea in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
    No symbol table info available.
    #17 0x00007fd8d69b8f97 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
    No symbol table info available.
    #18 0x000000000040d600 in ?? ()
    No symbol table info available.
    #19 0x00007fd8d48b4bc5 in __libc_start_main () from /usr/lib/libc.so.6
    No symbol table info available.
    #20 0x000000000040d66d in ?? ()
    No symbol table info available.
    (gdb)

    Thanks for working on this! :)

     
1 2 3 4 > >> (Page 1 of 4)