Bugzilla – Bug 137396
LTC20105-kinput2 cannot work after specific function calls
Last modified: 2016-02-13 05:33:09 UTC
LTC Owner is: shoji@jp.ibm.com LTC Originator is: toshiona@jp.ibm.com Hardware Environment PC (Celeron 2.4GHz, Memory 512MB) Software Environment: Operating System: SLES9 SP2, SLES9 SP3RC2 Problem Description: kinput2 cannot work after specific function calls. XUnsetICFocus() XmbResetIC() XSetICFocus() Steps to Reproduce: 1. Install SLES9 SP2, or "kinput2-v3.1-351.9". 2. Compile and run the test code. $ gcc -o xim5b-mod3 xim5b-mod3.c -lX11 -L/usr/X11R6/lib -I/usr/X11R6/include $ xim5b-mod3 3. Turn on kinput2 by pressing Shift+space. 4. Click right button of mouse over the window. Then, the following functions are called. XUnsetICFocus() XmbResetIC() XSetICFocus() 5. After that, no input passes to kinput2. <= Problem. All input characters appears as alphabet directly. If the problem didn't occur, please repeat step 4. Additional Information: - If only XmbResetIC() was called, the problem didn't occur. - IBM Java5 uses these functions with the same sequence, so IBM Java5 has the problem. - "kinput2-v3.1-315.4" of SLES9GM and SLES9 SP1 didn't have the problem. Created an attachment (id=13573) Sample code - xim5b-mod3.c Created an attachment (id=13634) 1st sample fix. Xtransport layer seems to have strange behavior to send multiple requests. I added IMFlush() just after IM_RESET_IC_REPLY packet was ready to send. The reported problem didn't occur with your fix. Thank you. But, please give us some days for more tests.
Created attachment 60015 [details] xim5b-mod3.c
Created attachment 60016 [details] LTC20105.patch
changed: What |Removed |Added ---------------------------------------------------------------------------- Status|FIXEDAWAITINGTEST |TESTED Target Milestone|--- |SLES9_SP4 ------- Additional Comments From toshiona@jp.ibm.com 2005-12-12 02:55 EDT ------- Moved the status to TESTED. The reported problem was fixed by Sugiyama-san\'s fix, and I cannot find any side effect so far. Thank you. I understood it\'s too late for SP3. I want the fix in SP4 at least. Because the problem is a kind of regression, and IBM Java5 easily hits the problem in Japanese.
I can reproduce the problem and verify that the patch attached to comment #2 helps.
Fixed package submitted to STABLE and the openSUSE build service.
Moved "Product" from "SUSE LINUX Enterprise Server 9 SP2" to "openSUSE 10.3" because the bug still existed in openSUSE 10.3 as well (and to make the bug publicly readable).
Packages for SLES9 including the patch are here: ftp://ftp.suse.com/pub/projects/m17n/sles9/RPMS/i586/kinput2-v3.1-315.11.i586.rpm ftp://ftp.suse.com/pub/projects/m17n/sles9/RPMS/ia64/kinput2-v3.1-315.11.ia64.rpm ftp://ftp.suse.com/pub/projects/m17n/sles9/RPMS/ppc/kinput2-v3.1-315.11.ppc.rpm ftp://ftp.suse.com/pub/projects/m17n/sles9/RPMS/ppc64/kinput2-v3.1-315.11.ppc64.rpm ftp://ftp.suse.com/pub/projects/m17n/sles9/RPMS/s390/kinput2-v3.1-315.11.s390.rpm ftp://ftp.suse.com/pub/projects/m17n/sles9/RPMS/s390x/kinput2-v3.1-315.11.s390x.rpm ftp://ftp.suse.com/pub/projects/m17n/sles9/RPMS/sles9-i386/kinput2-v3.1-315.11.i586.rpm ftp://ftp.suse.com/pub/projects/m17n/sles9/RPMS/sles9-ia64/kinput2-v3.1-315.11.ia64.rpm ftp://ftp.suse.com/pub/projects/m17n/sles9/RPMS/sles9-ppc/kinput2-v3.1-315.11.ppc.rpm ftp://ftp.suse.com/pub/projects/m17n/sles9/RPMS/sles9-ppc64/kinput2-v3.1-315.11.ppc64.rpm ftp://ftp.suse.com/pub/projects/m17n/sles9/RPMS/sles9-s390/kinput2-v3.1-315.11.s390.rpm ftp://ftp.suse.com/pub/projects/m17n/sles9/RPMS/sles9-s390x/kinput2-v3.1-315.11.s390x.rpm ftp://ftp.suse.com/pub/projects/m17n/sles9/RPMS/sles9-x86_64/kinput2-v3.1-315.11.x86_64.rpm ftp://ftp.suse.com/pub/projects/m17n/sles9/RPMS/src/kinput2-v3.1-315.11.src.rpm ftp://ftp.suse.com/pub/projects/m17n/sles9/RPMS/x86_64/kinput2-v3.1-315.11.x86_64.rpm
→ NEEDINFO Anja Stock <ast@novell.com> Anja, is this OK for SLES9-SP4? Do we need a SWAMPID?
Package submitted for SLES9-SP4: ------------------------------------------------------------------- Tue Mar 06 15:39:49 CET 2007 - mfabian@suse.de - Bugzilla #137396: "LTC20105-kinput2 cannot work after specific function calls": fixed by patch received from Shoji SUGIYAMA from IBM. ------------------------------------------------------------------- mfabian@magellan:/work/src/done/SLES9-SP4/kinput2$ ls Kinput2.conf.patch bugzilla-137396-cannot-work-after-specific-function-calls.patch bugzilla-47203-keep-auxiliary-windows-on-top.patch bugzilla-62553-spotlocation.patch bugzilla-63978-hoge.patch kinput2-v3.1-beta3-java.dif kinput2-v3.1-beta3.dif kinput2-v3.1-rootwindow-1.patch kinput2-v3.1.tar.bz2 kinput2.app-defaults.patch kinput2.changes kinput2.man-page.patch kinput2.spec reset_state.patch mfabian@magellan:/work/src/done/SLES9-SP4/kinput2$
Patch submitted upstream to the author of kinput2, Makoto Ishisone <ishisone@sra.co.jp>.
SWAMPID for SP4 is 3489
Thank you for the SWAMPID. Closing bug as FIXED.
changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ACCEPTED |CLOSED ------- Additional Comments From toshiona@jp.ibm.com 2007-03-07 23:31 EDT ------- I verified the problem was fixed with ftp://ftp.suse.com/pub/projects/m17n/sles9/RPMS/i586/kinput2-v3.1- 315.11.i586.rpm Closing. Thank you.