#165 Scim causes gimp plugins to crash


When I have scim running and trying to save any image in gimp into any particular format, like png, gimp plugin 'file-png' crashes.

When I delete /usr/local/lib/gtk-2.0/immodules/im-scim.so problem disappears.

See crash stack below. Crash is in static destructors. Seems like somehow the code of destructor is already mmapped out when it's called.

It's easy to catch in debugger. During save options gimp dialog detect the pid of file-png process and attach to it with gdb. Then hit Save in the dialog and you will see crash.

--- stack trace ---
Program received signal SIGSEGV, Segmentation fault.
~Pointer (this=0x29f957a4) at scim_pointer.h:107
in scim_pointer.h
Current language: auto; currently c++
(gdb) bt
#0 ~Pointer (this=0x29f957a4) at scim_pointer.h:107
#1 0x29f762f0 in __tcf_5 () at gtkimcontextscim.cpp:280
#2 0x28ed2187 in __cxa_finalize () from /lib/libc.so.7
#3 0x29f76013 in __do_global_dtors_aux () from /usr/local/lib/gtk-2.0/immodules/im-scim.so
#4 0x29f8d50c in _fini () from /usr/local/lib/gtk-2.0/immodules/im-scim.so
#5 0x286fe580 in ?? ()
#6 0x28077734 in ?? () from /libexec/ld-elf.so.1
#7 0xbfbfc0d8 in ?? ()
#8 0x280555bf in dlsym () from /libexec/ld-elf.so.1
#9 0x280556c8 in dlclose () from /libexec/ld-elf.so.1
#10 0x28a8039a in _g_module_close () from /usr/local/lib/libgmodule-2.0.so.0
#11 0x28a804ce in g_module_close () from /usr/local/lib/libgmodule-2.0.so.0
#12 0x2832d1df in gtk_im_context_simple_new () from /usr/local/lib/libgtk-x11-2.0.so.0
#13 0x28a6ff32 in g_type_module_unuse () from /usr/local/lib/libgobject-2.0.so.0
#14 0x28a70446 in g_type_plugin_unuse () from /usr/local/lib/libgobject-2.0.so.0
#15 0x28a6ce13 in g_type_register_static_simple () from /usr/local/lib/libgobject-2.0.so.0
#16 0x28a6d8b7 in g_type_class_unref () from /usr/local/lib/libgobject-2.0.so.0
#17 0x2832e66d in gtk_im_multicontext_append_menuitems () from /usr/local/lib/libgtk-x11-2.0.so.0
#18 0x2832e778 in gtk_im_multicontext_append_menuitems () from /usr/local/lib/libgtk-x11-2.0.so.0
#19 0x28a4f38b in g_object_unref () from /usr/local/lib/libgobject-2.0.so.0


  • Rolf

    Rolf - 2011-09-12
    • assigned_to: suzhe --> nobody
  • Rolf

    Rolf - 2016-06-09
    still a problem with the latest release?

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks