CentOS 5.4 : Synergy-Plus Crashing / Hanging on Linux Fixed

By angsuman, Gaea News Network
Sunday, February 14, 2010

After recent updates in CentOS 5.4, I found that Synergy-Plus is crashing whenever I try to type anything in the client desktop / screen. This pretty much makes Synergy-Plus unusable on Cent OS 5.4. The solution is to downgrade Synergy-Plus. Read below for full details on how you can fix Synergy-Plus on Cent OS.

Note: The problem may be present in other versions of Linux but I haven’t tested them. However I do know that the problem exists when the client desktop is Windows.

How to fix Synergy on Cent OS?

In short this is what you have to do (while running as root):

wget https://pi.vu/S_e
rpm -e synergy-plus
rpm -Uvh synergy-1.3.1-2.el5.rf.x86_64.rpm

This downgrades synergy-plus to 1.3.1 version which fixes the issue.

Why is Synergy-Plus breaking in Cent OS?

In recent builds of synergy-plus XInitThreads() has been called, to enable threading, which has been found to be responsible for the hang. Most likely Synergy-Plus is performing some thread-unsafe operation which is causing this. Commenting it out in the code and recompiling fixes it. However for most non-hacker types (including me) the above solution is simplest.

The funny thing is that XInitThreads() is required for newer Linux distributions or else it hangs / crashes.

The bug was introduced in revision 46 of synergy-plus. Previous version of synergy-plus do not hang for this reason.
Note: Old synergy package (not plus) does NOT hang.

Note: The defect is reported in details in issue 194 of synergy-plus.

imho: rpmforge which adds this rpm to its repository should have checked synergy before adding it to their repository.


July 25, 2010: 5:58 pm

Downgrading fixed the issue on my CentOS 5.5 workstation. Thanks for this informative article!

June 21, 2010: 7:02 am

Tx, works fine after donload the source and compile also on Centos 5.5 with Win7 as client.

Ciao Martni

March 29, 2010: 5:48 am

I have dedicated server and it is running under CentOS 4. Very stable OS and works without ANY problem

February 15, 2010: 4:35 am

The good thing about your information is that it is explicit enough for students to grasp. Thanks for your efforts in spreading academic knowledge.

will not be displayed