[Uim] reliability fix: uim-fep.c

YAMAMOTO Kengo / YamaKen yamaken at bp.iij4u.or.jp
Tue May 22 00:56:13 PDT 2007


Hi Etsushi,

At Tue, 22 May 2007 12:03:29 +0900,
ek.kato at gmail.com wrote:
> 
> OK.  I get a different error with current trunk.
> 
> uim-fep: uim.c:302: uim_get_candidate: Assertion
> `uim_scm_gc_protected_contextp()' failed.

Thanks for the report.

I don't realize that uim-fep calls uim_get_candidate() on a
non-GC-protected context. I'll fix the wrong assumption of
uim_get_candidate() by replacing the precondition
uim_scm_gc_protected_contextp() with uim_scm_any_contextp()
tomorrow or after. Please wait for a while.

> Program received signal SIGABRT, Aborted.
> 0x00acc402 in __kernel_vsyscall ()
> (gdb) where
> #0  0x00acc402 in __kernel_vsyscall ()
> #1  0x00800ee0 in raise () from /lib/libc.so.6
> #2  0x00802731 in abort () from /lib/libc.so.6
> #3  0x007fa30e in __assert_fail () from /lib/libc.so.6
> #4  0x009cba33 in uim_get_candidate (uc=0x972c230, index=1,
>     accel_enumeration_hint=0) at uim.c:302
> #5  0x0804dfa7 in end_callbacks () at callbacks.c:971
> #6  0x0805047e in draw () at draw.c:164
> #7  0x0804aa54 in main_loop () at uim-fep.c:969
> #8  0x0804c0e2 in main (argc=Variable "argc" is not available.) at uim-fep.c:600

------------------------------------------------
YAMAMOTO Kengo / YamaKen  yamaken at bp.iij4u.or.jp
FAMILY   Given / Nick
http://en.wikipedia.org/wiki/Japanese_name


More information about the uim mailing list