-   Slackware (
-   -   BUG: Annoying deadlock caused by gam-server (Slack64-current) (

sombragris 09-22-2012 08:18 PM

BUG: Annoying deadlock caused by gam-server (Slack64-current)
Hi there,

I would like to share about a very annoying bug that pestered me a lot. I always wondered what it was. It was difficult to me to trace it because I'm not a programmer.

I'm using Slack64-current, or 14.0 RC5 as it is now. I'm also using AlienBob's KDE 4.9.1 packages, which work really well.

Since I use a laptop, I tend to use the suspend to Ram feature fairly frequently. During these sessions, and as the uptime grows, sometimes certain apps refuse to start.

An examination of current processes show that old apps that you thought you exited, were still running, but with no GUI. The app you recently started is also there, but with the GUI not showing.

Starting the app with strace shows that the app hangs expecting a connection to /tmp/fam-$USER.

Killing the app and restarting it does not work. Many times, in frustration, I had to reboot.

As it turned out, this wasn't necessary. Killing the gam_server process usually restored things to normality.

So, if you have been bitten by this bug, please take notice!

Here are two nice links talking about this bug:

"Deadlock in FAM/KDirWatch usage"

"gam_server deadlocks, leading to all KDE applications hanging at start"

wildwizard 09-24-2012 05:04 AM

This bug?

sombragris 09-24-2012 08:35 AM


Originally Posted by wildwizard (Post 4787864)

Yes, that one, precisely. Didn't see it, otherwise I would have posted there. Oh my, I was pestered by this bug for months! I was so glad when I found exactly what it was and that crude workaround.

sombragris 09-24-2012 08:24 PM

From the ChangeLog:


Originally Posted by Slackware64-current ChangeLog
Mon Sep 24 20:25:12 UTC 2012
Here are a few minor bugfixes as well as a couple more test drivers for X:

l/gamin-0.1.10-x86_64-5.txz: Rebuilt.
Patched to fix a deadlock bug, and to fix building against recent libraries.
Thanks to sberthelot, sombragris, and ponce on LQ.


Wow! Thank you Pat & the Slackware Crew !

All times are GMT -5. The time now is 11:34 AM.