Menu

#347 Segmentation fault on second instance

closed-fixed
PCMan
None
5
2010-11-07
2010-10-01
Duologic
No

I get a segmentation fault on opening a second pcmanfm instance. I've done a backtace on both, second has nothing.
This is done with pcmanfm-git-20101001-1 on Arch Linux, Awsome Window Manager, this also happens with desktop and daemon modes.

First instance:

(gdb) run
Starting program: /usr/bin/pcmanfm
[Thread debugging using libthread_db enabled]
** (pcmanfm:22493): DEBUG: unable to load icon system-software-install
** (pcmanfm:22493): DEBUG: device_added: /org/freedesktop/UDisks/devices/sda
** (pcmanfm:22493): DEBUG: device_added: /org/freedesktop/UDisks/devices/sda1
** (pcmanfm:22493): DEBUG: device_added: /org/freedesktop/UDisks/devices/sda2
** (pcmanfm:22493): DEBUG: device_added: /org/freedesktop/UDisks/devices/sda3
** (pcmanfm:22493): DEBUG: device_added: /org/freedesktop/UDisks/devices/sda4
** (pcmanfm:22493): DEBUG: device_added: /org/freedesktop/UDisks/devices/hda
[New Thread 0x7fffef851710 (LWP 22496)]
[New Thread 0x7fffeede9710 (LWP 22499)]
[Thread 0x7fffeede9710 (LWP 22499) exited]

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff5c7dc74 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
(gdb) bt
#0 0x00007ffff5c7dc74 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#1 0x00007ffff5c7e300 in ?? () from /usr/lib/libglib-2.0.so.0
#2 0x00007ffff5c7e972 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#3 0x00007ffff7367907 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#4 0x000000000040d055 in main ()

Second instance:

(gdb) run
Starting program: /usr/bin/pcmanfm
[Thread debugging using libthread_db enabled]

Program exited normally.
(gdb) bt
No stack.

Discussion

  • Matteo Bernardini

    sorry forgot the bt

    Program received signal SIGSEGV, Segmentation fault.
    0x00007ffff2a7fbe7 in g_main_context_dispatch ()
    from /usr/lib64/libglib-2.0.so.0
    (gdb) bt
    #0 0x00007ffff2a7fbe7 in g_main_context_dispatch ()
    from /usr/lib64/libglib-2.0.so.0
    #1 0x00007ffff2a83908 in ?? () from /usr/lib64/libglib-2.0.so.0
    #2 0x00007ffff2a83e15 in g_main_loop_run () from /usr/lib64/libglib-2.0.so.0
    #3 0x00007ffff76b8737 in gtk_main () from /usr/lib64/libgtk-x11-2.0.so.0
    #4 0x000000000040ebb5 in main (argc=1, argv=0x7fffffffe168) at pcmanfm.c:270

     
  • Ahmad Samir

    Ahmad Samir - 2010-10-15

    I think I have similar bug. With latest git head I can only open one instance of pcmanfm, the difference is that trying to run the second instance in gdb says that the programme exited normally.

    If it's relevant, I have glib-2.26.0.

     
  • Matteo Bernardini

    sorry ahmadsamir, have you tried reverting the two patches as described in my first comment?
    that should fix it (I'm using multiple istances now with glib-2.26.0).

     
  • Ahmad Samir

    Ahmad Samir - 2010-10-16

    I can revert 0c3f71f2360a9878198ecada1e12185de1738c4f cleanly, but not the second commit, some hunks fail. I think if this is going to be fixed then I don't need to waste time reverting the second one manually....

    Anyway, I'll try doing that, at least to confirm it's the same issue. :/

     
  • Ahmad Samir

    Ahmad Samir - 2010-10-16

    OK, confirmed, after reverting those two commits I can start multiple instances of pcmanfm.

     
  • Anonymous

    Anonymous - 2010-10-22

    I can confirm the bug on pcmanfm-git 20101017 on 64bit ArchLinux, with libfm-git 20101016.

     
  • PCMan

    PCMan - 2010-11-07
    • assigned_to: nobody --> pcmanx
    • status: open --> closed-fixed
     

Anonymous
Anonymous

Add attachments
Cancel