Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 1203 by [email protected]: Segmentation fault during
processing triggers for gconf2
http://code.google.com/p/ibus/issues/detail?id=1203
Forwarded from: https://bugs.launchpad.net/ubuntu/+source/ibus/+bug/716314
What version of the product are you using? On what operating system?
OS (Linux distributions, UNIX or ...):Ubuntu 11.04(Natty Narwhal) Alpha2
Architecture (i386, x86_64): i386
IBus version: 1.3.9-0ubuntu1
Input method name and version: ibus-anthy 1.2.5-1build1
Python version: 2.7.1-0ubuntu5
dbus version: 1.4.1-0ubuntu2
dbus-python version: 0.83.1-1
gtk version (if bug is about gtk applications): 2.24.0-0ubuntu2
qt version (if bug is about qt applications):
What steps will reproduce the problem?
1. install or re-install ibus: `apt-get install --reinstall ibus`
2. get Segmentation fault during processing triggers for gconf2
http://paste.ubuntu.com/565475/
What is the expected output? What do you see instead?
no Segmentation fault
Please provide any additional information below.
This bus seems to cause that no ibus input method is registered after ibus
input methods installed.
In Launchpad, Yusuke Sato commented,
-----
When "/desktop/ibus/general/preload_engines" gconf setting is not
available, ibus-daemon calls setlocale(LC_ALL, NULL); to query a locale
setting of a user, and then determines which input method engine should be
loaded based on the locale setting.
https://github.com/ibus/ibus/tree/1.3.y#L354
Until Ubuntu 10.10, the setlocale function used to return a simple value
like "ja_JP.UTF-8", but on 11.04 alpha 2, the function seems to return a
looong string
like "LC_CTYPE=ja_JP.UTF-8;LC_NUMERIC=ja_JP.UTF-8;LC_TIME=ja_JP.UTF-8;LC_COLLATE=ja_JP.UTF-8;LC_MONETARY=ja_JP.UTF-8;LC_MESSAGES=ja_JP.utf8;LC_PAPER=ja_JP.UTF-8;LC_NAME=ja_JP.UTF-8;LC_ADDRESS=ja_JP.UTF-8;LC_TELEPHONE=ja_JP.UTF-8;LC_MEASUREMENT=ja_JP.UTF-8;LC_IDENTIFICATION=ja_JP.UTF-8"
which ibus-daemon is not able to parse.
For now, changing the 'lang = g_strdup (setlocale (LC_ALL, NULL));' line in
ibus-1.3.9/bus/ibusimpl.c to 'lang = g_strdup (setlocale (LC_MESSAGES,
NULL));' should fix the problem.
The URL was incorrect. I meant to say:
https://github.com/ibus/ibus/blob/1.3.y/bus/ibusimpl.c#L354
-----
--
You received this message because you are subscribed to the Google
Groups "ibus-devel" group.
iBus project web page: http://code.google.com/p/ibus/
iBus dev group: http://groups.google.com/group/ibus-devel?hl=en