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.
Anonymous
same here on latest slackware with glib-2.24.2, still have to try with 2.26.0.
problem seems not to manifest reverting the two commits related to IPC, cc448d7fc14155927423373a91f5ccf1c2254557 and 0c3f71f2360a9878198ecada1e12185de1738c4f.
So I got the patches for those two commits from git
http://pcmanfm.git.sourceforge.net/git/gitweb.cgi?p=pcmanfm/pcmanfm;a=patch;h=cc448d7fc14155927423373a91f5ccf1c2254557
http://pcmanfm.git.sourceforge.net/git/gitweb.cgi?p=pcmanfm/pcmanfm;a=patch;h=0c3f71f2360a9878198ecada1e12185de1738c4f
and have done a
patch -p1 -R < 0c3f71f2360a9878198ecada1e12185de1738c4f.patch
patch -p1 -R < cc448d7fc14155927423373a91f5ccf1c2254557.patch
in the latest git snapshot and this way seem to work.
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
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.
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).
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. :/
OK, confirmed, after reverting those two commits I can start multiple instances of pcmanfm.
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
I can confirm the bug on pcmanfm-git 20101017 on 64bit ArchLinux, with libfm-git 20101016.
I just rewrote a patch for latest git trying to revert those two commits: it seems to work here
http://github.com/Ponce/slackbuilds/raw/pcmanfm-new/system/pcmanfm-new/patches/revert-new-IPC.patch