LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 08-01-2004, 01:41 PM   #1
snooo
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 linuxpackages.net . 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

Quote:
/usr/lib/mozilla-firefox/run-mozilla.sh: 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 linuxpackages.net (although the error has occured also with Mozilla 1.7 and offical packages from mozilla.org of Firefox).
 
Old 08-05-2004, 07:01 PM   #2
pezplaya
Member
 
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, 07:27 AM   #3
stoodi
LQ Newbie
 
Registered: Aug 2004
Location: Poland
Distribution: Gentoo x86_64 , Arch Linux
Posts: 3

Rep: Reputation: 0
You have to reinstal X.org

Freetype overwrites some X.org libs, so you have to reinstall X.org too. I had the same problem.
 
Old 09-13-2004, 04:14 PM   #4
rajsekar
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, 04:40 PM   #5
stoodi
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 http://www.linuxpub.pl/ with firefox after freetype 2.1.9 (with bytecode hinting) instalation. I have the same bug. /opt/firefox/run-mozilla.sh: 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, 07:43 PM   #6
squishypickle
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, 10:03 PM   #7
gefst
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://http://www.abnormalpenguin.co...re-mirrors.php for a list) and download the original Slackware sources (located somewhere in /source under /X)

You need to download 3 files:
freetype-2.1.7.tar.bz2
freetype.illadvisederror.diff.gz
freetype2.build

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:

sh freetype2.build

Everything works like a charm.

GEFST
 
Old 10-01-2004, 04:43 PM   #8
piskie
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.
 
  


Reply


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/run-mozilla.sh: line 159: 3492 Segmentation fault behmjoe Linux From Scratch 2 11-28-2005 11:48 AM
Segmentation fault - Firefox satimis Linux From Scratch 2 08-26-2005 05:57 AM
Firefox 1.0 segmentation fault rutgerw Linux - Software 13 03-01-2005 07:12 AM
Firefox Segmentation fault. RoaCh Of DisCor Linux - Software 12 12-08-2004 02:36 PM
Segmentation fault on mozilla,firefox etc. nbccbn Linux - Software 4 07-10-2004 11:48 AM


All times are GMT -5. The time now is 06:46 AM.

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