SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am having a very strange problem. I first noticed the problem when using Firefox, what happens is that I visit some websites (such as www.digg.com) and Firefox immediently crashes.
I can visit digg with other browsers such as opera and they do not crash. However I think this is a linux problem becuase other browsers like opera and konqueror do crash sometimes when visiting web pages just not as frequently. So I launched Firefox from the comamnd line, firefox opens ok and google (my homepage) loads fine. So I then visit digg.com and firefox loads part of the page then immediently crashes. This is the exact error I got from the console:
Now I think this maybe a permission problem becuase when I login as root launch firefox, and visit digg.com the page loads fine. e.g.
Quote:
bash-3.00$ su
Password:
bash-3.00# firefox
No segmentation faults, everything works. Here is what I get when I launch firefox with strace (as a user):
(shortened, really long so I shortened it a little)
I noticed that the owner of those files is root, is that normal? (I know I could change it with chown..) This segmentation fault error seems to be a problem in Linux
and I have googled for answers but all the things I find seem to never be resolved. Tried this google search but can't seem to find anything that resolves my issue:
Distribution: Arch Linux 2007.05 "Duke" (Kernel 2.6.21)
Posts: 447
Rep:
I hate to say that I cannot help much myself (I have this EXACT same problem) but there may bee SOME amount of resolution if you reinstall GTK2. Not sure if that will help you, it didn't help me. I was also advised to chmod your ~/.mozilla folder, but that had RWX for all users. The issue doesn't seem to resolve if you change versions of the package either. I installed 1.0.5,1.0.7,1.5.0.1, and 2.0A. Not a one was able to run as a regular user
Yeah this seems to be a unresolved problem (or so it seems), I have searched for hours for a solution, but to no avail. I'll try to re-install gtk and see if that helps.
Anyone know of a solution to this problem? It'd be nice to get a solution to this problem here so others with this same problem can benefit as well.
My ~/.mozilla has rwx for all users as well...
Just got a segmentation fault with firefox as root... there goes my permissions problem idea.
When you say you get this on "digg," do you mean the front page? Are you navigating through a dugg link? Are you browsing spy?
Yes I mean on the front page, or any page on digg for that matter. But this doesn't only happen on digg, it happens on other sites as well just always on digg (for whatever the reason). I was just using digg as an example, this happens randomly on all sites.
Well, please know that I am an extreme noobie and I am not a programmer, so I am not going to be much help, but perhaps we can think this through a bit more.
First of all, what is a Segmentation Fault? Define it.
Wikipedia says, "a segmentation fault occurs when a program attempts to access a memory location that it is not allowed to access, or attempts to access a memory location in a way that is not allowed."
We know that Firefox (base, anyway) is not so buggy that this would occur normally. So, unless you've modified Firefox in some way, either the source code or through extensions, it's not Firefox that's inappropriately grabbing a memory location, but rather something else that has itself in a memory address that causes a segfault when Firefox needs to access a memory area.
Perhaps you were thinking that the "Access Denied" that precedes the error meant a "permissions" problem, but, in this case, Access Denied could mean access is denied to the area of memory Firefox wants.
What would it take for you to find out what memory address Firefox wanted and, in turn, what is IN that memory address?
Maybe whatever is in the memory address Firefox wants is your culprit?
Distribution: Arch Linux 2007.05 "Duke" (Kernel 2.6.21)
Posts: 447
Rep:
I have also seen that you may be able to edit a file (Im sorry I don't recall which one - it's --of course-- in /etc/ but I can't recall beyond that and I can't seem to find the article again) and remove a string "wins". The file didn't contain that for me either, however. (From what I understand the crash occurs when Firefox accesses the "wins" service, and editing the unnamed file somehow fixes this)
Well tcv I followed the link you gave me and ran gdb as instructed. Here is the output:
Quote:
bash-3.00$ cd /usr/lib/firefox-1.5.0.1
bash-3.00$ ./run-mozilla.sh -g firefox-bin -d gdb
MOZILLA_FIVE_HOME=.
LD_LIBRARY_PATH=.:./plugins:.
DISPLAY=:0.0
DYLD_LIBRARY_PATH=.:.
LIBRARY_PATH=.:./components:.
SHLIB_PATH=.:.
LIBPATH=.:.
ADDON_PATH=.
MOZ_PROGRAM=firefox-bin
MOZ_TOOLKIT=
moz_debug=1
moz_debugger=
which: no ddd in (/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games:/opt/www/htdig/bin:/usr/lib/java/bin:/usr/lib/java/jre/bin:/opt/kde/bin:/usr/lib/qt/bin:/usr/share/texmf/bin:.)
/usr/bin/gdb firefox-bin -x /tmp/mozargs.Thqvzh
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i486-slackware-linux"...
(no debugging symbols found)
Using host libthread_db library "/lib/tls/libthread_db.so.1".
(gdb)
I noticed it says no "ddd" in my path, could this be related? I'm not seeing any segmentation faults in there however, or any references of _nss_wins_gethostbyname_r (). Since I'm not seeing this request, should I still delete wins from /etc/nsswitch.conf?
As for what I've changed in my system, not much lately. A few months ago I installed the latest nvidia driver. I have installed a few updated slackware security related packages from slackware's official ftp site. Here's the packages I have installed from that ftp site (installed with installpkg):
Those are the only slackware packages I have installed other than the default ones. All these packages were designed for slackware 10.2. I have had all that stuff installed though for at least a few weeks without having this issue. Now that I think of it before the segmentation errors started to occur, my firefox profile corrupted. So I had to delete my corrupted profile, and create a new one. Then I started to get those segmentation faults, but I get them with other applications as well such as opera, konqueror, gftp and wget.
Distribution: Arch Linux 2007.05 "Duke" (Kernel 2.6.21)
Posts: 447
Rep:
I seem to have solved my problem.
Mine was in response to the (extremely) abrupt removal of a pacman package called ttf-ms-fonts. I then reinstalled them and I have had no more problems so far. Im not sure if that helps anyone else though...
Thank you guys, for all of your searching.
(and yes - that link was what I was referring too)
Ok, i've decided to try and edit my /etc/nsswitch.conf file but I don't have any "wins" entry to remove
Quote:
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Legal entries are:
#
# nisplus or nis+ Use NIS+ (NIS version 3)
# nis or yp Use NIS (NIS version 2), also called YP
# dns Use DNS (Domain Name Service)
# files Use the local files
# [NOTFOUND=return] Stop searching if not found so far
#
xpromisex, thanks for sharing how you fixed your problem. I searched my hard drive for ttf-ms-fonts with slocate and it didn't find anything, I must not have it installed.
So, you've never had the ttf-ms-fonts package? Why don't you try to install it?
When you say your profile become corrupt, what did you do to resolve that? What exactly did you do? (I suppose it doesn't really matter since, as you say, more than one browser is crashing.)
If you were to save the HTML digg.com homepage and try to render that in Firefox, Opera, Konquerer, does it crash?
I imagine the problem is in one of the style sheets.
One thing I might try to do to see if it yields anything interesting is do an strace as root and then do it again as a user. You can run a diff against the two output files to see what's different. Maybe you'll see something serious?
As for the "wins" entry, don't worry about it. That person had a problem related to an update he performed on Samba. You've obviously not done that and since you don't have the entry any way, I'd not make any changes.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.