Saturday, February 24, 2007

scim + firefox 2

Firefox 2 and 1.5 as distributed by Mozilla are linked against a different version of libstdc++ than the binary distributions of the SCIM input method. I think. Anyway, whatever way it's done, Firefox crashes immediately on startup - running it from the command line produces this output:
/usr/lib/firefox/ line 131: 2198 Segmentation fault "$prog" ${1+"$@"}
I encountered this problem before and worked around it by specifying xim as the GTK input method module... but this meant I couldn't use any input methods.

So it happened again today when Firefox updated itself to, and I happened upon a much nicer workaround:
sudo vim `which firefox`
then add:
a line before "moz_pis_startstop_scripts()".

This allows me to use SCIM in Firefox 2. Happy days...!


  1. Thank you! Thank you! I thought I was losing my mind until I found your post on this. I upgraded to Firefox last night and was stumped when it started to immediately Seg Fault on me (I should have remembered that I encountered similar scim errors a couple of years ago). Your fix worked like a charm.

  2. Glad this worked for you too. I was surprised it actually worked - I tried it out on Skype too, but as soon as I switch to SCIM input mode it dies immediately. Ah well :)