LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 06:02 PM   #1
zajaco0
LQ Newbie
 
Registered: Jul 2004
Location: Kentucky
Distribution: FC4
Posts: 18

Rep: Reputation: 0
Mozilla 1.7 segfaults on non root


So I recently did a standard upgrade with apt-get upgrade, I'm running Debian unstable, and Mozilla Debian Package 1.7.1-4. Ever since i upgraded, i get the following errors produced by
typing:
zach@ilikesugar:~$ mozilla --enable-debug &
gives the follwing:


[1] 7879
zach@ilikesugar:~$ selected UILocale: en-US
selected ContentLocale: US
LoadPlugin: failed to initialize shared library libXt.so [libXt.so: cannot open shared object file: No such file or directory]
LoadPlugin: failed to initialize shared library libXext.so [libXext.so: cannot open shared object file: No such file or directory]
LoadPlugin: failed to initialize shared library /usr/lib/mozilla/plugins/libnpsimple.so [/usr/lib/mozilla/plugins/libnpsimple.so: undefined symbol: _ZTV16nsQueryInterface]

[1]+ Segmentation fault mozilla --enable-debug

Mozilla will still start up and load the default page (file stored on the computer). But when I try to visit a website, it crashes with a seg fault.

I figure this is a permission problem somewhere, because everything works fine as root. I've searched through the other posts on this forum and nothing in those posts have helped.

Thanks,
~Zach
 
Old 08-03-2004, 03:01 PM   #2
wipe
Member
 
Registered: Jun 2004
Location: High Green
Distribution: Fedora Core 4
Posts: 180

Rep: Reputation: 30
Shared libraries should have permissions 755 (ie. rwxr-xr-x). The command is chmod 755 somefile; you must be root to use it. The X11 libraries are usually in /usr/X11R6/lib/. The files whose names end in .so are usually symbolic links to the actual libraries and they must exist.

You should also update any mozilla plug-ins you might have. What type of processor (architecture) do you have?

You can find out if you are accidentally running a different version of mozilla as root by typing type mozilla. It shows where the executable is.

Simon
 
Old 08-03-2004, 06:20 PM   #3
zajaco0
LQ Newbie
 
Registered: Jul 2004
Location: Kentucky
Distribution: FC4
Posts: 18

Original Poster
Rep: Reputation: 0
in the /usr/X11R6/lib directory, i found libXt.so.6 and libXext.so.6, so i made sim links of libXt.so and libXext.so and pointed them to the respective plugin. Then I chmod 755 the permissions.

I tried running mozilla again, the first 2 errors go away, but i still get the 3rd error: LoadPlugin: failed to initialize shared library /usr/lib/mozilla/plugins/libnpsimple.so [/usr/lib/mozilla/plugins/libnpsimple.so: undefined symbol: _ZTV16nsQueryInterface]

$ ls -la /usr/lib/mozilla/plugins/libnpsimple.so
-rwxrwxrwx 1 root root 77420 Nov 25 2003 /usr/lib/mozilla/plugins/libnpsimple.so

permissions seem to be correct there.

I have an Intel P4 processor.
type mozilla gives mozilla is /usr/bin/mozilla.
 
Old 08-03-2004, 06:29 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally posted by zajaco0
in the /usr/X11R6/lib directory, i found libXt.so.6 and libXext.so.6, so i made sim links of libXt.so and libXext.so and pointed them to the respective plugin. Then I chmod 755 the permissions.
I'm not sure I follow what you're saying here...
Permissions of which files did you change,
the libs themselves, or the symlinks?

Quote:
I tried running mozilla again, the first 2 errors go away, but i still get the 3rd error: LoadPlugin: failed to initialize shared library /usr/lib/mozilla/plugins/libnpsimple.so [/usr/lib/mozilla/plugins/libnpsimple.so: undefined symbol: _ZTV16nsQueryInterface]

$ ls -la /usr/lib/mozilla/plugins/libnpsimple.so
-rwxrwxrwx 1 root root 77420 Nov 25 2003 /usr/lib/mozilla/plugins/libnpsimple.so
It may well be that there's prerequisites for libnpsimple
missing ... try
ldd -v /usr/lib/mozilla/plugins/libnpsimple.so



Cheers,
Tink
 
Old 08-03-2004, 09:27 PM   #5
wipe
Member
 
Registered: Jun 2004
Location: High Green
Distribution: Fedora Core 4
Posts: 180

Rep: Reputation: 30
Quote:
Originally posted by Tinkster
I'm not sure I follow what you're saying here...
Permissions of which files did you change,
the libs themselves, or the symlinks?
A little off the topic here, but how does one normally change the permissions of symlinks? They are usually always 777 and chmod can't touch them. It changes the target files. The man page says the symlink permissions are "never used".

Quote:
It may well be that there's prerequisites for libnpsimple
missing ... try
ldd -v /usr/lib/mozilla/plugins/libnpsimple.so
Yes, well, they aren't actually missing since the problem doesn't occur while running Mozilla as root, am I right? Some file just isn't world-readable or something like that.

On the other hand, it may be that the crashing behaviour isn't caused by libnpsimple.so (what ever it is ). Does it happen every time with every web page?

Simon
 
Old 08-03-2004, 09:32 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally posted by wipe
A little off the topic here, but how does one normally change the permissions of symlinks? They are usually always 777 and chmod can't touch them. It changes the target files. The man page says the symlink permissions are "never used".
Yep ... that's why I'm asking which permissions he "changed".

Quote:
You can find out if you are accidentally running a different version of mozilla as root by typing type mozilla. It shows where the executable is.
You should use which instead of the bash-builtin type.
For all we know he might be using tcsh ;)



Cheers,
Tink
 
Old 08-04-2004, 07:27 AM   #7
zajaco0
LQ Newbie
 
Registered: Jul 2004
Location: Kentucky
Distribution: FC4
Posts: 18

Original Poster
Rep: Reputation: 0
~well, ive only been using linux for about 6 months so i wasn't aware of the permissions on the symlinks . I changed the permissions on the symlinks without checking them first. So i just checked and the chmod command didn't have any effect on any file (which is ok b/c i didn't need to do it anyway).

~ldd -v /usr/lib/mozilla/plugins/libnpsimple.so gave: (irrelevant info removed)

/usr/lib/mozilla/plugins/libnpsimple.so:
libpthread.so.0 (GLIBC_2.0) => /lib/tls/libpthread.so.0
libstdc++.so.5 (GLIBCPP_3.2) => /usr/lib/libstdc++.so.5
libstdc++.so.5 (CXXABI_1.2) => /usr/lib/libstdc++.so.5
libc.so.6 (GLIBC_2.1.3) => /lib/tls/libc.so.6
libc.so.6 (GLIBC_2.0) => /lib/tls/libc.so.6


~As root, everything works normal...just when another user trys using mozilla is where i see the problems. Some sites work, some don't. I know which sites will always work and those who don't. for example: www.debian.org, www.mozilla.org work, and google and hotmail always make mozilla throw a seg fault and quit.

~both which and type give the same output:
/usr/bin/mozilla

~Zach
 
Old 08-04-2004, 02:04 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Now check whether those files listed have the required
permissions as well ...



Cheers,
Tink
 
Old 08-04-2004, 06:53 PM   #9
zajaco0
LQ Newbie
 
Registered: Jul 2004
Location: Kentucky
Distribution: FC4
Posts: 18

Original Poster
Rep: Reputation: 0
/lib/tls/libpthread.so.0, /usr/lib/libstdc++.so.5 /usr/lib/libstdc++.so.5, /lib/tls/libc.so.6, and /lib/tls/libc.so.6 all have premissions of 777. ARGH!

Zach
 
Old 08-04-2004, 07:03 PM   #10
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Keep going - ldd those as well ... and make sure that the
directories they live in have r-x set for users as well ;)


Cheers,
Tink
 
Old 08-04-2004, 08:01 PM   #11
wipe
Member
 
Registered: Jun 2004
Location: High Green
Distribution: Fedora Core 4
Posts: 180

Rep: Reputation: 30
If you want, try mozilla.org's official binaries. The installation is usually pretty straightforward. I had a situation once where one build would not work and I couldn't figure out the exact reason. So I just used another one.

Sometimes problems can go away if you remove the ~/.mozilla directory and let Mozilla create it again. There might be files left from previous versions or some file might be corrupted. Back up your e-mail and important files first though.

Simon
 
Old 08-09-2004, 11:39 PM   #12
zajaco0
LQ Newbie
 
Registered: Jul 2004
Location: Kentucky
Distribution: FC4
Posts: 18

Original Poster
Rep: Reputation: 0
After going through many ldd commands and verifying all of the permissions that I could follow, I decided to check if this error also occured when I ran mozilla --enable-debug & while logged in as root. And sure enough, the same shared library error showed up. So, I don't think we are looking for a solution to my problem in the correct place.

The only clue I am getting is segmentation fault when the page loads. Is there any other debugging tool I can use?

~Zach
 
Old 08-10-2004, 08:15 AM   #13
wipe
Member
 
Registered: Jun 2004
Location: High Green
Distribution: Fedora Core 4
Posts: 180

Rep: Reputation: 30
strace mozilla

Shows system calls and received signals. Check man strace.

Simon
 
Old 08-10-2004, 09:03 AM   #14
zajaco0
LQ Newbie
 
Registered: Jul 2004
Location: Kentucky
Distribution: FC4
Posts: 18

Original Poster
Rep: Reputation: 0
I works!! I used strace mozilla, and observed when the segfault occured. At the point mozilla crashed, it was having trouble accessing my true type fonts. I guess the update that I did that I was talking about at the beginning of the thread updated my ttf's and changed the permissions bc they were only readable by root. A simple chmod command fixed that!

Thanks for all your help!

~Zach
 
  


Reply



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
CUPS Cannot print in mozilla non-root (can as root)? mismacku Linux - Software 0 08-26-2004 03:07 AM
Can't load Mozilla with non-root dtjohnst Slackware 6 03-30-2004 01:12 PM
Segfaults in Mozilla, Mozilla Firebird, and Mozilla Thunderbird Ninja Cow Linux - Software 2 02-02-2004 01:33 AM
Mozilla will only start as root. Crickit Linux - Software 8 01-11-2004 09:41 PM
Mozilla 1.4 non-root user ejort Linux - Software 6 10-15-2003 11:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:39 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration