remmina crashed with SIGSEGV in find_keyboard_layout_in_xorg_rules()

Bug #753520 reported by Andre Hugo
128
This bug affects 35 people
Affects Status Importance Assigned to Milestone
freerdp
New
Undecided
Unassigned
remmina
New
Undecided
Unassigned
remmina (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

Binary package hint: remmina

1) lsb_release -rd
Description: Ubuntu Vivid Vervet (development branch)
Release: 15.04

2) apt-cache policy remmina
remmina:
  Installed: 1.1.1-1ubuntu1
  Candidate: 1.1.1-1ubuntu1
  Version table:
 *** 1.1.1-1ubuntu1 0
        500 http://us.archive.ubuntu.com/ubuntu/ vivid/main amd64 Packages
        100 /var/lib/dpkg/status

3) What is expected to happen is when one has their default keyboard setting set to en_US > System Settings... > Text Entry > change to Input sources to use: Maori > close window > secondary click the Text Input tray icon and change from English to Maori > restart > open Remmina and it works.

4) What happens instead is it crashes consistently:
remmina
Remmina plugin VNC (type=Protocol) registered.
Remmina plugin VNCI (type=Protocol) registered.
Remmina plugin RDP (type=Protocol) registered.
Remmina plugin RDPF (type=File) registered.
Remmina plugin RDPS (type=Preference) registered.
Segmentation fault

First reported against Ubuntu 11.04, remmina 0.9.3-2

WORKAROUND: Use en_US.

WORKAROUND: Remove remmina-plugin-rdp.

ProblemType: Crash
DistroRelease: Ubuntu 11.04
Package: remmina 0.9.3-2
ProcVersionSignature: Ubuntu 2.6.38-8.41-generic 2.6.38.2
Uname: Linux 2.6.38-8-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
CrashCounter: 1
Date: Thu Apr 7 15:17:34 2011
ExecutablePath: /usr/bin/remmina
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Beta amd64 (20110330)
ProcCmdline: remmina
ProcEnviron:
 LANGUAGE=en_ZA:en
 LANG=en_ZA.UTF-8
 SHELL=/bin/bash
SegvAnalysis:
 Segfault happened at: 0x7fc61738202b <find_keyboard_layout_in_xorg_rules+107>: mov (%r12),%rdi
 PC (0x7fc61738202b) ok
 source "(%r12)" (0x00000000) not located in a known VMA region (needed readable region)!
 destination "%rdi" ok
SegvReason: reading NULL VMA
Signal: 11
SourcePackage: remmina
StacktraceTop:
 find_keyboard_layout_in_xorg_rules () from /usr/lib/libfreerdpkbd.so.0
 detect_keyboard_layout_from_xkb () from /usr/lib/libfreerdpkbd.so.0
 detect_and_load_keyboard () from /usr/lib/libfreerdpkbd.so.0
 freerdp_kbd_init () from /usr/lib/libfreerdpkbd.so.0
 remmina_plugin_rdpset_init () from /usr/lib/remmina/plugins/remmina-plugin-rdp.so
Title: remmina crashed with SIGSEGV in find_keyboard_layout_in_xorg_rules()
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

Revision history for this message
Andre Hugo (cortexhugo) wrote :
Revision history for this message
Apport retracing service (apport) wrote :

StacktraceTop:
 find_keyboard_layout_in_xorg_rules (layout=0x7fffe0546535 "za", variant=0x7fffe054653b "") at libfreerdpkbd.c:46
 detect_keyboard_layout_from_xkb () at libfreerdpkbd.c:168
 detect_and_load_keyboard () at libfreerdpkbd.c:625
 freerdp_kbd_init (keyboard_layout_id=0) at libfreerdpkbd.c:693
 remmina_plugin_rdpset_init () at remminapluginrdpset.c:40

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 remmina (Ubuntu):
importance: Undecided → Medium
tags: removed: need-amd64-retrace
visibility: private → public
Revision history for this message
Charlie Moss (charlie.uk) wrote :

The only way to resolve this is -

/etc/default/keyboard

change

XKBLAYOUT="za" to XKBLAYOUT="us"

Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in remmina (Ubuntu):
status: New → Confirmed
Revision history for this message
JP Meijers (jpm) wrote :

All three my computers runs Ubuntu 12.04 64bit and all three suffers from this same issue since a few days ago. Intrestingly enough I also live in South Africa like the original bug reporter. I assume I also chose the za keymap at installation on all three.

Revision history for this message
Bruce Pieterse (octoquad) wrote :

I have two machines that get this segmentation fault. However, after changing XKBLAYOUT from "za" to "us" in
/etc/default/keyboard as mentioned above, remmina works after a soft restart.

I'm attaching my apport crash log, just in case there is some extra information that can be used.

Revision history for this message
psypher (psypher246) wrote :

changing my layout did not work. But I got it working by going to keyboard layout via dash and installing english US. then the keyboard layout indicator appears at the top. I select English US on there and remmina starts.

Revision history for this message
Steven Scheffler (steven-scheffler) wrote :

psypher +1

Revision history for this message
Graeme Glass (graemeglass) wrote :

carter:~ $ uname -a
Linux carter 3.2.0-26-generic-pae #41-Ubuntu SMP Thu Jun 14 16:45:14 UTC 2012 i686 i686 i386 GNU/Linux

carter:~ $ valgrind remmina -v --track-origins=yes > valgrind-out.txt 2>&1
see attached file 'valgrind-out.txt' for output

Revision history for this message
psypher (psypher246) wrote :

This problem is still occuring in 12.10. Has there been any work done? Please can it be assigned?

Thanks

Revision history for this message
psypher (psypher246) wrote :

Please can there be some attention to this bug, it has been ongoing for over a year. Any South Africa users trying to use the default remote desktop app in Ubuntu clicks on the app and nothing happens. This is not good for all those users who are trying out Ubuntu and I know that many Schools in SA use Ubuntu as well.

Changed in remmina (Ubuntu):
assignee: nobody → Bruce Pieterse (octoquad)
Revision history for this message
Bruce Pieterse (octoquad) wrote :

I have compiled the latest version from git and remmina seems to run fine if the RDP protocol is not installed and XKBLAYOUT="za". At this point I'm assuming FreeRDP might be the cause of the problem. Currently having an issue building the remmina-plugins but I will keep trying.

Changed in remmina (Ubuntu):
status: Confirmed → In Progress
Revision history for this message
psypher (psypher246) wrote :

Yes freerdp is the problem, cannot be run with ZA set

Revision history for this message
Ian Beardslee (ibeardslee) wrote :

I'm getting this problem as well in Raring 13.04. I have XKBLAYOUT="mao".

And if I "sudo apt-get purge remmina-plugin-rdp" it starts fine. pretty much a definite that the RDP plugin (freerdp?) is the problem with it.

tags: added: trusty
removed: natty
Revision history for this message
Emelar (martin-rothbaum) wrote :

I'm getting what looks like the same crash on starting Remmina when the keyboard layout is set to Maori in the keyboard indicator (indicator-keyboard-service). This happens regardless of XKBLAYOUT="us" in /etc/default/keyboard.

Setting to English (US) while starting Remmina and then back to Maori once it's running seems to work but is a little tedious.

penalvch (penalvch)
tags: added: natty raring
Revision history for this message
penalvch (penalvch) wrote :

SourceForge.net URL not valid.

Changed in remmina:
importance: Unknown → Undecided
status: Unknown → New
penalvch (penalvch)
description: updated
Revision history for this message
penalvch (penalvch) wrote :

Not In Progress as outlined in https://wiki.ubuntu.com/Bugs/Bug%20statuses .

Andre Hugo, et. al., is this still an issue in Vivid via http://cdimage.ubuntu.com/daily-live/current/ (live environment is fine)?

Changed in remmina (Ubuntu):
assignee: Bruce Pieterse (octoquad) → nobody
status: In Progress → Incomplete
Revision history for this message
Bruce Pieterse (octoquad) wrote :

natty and raring are EOL (https://wiki.ubuntu.com/Releases). Additionally, this issue still persists due to https://github.com/FreeRDP/Remmina/issues/365 and http://sourceforge.net/p/remmina/mailman/message/32925292/ which the Remmina project was idle.

Yes, this is still a problem in VV.

tags: added: vivid
removed: natty raring
Revision history for this message
Bruce Pieterse (octoquad) wrote :
Revision history for this message
penalvch (penalvch) wrote :

Bruce Pieterse, thanks for the update. Does it still crash in Vivid for you or does the functionality just not work?

Revision history for this message
Bruce Pieterse (octoquad) wrote :

Yes steps to reproduce are:

$ sudo apt-get install remmina
$ remmina
Remmina plugin RDP (type=Protocol) registered.
Remmina plugin RDPF (type=File) registered.
Remmina plugin RDPS (type=Preference) registered.
[1] 8135 segmentation fault (core dumped) remmina

Additionally now changing it from XKBLAYOUT="za" to "us" or "mao" also causes a segmentation fault which means the problem has gotten worse since the initial report and the above workarounds no longer work.?field.comment=Yes steps to reproduce are:

$ sudo apt-get install remmina
$ remmina
Remmina plugin RDP (type=Protocol) registered.
Remmina plugin RDPF (type=File) registered.
Remmina plugin RDPS (type=Preference) registered.
[1] 8135 segmentation fault (core dumped) remmina

Additionally now changing it from XKBLAYOUT="za" to "us" or "mao" also causes a segmentation fault which means the problem has gotten worse since the initial report and the above workarounds no longer work.

New valgrind log attached for Vivid which was initially done Graeme Glass (graemeglass) previously.

penalvch (penalvch)
Changed in remmina (Ubuntu):
status: Incomplete → New
Changed in remmina (Ubuntu):
status: New → Confirmed
penalvch (penalvch)
description: updated
penalvch (penalvch)
description: updated
Changed in remmina (Ubuntu):
status: Confirmed → Triaged
penalvch (penalvch)
description: updated
Revision history for this message
Bruce Pieterse (octoquad) wrote :

@Christopher, it seems new maintainers have stepped up: http://sourceforge.net/p/remmina/mailman/message/33228595/
The source code has been moved to Github with more activity as well as a sourceforge.net possibly becoming obsolete for bug tracking in the future.

I have also reported this problem here: https://github.com/FreeRDP/Remmina/issues/441 as I ran into the same problem with just the xfreerdp built from source on 15.04. I can't seem to add the the upstream bug report as launchpad doesn't recognise it.

Thanks

Revision history for this message
penalvch (penalvch) wrote :

Bruce Pieterse, thanks for filing upstream. As well, I've already noted the change in website back in December in order to help mitigate any confusion -> https://help.ubuntu.com/community/Remmina .

Revision history for this message
Bruce Pieterse (octoquad) wrote :

A fix has been committed (https://github.com/hardening/FreeRDP/commit/27c5b5b22402c3934c6b892bbce5d0e016769390) this should land in 1.2. I have tested with just xfreerdp and the crash no longer occurs with both mao and za layouts.

tags: added: wiley
Revision history for this message
Craig (craigvantonder) wrote :

This issue persists, confirmed as occurring in 15.10 with a ZA keyboard layout, switching to US keyboard layout allows it to launch.

tags: added: wily
removed: wiley
Revision history for this message
Junaid Loonat (junaid-loonat) wrote :

An alternative fix, which I don't believe has been posted anywhere, is to simply add the following two lines to the remmina preferences file so that the client's current keymap is not used and the 'US' keyboard layout is used instead:

rdp_use_client_keymap=0
rdp_keyboard_layout=409

Hope that helps.

Revision history for this message
Joel Wirāmu Pauling (aenertia) (aenertia) wrote :

this occurs when using the Māori keyboard layout also

Revision history for this message
Joel Wirāmu Pauling (aenertia) (aenertia) wrote :

Appears fixed in remmina-next paa for yakkety https://launchpad.net/~remmina-ppa-team/+archive/ubuntu/remmina-next

Revision history for this message
Craig (craigvantonder) wrote :

This issue persists in a fresh install of 16.04.1, Junaids' solution with adding to the Remmina preferences does indeed solve the issue and Remmina will start up.

Revision history for this message
Abdul-Rahman Bayong (arbayong) wrote :

<quote>Appears fixed in remmina-next paa for yakkety https://launchpad.net/~remmina-ppa-team/+archive/ubuntu/remmina-next</quote>

This solved the problem for me on Ubuntu 16.10. My remmina worked well from 16.04 and i have always upgraded to the new Ubuntu Release. It even worked well under 16.10 for a month and suddenly i had segmentation faults. My keyboard layout was already 'US'.
Removing the RDP plugin didn't solve the problem. purging and reinstalling remmina and the rdp plugin didn't solve it either. Only the PPA did solve it.

Revision history for this message
Bruce Pieterse (octoquad) wrote :

Still an issue in zesty, can the package not be updated? Comment #26 is a good work around.

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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