synergyc crashed with SIGSEGV in std::_Rb_tree_increment()

Bug #926198 reported by David Ames
268
This bug affects 51 people
Affects Status Importance Assigned to Milestone
synergy (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

On precise 1.3.8-1ubuntu1. It seems to crash when using control charters like CTRL-ALT--> or CTRL-A.

ProblemType: Crash
DistroRelease: Ubuntu 12.04
Package: synergy 1.3.8-1ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-12.21-generic-pae 3.2.2
Uname: Linux 3.2.0-12-generic-pae i686
ApportVersion: 1.91-0ubuntu1
Architecture: i386
Date: Thu Feb 2 19:49:35 2012
ExecutablePath: /usr/bin/synergyc
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release i386 (20110427.1)
ProcCmdline: synergyc -n hostname alpha
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, user)
 LANG=en_US.UTF-8
SegvAnalysis:
 Segfault happened at: 0xb757abf2 <_ZSt18_Rb_tree_incrementPSt18_Rb_tree_node_base+18>: mov 0x8(%eax),%edx
 PC (0xb757abf2) ok
 source "0x8(%eax)" (0x8b0a75c8) not located in a known VMA region (needed readable region)!
 destination "%edx" ok
SegvReason: reading unknown VMA
Signal: 11
SourcePackage: synergy
StacktraceTop:
 std::_Rb_tree_increment(std::_Rb_tree_node_base*) () from /usr/lib/i386-linux-gnu/libstdc++.so.6
 std::insert_iterator<std::map<unsigned short, CKeyMap::KeyItem const*, std::less<unsigned short>, std::allocator<std::pair<unsigned short const, CKeyMap::KeyItem const*> > > > std::set_difference<std::_Rb_tree_iterator<std::pair<unsigned short const, CKeyMap::KeyItem const*> >, std::_Rb_tree_iterator<std::pair<unsigned short const, CKeyMap::KeyItem const*> >, std::insert_iterator<std::map<unsigned short, CKeyMap::KeyItem const*, std::less<unsigned short>, std::allocator<std::pair<unsigned short const, CKeyMap::KeyItem const*> > > >, CKeyState::ButtonToKeyLess>(std::_Rb_tree_iterator<std::pair<unsigned short const, CKeyMap::KeyItem const*> >, std::_Rb_tree_iterator<std::pair<unsigned short const, CKeyMap::KeyItem const*> >, std::_Rb_tree_iterator<std::pair<unsigned short const, CKeyMap::KeyItem const*> >, std::_Rb_tree_iterator<std::pair<unsigned short const, CKeyMap::KeyItem const*> >, std::insert_iterator<std::map<unsigned short, CKeyMap::KeyItem const*, std::less<unsigned short>, std::allocator<std::pair<unsigned short const, CKeyMap::KeyItem const*> > > >, CKeyState::ButtonToKeyLess) ()
 CKeyState::updateModifierKeyState(unsigned short, std::multimap<unsigned int, CKeyMap::KeyItem, std::less<unsigned int>, std::allocator<std::pair<unsigned int const, CKeyMap::KeyItem> > > const&, std::multimap<unsigned int, CKeyMap::KeyItem, std::less<unsigned int>, std::allocator<std::pair<unsigned int const, CKeyMap::KeyItem> > > const&) ()
 CKeyState::fakeKeyDown(unsigned int, unsigned int, unsigned short) ()
 CServerProxy::keyDown() ()
Title: synergyc crashed with SIGSEGV in std::_Rb_tree_increment()
UpgradeStatus: Upgraded to precise on 2012-02-03 (0 days ago)
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

Revision history for this message
David Ames (thedac) wrote :
Changed in synergy (Ubuntu):
milestone: none → ubuntu-12.04
Revision history for this message
Apport retracing service (apport) wrote :

StacktraceTop:
 std::_Rb_tree_increment (__x=0x8b0a75c0) at ../../../../src/libstdc++-v3/src/tree.cc:65
 operator++ (this=<synthetic pointer>) at /usr/include/c++/4.6/bits/stl_tree.h:188
 operator= (__value=..., this=<synthetic pointer>) at /usr/include/c++/4.6/bits/stl_iterator.h:627
 __copy_m<std::_Rb_tree_iterator<std::pair<unsigned short const, CKeyMap::KeyItem const*> >, std::insert_iterator<std::map<unsigned short, CKeyMap::KeyItem const*> > > (__result=..., __last=<optimized out>, __first=<optimized out>) at /usr/include/c++/4.6/bits/stl_algobase.h:299
 __copy_move_a<false, std::_Rb_tree_iterator<std::pair<unsigned short const, CKeyMap::KeyItem const*> >, std::insert_iterator<std::map<unsigned short, CKeyMap::KeyItem const*> > > (__result=..., __last=..., __first=<optimized out>) at /usr/include/c++/4.6/bits/stl_algobase.h:384

Revision history for this message
Apport retracing service (apport) wrote : Stacktrace.txt
Revision history for this message
Apport retracing service (apport) wrote : ThreadStacktrace.txt
Changed in synergy (Ubuntu):
importance: Undecided → Medium
tags: removed: need-i386-retrace
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in synergy (Ubuntu):
status: New → Confirmed
dobey (dobey)
visibility: private → public
Revision history for this message
Dev (scotty-amnet) wrote :

I installed 1.4.6 beta (both windows server and deb client) from the synergy website and the problem disappeared.

Revision history for this message
Carlo Castillo (cgcastillo) wrote : Re: [Bug 926198] Re: synergyc crashed with SIGSEGV in std::_Rb_tree_increment()

Thanks! Will try this right now, as I have not tried any other beta
version outside of 1.4.7. Will let you know how it turns out.

On Fri, Mar 23, 2012 at 10:38 AM, Dev <email address hidden> wrote:

> I installed 1.4.6 beta (both windows server and deb client) from the
> synergy website and the problem disappeared.
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (948787).
> https://bugs.launchpad.net/bugs/926198
>
> Title:
> synergyc crashed with SIGSEGV in std::_Rb_tree_increment()
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/synergy/+bug/926198/+subscriptions
>

Revision history for this message
Carlo Castillo (cgcastillo) wrote :

Thanks again, Scotty! Synergy server on Windows 7 updated to 1.4.6b.
Would like to report that on the client side, synergy 1.4.6b on Ubuntu
12.04 works. Dual booting to Windows XP on the client, Synergy 1.3.8 still
works.

On Fri, Mar 23, 2012 at 4:27 PM, Carlo Castillo <email address hidden>wrote:

> Thanks! Will try this right now, as I have not tried any other beta
> version outside of 1.4.7. Will let you know how it turns out.
>
>
> On Fri, Mar 23, 2012 at 10:38 AM, Dev <email address hidden> wrote:
>
>> I installed 1.4.6 beta (both windows server and deb client) from the
>> synergy website and the problem disappeared.
>>
>> --
>> You received this bug notification because you are subscribed to a
>> duplicate bug report (948787).
>> https://bugs.launchpad.net/bugs/926198
>>
>> Title:
>> synergyc crashed with SIGSEGV in std::_Rb_tree_increment()
>>
>> To manage notifications about this bug go to:
>>
>> https://bugs.launchpad.net/ubuntu/+source/synergy/+bug/926198/+subscriptions
>>
>
>

Revision history for this message
Leo Arias (elopio) wrote :

Happens here too when I press Shift on the shared keyboard. The client crashes.

Revision history for this message
Welington R. Braga (welrbraga) wrote :

The synergy's connection closes just when a use a special key like SHIFT for capitalize a letter, CTRL to get a shortcut, ALT etc.

It is not a crash application but only the connection that is interrupted. If I open the synergy window, click stop and start again it works again.

Revision history for this message
Stéphane Graber (stgraber) wrote :

That last comment sounds wrong. Synergy definitely segfaults (crashes), the part that's not crashing for you is quicksynergy which is a UI spawning synergy in the backend. What you describe in your comment (having to stop/start) is consistent with synergy crashing.

Revision history for this message
awol (awol99) wrote :

any keyboard modifier key combination seems to cause this problem. it's good otherwise - mouse, clipboard work well. my server is running Oneiric - clients are Precise (12.04)

Revision history for this message
wasp (wasp013) wrote :

I resolve the problem with last version 1.4.8 (beta release) on server and client.
My server is Win7 and client is Precise.

Revision history for this message
Will (ivebeenlinuxed) wrote :

Agreed - all these problems are fixed on the beta available from the synergy website.

Revision history for this message
Eric Stewart (kmgc) wrote :

I haven't been brave enough to switch to the beta, however downloading the 1.3.8 stable .deb from the Synergy website has resulted in stable connectivity for me. Using 1.3.8 with Windows as the server via SSH tunnels.

Had to "apt-mark hold synergy" though for the time being.

The issue would appear to be with the Ubuntu provided package.

Have noticed some issues with "stuck shift" keys occasionally when I move between systems, but that could actually be my keyboard.

Revision history for this message
Eric Stewart (kmgc) wrote :

Question for the beta users: Did you have install issues with it on Ubuntu? Doesn't seem to want to install through Ubuntu Software ...

Revision history for this message
ubergeekcd (ubergeekcd) wrote :

Confirmed, tried installing the beta releases via the Ubuntu Software Center. Gives a bad package warning due to $ENV{"HOME"}.
This may be a dpkg issue though.

Revision history for this message
ubergeekcd (ubergeekcd) wrote :

For those tring to install 1.4.8. and getting failures via Software Center

Add the GetDeb Apps PPM:

wget -q -O - http://archive.getdeb.net/getdeb-archive.key | sudo apt-key add -
sudo sh -c 'echo "deb http://archive.getdeb.net/ubuntu precise-getdeb apps" >> /etc/apt/sources.list.d/getdeb.list'
sudo apt-get update

Then use Synaptic to install.

Revision history for this message
Christian Mertes (mertes) wrote :

installed version 1.4.8 through GetDeb on server (11.10) and client (12.04) and now it works like a charm.

Revision history for this message
Will (ivebeenlinuxed) wrote :

The deb install errors issue should be filed as a separate bug if it is not already. The getdeb method is a workaround, not a long term solution. Can the changes to the deb be ported back into the upstream package?

Revision history for this message
Andreas F (aff) wrote :

Note that the suggested workaround to upgrade synergy from 1.3 to 1.4 will break compatibility with existing 1.3 servers:

$ synergyc -f localhost
INFO: Synergy 1.4.8 Client on Linux 3.2.0-24-generic #37-Ubuntu SMP Wed Apr 25 08:43:52 UTC 2012 i686
NOTE: started client
NOTE: connecting to 'localhost': 127.0.0.1:24800
WARNING: failed to connect to server: incompatible client 1.3

Revision history for this message
Andreas F (aff) wrote :

As Eric Stewart (kmgc) I have successfully installed the upstream synergy-1.3.8 as shown below and it provides a workaround for the synergyc crash issues:

wget http://synergy.googlecode.com/files/synergy-1.3.8-Linux-i686.deb
sudo dpkg --install synergy-1.3.8-Linux-i686.deb
sudo apt-mark hold synergy

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.