i use scim. when i start a gtk-sharp application (any gtk-sharp app), it crashes with: *** glibc detected *** free(): invalid pointer: 0x0829df88 *** Aborted (well, not exactly at the beginning.. it crashes when it gets shown with a text-editable-field (where scim would do his job)..so for example muine starts fine, it crashes when you open the play-album window) i'll attach a very simple gtk-sharp app that demonstrates the problem. running it with mint (not mono), gives some more info: *** glibc detected *** free(): invalid pointer: 0x08279db0 *** Nothing can catch this exception: ExecutionEngineException: Abort (SIGABRT). #0: 0x00009 calli.nat in (wrapper managed-to-native) Gtk.Widget:gtk_widget_show_all (intptr) ([0x81a36a8] ) #1: 0x00003 vcall in Gtk.Widget:ShowAll () () #2: 0x0001e vcallvirt in GtkSharpTutorial.helloworld:Main (string[]) ([0x808d8c0] ) does this mean that it crashes in the gtk_widget_show_all method? i tried this on ubuntu-linux, and there it works fine. glibc-2.3.4.20041102 (+nptl +nptlonly) gtk+2.6.1-r1 gtk-sharp-1.0.4-r1 mono-1.0.5-r3 scim-1.0.2 ps: there is an another problem with scim (not related to gtk-sharp). howto-reproduce: 1. launch gedit 2. choose the scim input method (if it not the default) 3. start the scim input method (usually ctrl+space) 4. select the m17n-ja-anthy method 5. enter some text 6. press F7 (commit as katakana) *** glibc detected *** corrupted double-linked list: 0x085aef88 *** so i wonder..is it some kind of problem with my gentoo? btw. should i report this scim+m17n problem as a separate bug? gabor@dubb ~ $ gedit *** glibc detected *** corrupted double-linked list: 0x085aef88 ***
Created attachment 50906 [details] hello.cs i attached hello.cs, a very simple gtk-sharp app. compile it with: "mcs hello.cs -pkg:gtk-sharp" and run with: "mono hello.exe" or "mint hello.exe"
This seems to be related to a problem with scim, not with gtk-sharp, but CCing dotnet anyway. Can you get any useful backtraces when this happens?
useful-backtraces: how? i tried this: gtk, mono compiled with the "debug" USE flag. gdb mint run hello.exe bt backtrace attached... is this bt useful?
Created attachment 50943 [details] backtrace.txt
Well, that definitely seems to point to scim as the ultimate cause... Does the equivelant code in C cause the same error? Trying to break on the scim_get_module_list() function and stepping from there may be insightful as well.
> Well, that definitely seems to point to scim as the ultimate cause... i see... but why isn't this happening on ubuntu? maybe some gcc issues? > Does the equivelant code in C cause the same error? i haven't created the EXACT same test-case in C, but i assume it would work, because i use scim all the time..it works in firefox, gedit, gaim, eclipse and so on ;) > Trying to break on the scim_get_module_list() function > and stepping from there may be insightful as well. how can i compile scim to contain debug symbols? there's no "debug" USE flag for scim....
Change your CFLAGS to have -g (and maybe remove all other flags to be safe) and add 'nostrip' to your features. Then re-emerge scim.
hello.cs works fine on my env. sys-libs/glibc-2.4-r3 x11-libs/gtk+-2.8.19 dev-dotnet/gtk-sharp-2.8.2 and dev-dotnet/gtk-sharp-1.0.10 dev-lang/mono-1.1.13.8.1 app-i18n/scim-1.4.4 Please reopen if you still have problem.