Bug 824307 - unassigned keysym causes crash
unassigned keysym causes crash
Product: Fedora
Classification: Fedora
Component: ibus-hunspell-table (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: anish
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2012-05-23 05:02 EDT by Daiki Ueno
Modified: 2015-04-12 19:12 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-08-09 18:55:15 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
patch (946 bytes, patch)
2012-05-23 05:02 EDT, Daiki Ueno
no flags Details | Diff

  None (edit)
Description Daiki Ueno 2012-05-23 05:02:55 EDT
Created attachment 586281 [details]

Description of problem:
When ibus-hunspell-table is enabled, typing key with unassigned keysym (NoSymbol) will cause crash.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. xmodmap -e "keycode 96 = NoSymbol"
2. enable "English - US(Hunspell)" engine in IBus menu
3. type F12
Actual results:
The engine process crashes with the following message:

 process 6891: Array or variant type requires that type string be written, but end_struct was written.
 The overall signature expected here was '(sa{sv}s(sa{sv}av))' and we are on byte 8 of that signature.
  D-Bus not built with -rdynamic so unable to print a backtrace

Expected results:
No crash.

Additional info:
I noticed this when using international keyboard with more keys than US keyboard.  Since IBus switches the system keyboard layout with "setxkbmap us", some keys (here "|") are unmapped.

It seems that ASCII range check in _table_mode_process_key_event() is fragile (patch attached).
Comment 1 Fedora Update System 2012-07-30 02:50:37 EDT
ibus-typing-booster-0.0.7-1.fc16 has been submitted as an update for Fedora 16.
Comment 2 Fedora Update System 2012-07-30 02:51:07 EDT
ibus-typing-booster-0.0.7-1.fc17 has been submitted as an update for Fedora 17.
Comment 3 Fedora Update System 2012-07-30 18:26:25 EDT
ibus-typing-booster-0.0.7-1.fc17 has been pushed to the Fedora 17 testing repository.
Comment 4 Fedora Update System 2012-08-09 18:55:15 EDT
ibus-typing-booster-0.0.7-1.fc16 has been pushed to the Fedora 16 stable repository.
Comment 5 Fedora Update System 2012-08-09 19:13:14 EDT
ibus-typing-booster-0.0.7-1.fc17 has been pushed to the Fedora 17 stable repository.

Note You need to log in before you can comment on or make changes to this bug.