switchboard crashes on keyboard

Bug #1479618 reported by Alleen Wang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Switchboard Keyboard Plug
Fix Released
Medium
Unassigned

Bug Description

When I click the keyboard on switchboard, it will crash.
But this bug only on chinese language.

If I switched to english, there was no error.

Distributor ID: elementary OS
Description: elementary OS Freya
Release: 0.3
Codename: freya

Tags: switchboard

Related branches

Revision history for this message
Alleen Wang (wchwch) wrote :
affects: elementaryos → switchboard-plug-keyboard
Revision history for this message
Alleen Wang (wchwch) wrote :

switchboard version :

Package: switchboard
Versions:
2.0.1-0~r562+pkg43~ubuntu0.3.1 (/var/lib/apt/lists/ppa.launchpad.net_elementary-os_stable_ubuntu_dists_trusty_main_binary-amd64_Packages) (/var/lib/dpkg/status)
 Description Language:
                 File: /var/lib/apt/lists/ppa.launchpad.net_elementary-os_stable_ubuntu_dists_trusty_main_binary-amd64_Packages
                  MD5: 6216238d72c4d07df797ddcccae0fce7
 Description Language: en
                 File: /var/lib/apt/lists/ppa.launchpad.net_elementary-os_stable_ubuntu_dists_trusty_main_i18n_Translation-en
                  MD5: 6216238d72c4d07df797ddcccae0fce7

switchboard-plug-keyboard version :

Package: switchboard-plug-keyboard
Versions:
0.2.1-0~331~ubuntu0.3.1 (/var/lib/apt/lists/ppa.launchpad.net_elementary-os_stable_ubuntu_dists_trusty_main_binary-amd64_Packages) (/var/lib/dpkg/status)
 Description Language:
                 File: /var/lib/apt/lists/ppa.launchpad.net_elementary-os_stable_ubuntu_dists_trusty_main_binary-amd64_Packages
                  MD5: 23cbbf968386bbaea54c6bc7907e67ba
 Description Language: en
                 File: /var/lib/apt/lists/ppa.launchpad.net_elementary-os_stable_ubuntu_dists_trusty_main_i18n_Translation-en
                  MD5: 23cbbf968386bbaea54c6bc7907e67ba

Revision history for this message
Alleen Wang (wchwch) wrote :

Hi All,

When I use the gdb to run switchboard, I get error message ...

#0 __strcmp_ssse3 () at ../sysdeps/x86_64/multiarch/../strcmp.S:1109
#1 0x00007fffe05abd3e in pantheon_keyboard_layout_page_layout_handler_from_code ()
   from /usr/lib/x86_64-linux-gnu/switchboard/hardware/pantheon-keyboard/libpantheon-keyboard.so
#2 0x00007fffe05a9335 in pantheon_keyboard_layout_page_display_build_store ()
   from /usr/lib/x86_64-linux-gnu/switchboard/hardware/pantheon-keyboard/libpantheon-keyboard.so
#3 0x00007fffe05a95eb in pantheon_keyboard_layout_page_display_rebuild_list ()
   from /usr/lib/x86_64-linux-gnu/switchboard/hardware/pantheon-keyboard/libpantheon-keyboard.so

I found the bug at "strcmp", and this function call from ...

switchboard-plug-keyboard-0.2.1/src/Pages/Layout/handler.vala

  public bool from_code (string code, out uint l, out uint v)
  {
   var parts = code.split("+", 2);

   l = v = 0;

   if (parts[0] == null) return false;

   while (codes[l] != parts[0]) ///////////////// <---- Bug was here !!!
    if (l++ > codes.length)
     return false;

   if (parts[1] == null) return true;

   while (layouts[l].codes[v] != parts[1])
    if (v++ > layouts[l].codes.length)
     return false;

   return true;
  }

After I remove there, and compile, install. It didn't to crash.

But, it just a simple workaround, not solution.

I am not a developer for this project. I always to need developer for this bug.
So, I just to report some information for this bug.

Thanks!!!

Changed in switchboard-plug-keyboard:
status: New → Fix Committed
milestone: none → loki-beta1
Cody Garver (codygarver)
Changed in switchboard-plug-keyboard:
importance: Undecided → Medium
milestone: loki-beta1 → loki-alpha1
status: Fix Committed → Fix Released
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.