Synergy

Issue Tracker (powered by SPIT)

Bug #3074 - "Shift" and "Alt" keys crash Synergyc

Status:
Accepted
Priority:
Normal
Assignee:
None
Category:
None
Target:
None
Found:
1.3.8
Created by:
Created on:
28 Jan 2012 11:48
Updated by:
None
Updated on:
4 Mar 2012 13:25
Platform:
Linux
Google ID:
None
Redmine ID:
3123

  • Related to: Feature #3042 - Add option to remap altgr modifier
  • Related to: Bug #3088 - AltGr key not working on Windows XP client (Linux server) v1.4.7

Steps to reproduce:

  1. The server is on KDE with a keyboard map of "fr"
  2. The client is on Unity with a keyboard map of "fr"
  3. Typing "a" on the server do output an "a" on the server, but output a "q" on the client.
  4. Changing the keyboard map of the KDE server from "fr" to "us";
  5. Typing "a" on the server output a "q" on the server, but output an "a" on the client.
  6. Changing back the server (us->fr)
  7. (same as 3)
  8. Typing "Shift+:" (Shift plus ":" is used on a French keyboard to produce a "/") do output a "/" on the server, but crash the client with a "Segmentation Fault (core dumped)" (the server continue to work alright)

Pressing "Shift" alone or "Alt" alone also do crash the Synergy client.

Expected: An "a" should be an "a", and "Shift" should not crash the client.
Actual: An "a" is a "q", and "Shift" do crash the client.

Versions (Synergy, OS):

Server: 1.3.8-1ubuntu1 (Ubuntu 12.04 Alpha 1)
Client 1: 1.3.8-1ubuntu1 (Ubuntu 12.04 Alpha 1)


4 Mar 2012 13:25: Nick Bolton changed Tracker.

Support Bug


4 Mar 2012 13:25: Nick Bolton changed Details.

Added 8 character(s).


4 Mar 2012 13:25: Nick Bolton changed Status.

New Accepted


4 Mar 2012 13:25: Nick Bolton changed Found in ver.

1.3.8


4 Mar 2012 13:25: Nick Bolton changed Platform.

Linux


#1

5 Oct 2012 16:03: Tim Way wrote a comment.

I have a similar issue when using Windows 7 x64 as the Synergy server (1.4.10) and Ubuntu 12.04 LTS with synergyc (1.3.8) installed and any/all patches applied from Ubuntu default repositories.


#2

26 Oct 2012 15:02: Michael Richey wrote a comment.

Same issue with Ubuntu 10.04 as server and Ubuntu 12.04 LTS. Shift key and Alt key both crash the client.


#3

26 Oct 2012 15:09: Michael Richey wrote a comment.

Here is what the running with DEBUG2 set and hitting the shift key in the client:

2012-10-26T10:07:43 DEBUG2: msg from server: DKDN /build/buildd/synergy-1.3.8/src/lib/client/CServerProxy.cpp,114 2012-10-26T10:07:43 DEBUG2: readf(%%2i%%2i%%2i) /build/buildd/synergy-1.3.8/src/lib/synergy/CProtocolUtil.cpp,50 2012-10-26T10:07:43 DEBUG2: readf: read 2 byte integer: 61410 (0xefe2) /build/buildd/synergy-1.3.8/src/lib/synergy/CProtocolUtil.cpp,131 2012-10-26T10:07:43 DEBUG2: readf: read 2 byte integer: 8192 (0x2000) /build/buildd/synergy-1.3.8/src/lib/synergy/CProtocolUtil.cpp,131 2012-10-26T10:07:43 DEBUG2: readf: read 2 byte integer: 62 (0x3e) /build/buildd/synergy-1.3.8/src/lib/synergy/CProtocolUtil.cpp,131 2012-10-26T10:07:43 DEBUG1: recv key down id=0x0000efe2, mask=0x2000, button=0x003e /build/buildd/synergy-1.3.8/src/lib/client/CServerProxy.cpp,566 2012-10-26T10:07:43 DEBUG1: mapKey efe2 (61410) with mask 2000, start state: 0000 /build/buildd/synergy-1.3.8/src/lib/synergy/CKeyMap.cpp,263 2012-10-26T10:07:43 DEBUG1: find best: 0000 2000 /build/buildd/synergy-1.3.8/src/lib/synergy/CKeyMap.cpp,613 2012-10-26T10:07:43 DEBUG1: best key index 0 of 1 (exact) /build/buildd/synergy-1.3.8/src/lib/synergy/CKeyMap.cpp,694 2012-10-26T10:07:43 DEBUG1: found key in group 0 /build/buildd/synergy-1.3.8/src/lib/synergy/CKeyMap.cpp,619 2012-10-26T10:07:43 DEBUG1: state: 0000,0000,0000 /build/buildd/synergy-1.3.8/src/lib/synergy/CKeyMap.cpp,786 2012-10-26T10:07:43 DEBUG1: flip: 0000 (0000 vs 0000 in 0000 - 0000) /build/buildd/synergy-1.3.8/src/lib/synergy/CKeyMap.cpp,879 2012-10-26T10:07:43 DEBUG1: desired state: 2000 0000,0000,0000 /build/buildd/synergy-1.3.8/src/lib/synergy/CKeyMap.cpp,798 2012-10-26T10:07:43 DEBUG1: flip: 0000 (0000 vs 2000 in fffe - 6020) /build/buildd/synergy-1.3.8/src/lib/synergy/CKeyMap.cpp,879 2012-10-26T10:07:43 DEBUG1: mapped to 03e, new state 0001 /build/buildd/synergy-1.3.8/src/lib/synergy/CKeyMap.cpp,325 Segmentation fault (core dumped)


#4

26 Oct 2012 15:58: Michael Richey wrote a comment.

I down graded my client to 1.3.6 and it's now working.


#5

3 Dec 2012 08:58: Max K wrote a comment.

Same issue with 1.3.8 Windows Server and 1.3.8 client on kubuntu 12.0.4 Upgrade to 1.4.10 on Server+Client fixed the problem!


#6

7 Dec 2012 09:28: Simon Williams wrote a comment.

Ubuntu 12.10, synergy 1.3.8 (client and server) gives exactly the same results when pressing ctrl, alt, shift or capslock (which I have swapped with ctrl).


#7

3 Apr 2013 06:25: Brendan Weibrecht wrote a comment.

I'm on Zentyal (Ubuntu 12.04.2), and had this issue running synergyc 1.3.8 connecting to a synergy 1.4.10 server on a Windows 7 machine.

I managed to fix it by updating the linux one to 1.4.10:

Remove 1.3.8: sudo apt-get remove synergy

Check what versions are available: sudo apt-cache showpkg synergy

Install the latest one (this might be different): sudo apt-get install synergy=1.4.10-1ubuntu1~ubuntu12.04.1

Run as normal