Monday, November 5, 2007

Does your firefox seg?



I had this terrible problem of seg fault of firefox. Finally after several weeks of googling I was able to work round the problem. This is the problem that I had with firefox........
$ ./firefox
./run-mozilla.sh: line 131: 6582 Segmentation fault "$prog" ${1+"$@"}

This problem comes from the SCIM package. It's broken since Debian switched from gcc3 to gcc4. Also not to mention that many others are also broken including Ubuntu. The package maintainer knows it but it seems the problem is not trivial (I don't know the details). Other applications like Acrobat Reader also crash because of SCIM.

There are two solutions:
1) Deactivate SCIM only while launching Firefox: "GTK_IM_MODULE=xim ./firefox" Of course you
won't have CJK input in Firefox. Anyway it won't really matter much.

e.g. $GTK_IM_MODULE=xim ./firefox

2) Stop using SCIM (switch to UIM)

Do the (1) first to get sure the problem comes from SCIM.

At the moment I havn't figured it how to switch from SCIM to UIM. But If I do I will let you know from this blog. Hope this is helpful for the people who have the same trouble.