Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 08-01-2004, 12:41 PM   #1
LQ Newbie
Registered: Jul 2004
Posts: 17

Rep: Reputation: 0
Help! Annoying Mozilla/Firefox Segmentation Fault

I recently installed Slackware 10 and, using Swaret, obtained the freetype2 package from . Unfortuntly, both Mozilla and Firefox have taken to a habit of crashing on certain websites. They will always crash on the same websites inless I uninstall freetype2. I would like to keep freetype2 as otherwise my bitmap fonts look horrid. But this problem is enfuritating. The error code message often looks something like this

/usr/lib/mozilla-firefox/ line 451: 9571 Segmentation fault "$prog" ${1+"$@"}
Any ideas? Are there anyother ways that I could track the cause of this error? I am a relative newbie so don't understand everything fully yet. I am running Slackware 10.0, and Mozilla Firefox 0.9.1 GTK2/XFT, which I installed from (although the error has occured also with Mozilla 1.7 and offical packages from of Firefox).
Old 08-05-2004, 06:01 PM   #2
Registered: Dec 2003
Distribution: Gentoo / Slackware
Posts: 92

Rep: Reputation: 15
I just installed freetype2 also and I'm getting the same error. I tried uninstalling it, but I still get the same error :/
Old 08-29-2004, 06:27 AM   #3
LQ Newbie
Registered: Aug 2004
Location: Poland
Distribution: Gentoo x86_64 , Arch Linux
Posts: 3

Rep: Reputation: 0
You have to reinstal

Freetype overwrites some libs, so you have to reinstall too. I had the same problem.
Old 09-13-2004, 03:14 PM   #4
LQ Newbie
Registered: Sep 2004
Posts: 1

Rep: Reputation: 0
Solved segmentation fault problem.

I too had the same problem

I tried deleting the .mozilla and .fullcircle directories but in vain.

Then i strace the problem and the problem is

/dev/zero should be read writable by the user.

You can see the current permission by the command,

$ ls -l /dev/zero

it should say something like rw-rw-rw- (where the last part is what is important).

In case you have root, you can simply do

$ chmod a+rw /dev/zero

The thing is that firefox opens /dev/zero and then mmaps and does some file I/O assuming that it is open properly.

Best of luck
Old 09-13-2004, 03:40 PM   #5
LQ Newbie
Registered: Aug 2004
Location: Poland
Distribution: Gentoo x86_64 , Arch Linux
Posts: 3

Rep: Reputation: 0
It doesn't wrok.

I have installed freetype again to test your solution, but it doesn't work. Try with firefox after freetype 2.1.9 (with bytecode hinting) instalation. I have the same bug. /opt/firefox/ line 159: 4802 Segmentation fault "$prog" ${1+"$@"}

ls -l /dev/zero

crw-rw-rw- 1 root root 1, 5 2004-09-13 18:23 /dev/zero
Old 09-25-2004, 06:43 PM   #6
LQ Newbie
Registered: May 2004
Posts: 2

Rep: Reputation: 0
I have this problem as well. After installing freetype2 from source and enabling the patented antialiased thing, it produces the error above. I've tried installing PR1.0, deleting the .mozilla folder in my home directory, and doing the /dev/zero thing to no avail. I notice that it runs under root, but not under a user, so I guess that means some file's permissions are incorrect (maybe).
Old 09-27-2004, 09:03 PM   #7
LQ Newbie
Registered: Sep 2003
Posts: 28

Rep: Reputation: 17
SOLVED (second attempt)

I had the same problems under Slackware 10 after installing freetype 2.1.9 with bytecode hinting. The problems seems not to be related with bytecode hinting per se, but with the use of a different version of the library. Slackware 10 uses freetype 2.1.7 and there must be incompatibilities between the two.

To fix the problem go to your trusted Slackware 10 mirror (see http:// for a list) and download the original Slackware sources (located somewhere in /source under /X)

You need to download 3 files:

The later is an official Patrick build script that does everything. What you need to do is open the tar.bz2, make the necessary changes to enable bytecode hinting and the compress the archive again as tar.bz2. Place the three files in a directory and as root give:


Everything works like a charm.

Old 10-01-2004, 03:43 PM   #8
LQ Newbie
Registered: Oct 2004
Location: Forest of Dean, England
Distribution: Slackware
Posts: 1

Rep: Reputation: 0
I got it to work

I was having the same problem (segmentation fault at line 159). Mozilla would work wonderfully for root, and would start OK when not on-line for any user. However when any user except root went on-line I would get the segmentation fault at line 159.
I did an `strace` (tracing all child processes) and found that the problem was no permission on the fonts in /usr/local/share/fonts/ttfonts for anyone other than root (the permissions were 400). I did a chmod 444 of all the fonts in this directory and now everything runs smooth.
Hope this helps.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
/usr/lib/mozilla-1.7.11/ line 159: 3492 Segmentation fault behmjoe Linux From Scratch 2 11-28-2005 10:48 AM
Segmentation fault - Firefox satimis Linux From Scratch 2 08-26-2005 04:57 AM
Firefox 1.0 segmentation fault rutgerw Linux - Software 13 03-01-2005 06:12 AM
Firefox Segmentation fault. RoaCh Of DisCor Linux - Software 12 12-08-2004 01:36 PM
Segmentation fault on mozilla,firefox etc. nbccbn Linux - Software 4 07-10-2004 10:48 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:31 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration