用 valgrind debug 看起來有點像 anthy 的 bug,把 memory 弄亂了。看有沒有人要練習如何用 valgrind debug ? c*先生?
==12938== Invalid read of size 4
==12938== at 0x7FB9B2E: (within /usr/lib/libanthydic.so.0.1.0)
==12938== by 0x6: ???
==12938== Address 0x5a1f2b4 is 0 bytes after a block of size 20 alloc'd
==12938== at 0x4021828: malloc (in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so)
==12938== by 0x7FA3EFE: anthy_do_context_set_str (in /usr/lib/libanthy.so.0.1.0)
==12938== by 0x7FA30A3: anthy_set_string (in /usr/lib/libanthy.so.0.1.0)
==12938== by 0x402F1FC: feedkey_anthy (anthy.cpp:851)
==12938== by 0x804FA9F: ProcessKeyPress (eve.cpp:1021)
==12938== by 0x80771D3: process_client_req (im-dispatch.cpp:187)