LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Firefox-3.5.2 Segfaults, but I don't care) & ATI video (https://www.linuxquestions.org/questions/slackware-14/firefox-3-5-2-segfaults-but-i-dont-care-and-ati-video-808114/)

business_kid 05-16-2010 04:18 AM

Firefox-3.5.2 Segfaults, but I don't care) & ATI video
 
New install slackware64 13.0. Sites that cause it to segfault are simple ones - gmail (2 seconds after I get past the sign in stage, and before I even open any email. This one also
www.channel4.com/programmes/4od.

I have done the obvious stuff - checking for missing libs with ldd, finding them, etc. Disks are 1-2 years old (ext3) and well checked, but this install has not been lived in yet. Plugins installed are: java 1.6.0_16; Flash 10.0 r45; SVG-2.26. Kernel is 2.6.33.2, made with 'make oldconfig from a very satisfactory 2.6.30.5 kernel which was faultless for some time.

The box is all-amd/ati HP6715S, with RS690 video and northbridge, sb600 southbridge. and a twin turion 2 Ghz. It is using the recent OSS xf86-video-ati drivers. The only strange Mozilla error was between 4th and 5th crash this session when it said "Input/Output Error". Otherwise the error shows as line 131 of run-mozilla.sh - the 'finally start the binary' routine.

Any ideas welcome: you're not beaten until you run out of ideas.

Alien Bob 05-16-2010 05:12 AM

Try the mozilla-firefox-3.6.3-x86_64-1_slack13.0.txz package which is in slackware-13.0/patches/packages/

Eric

business_kid 05-16-2010 10:32 AM

Quote:

Originally Posted by Alien Bob (Post 3970362)
Try the mozilla-firefox-3.6.3-x86_64-1_slack13.0.txz package which is in slackware-13.0/patches/packages/

Eric

Thanks Eric, will do!

business_kid 05-17-2010 03:17 AM

Got firefox-3.6.3 from heanet.ie (local mirror) and it barfs just the same :-(

This is a very new install and these are the teething problems. The other unusual feature here is that I have and am using the latest xf86-video-ati and am even getting direct rendering from a recently decent ATI RS690 video thing in the Northbridge. That's why I'm here. Because my old install of slamd64-12.2 just needs too much &#@$! work to get that running DRI, and the video was shameful.
It is shameful still, btw, but slightly less shameful.

EDIT: Found this 'cos when I started X last night, I ran
startx > x.error 2>&1
Code:

(Terminal:5900): Terminal-WARNING **: Unable to load terminal preferences.
None
None
None
Error: No running window found
/usr/lib64/firefox-3.6.3/run-mozilla.sh: line 131:  6399 Segmentation fault      "$prog" ${1+"$@"}
Error: No running window found
None
*** BUG ***
Malformed region detected
Set a breakpoint on 'log_region_error' to debug
*** BUG ***
Malformed region detected
Set a breakpoint on 'log_region_error' to debug
None
None
None
None
*** BUG ***
Malformed region detected
Set a breakpoint on 'log_region_error' to debug
*** BUG ***
Malformed region detected
Set a breakpoint on 'log_region_error' to debug
xscreensaver-command: activating and locking.
None
None
Error: No running window found
/usr/lib64/firefox-3.6.3/run-mozilla.sh: line 131: 18830 Segmentation fault      "$prog" ${1+"$@"}
Error: No running window found
/usr/lib64/firefox-3.6.3/run-mozilla.sh: line 131: 18900 Segmentation fault      "$prog" ${1+"$@"}
xfce4-session: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0.
xfce4-panel: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0.

This covers an hour last night when the box was on, and ten minutes this morning. There was a hibernate where the screen saver shows. The 'none' I don't get but it is familiar from XFCE. The number just before the segfault is at least varying: It was usually in the 4000s, I did see 3000s, but here I even managed 18000s. Is that an achievement, or just more bloat in the newer firefox?

/goes off to google for that error.

business_kid 05-17-2010 11:53 AM

/returns exhausted much later

I have DRI going. That error turned out to be in the pixman lib, because of a version problem.
So I ran and got
1. libva (source) - I forget why, but I needed it
2. pixman (pkg on slack64-current)
3. mesa-7.03 then mesa-7.8.1 (pkg) and xorg-server-1.7.7(pkg)
4. libdrm-2.4.12
Then I did some reading. Before 2.4.18, libdrm_radeon wasn't automatically built, ergo the mesa package didn't have it so couldn't use it. So I had to get
5. libdrm-2.4.20 in source
6. a git clone of mesa, compiled --with-sixty-five-difficult-to-remember-options
7. kernel headers (pkg) because mesa wouldn't compile without newer headers and I removed the old ones before installing. When you have no kernel headers, kernel headers won't compile.

Then I fired up X, installed the glxinfo and glxgears from mesa that it didn't install. All the render strings said the right things, glxgears WAS SLOWED BY A FULL 100 FPS over software rendering and firefox _still_ crashes out on gmail!

/signs himself into a home for the bewildered

volkerdi 05-17-2010 02:21 PM

I believe the problem that you are running into was solved in -current with this:

x/xorg-server-1.7.6-x86_64-2.txz: Rebuilt.
Patched a bug that could cause the X server to crash.

Perhaps we need to go apply this patch in 13.0 if stock 13.0 + /patches is suffering from this bug.

business_kid 05-18-2010 04:23 AM

Quote:

Originally Posted by volkerdi (Post 3971791)
I believe the problem that you are running into was solved in -current with this:
x/xorg-server-1.7.6-x86_64-2.txz: Rebuilt.
Patched a bug that could cause the X server to crash.
Perhaps we need to go apply this patch in 13.0 if stock 13.0 + /patches is suffering from this bug.

I have your xorg-server-1.7.7 pkg, and was considering updating that, if later is available. In the world of radeon graphics, the last version is obsolete. Even the latest version is obsolete! :-)).
A big problem is this: libdrm did not build the radeon lib before version 2.4.18 except you configured with --build-nutty-experimental-apis or the like in configure, which you guys didn't. So then you have to go round the houses, and update everything before rebuilding Mesa. The list there is missing.

5a. glproto-1.4.11 to help mesa compile.

Curiously, the other place you get libdrm_radeon.so is in the kernel headers, but you need at least 2.6.33 for a usable libdrm_radeon.so from there. So it seems you have to go around the houses and recompile anything remotely to do with video to get radeon "acceleration" which actually puts a brake on! Mind you google earth works - it doesn't throw a single error message. It will start firefox automagically (which promply crashes) and it pretends not to notice. It is bizzarre in appearance, however: I get these lines radiating into the centrepoint of the image. When I zoom, it's fine up to a point, and I'm looking at a building. I zoom more, and I get the top 25% or the bottom 75% as a reduced size photo thrown on a black background. If I have the bottom, and gradually move up, I end up with close to a horizontal line at one point out of which the top or the bottom picture will fold, depending on how I move :-/.

business_kid 05-18-2010 06:39 AM

Quote:

I have your xorg-server-1.7.7 pkg
Let me unsay that. I had dropped back to xorg-server-1.6.3, which is definitely not enough. I also have xf86-video-ati-6.9.0 and intend to go to that. I get a dead box from Xorg-server-1.7.7. But when I trap output, it says

X.Org X Server 1.7.7
Release Date: 2010-05-04
X Protocol Version 11, Revision 0
Build Operating System: Slackware 13.1 Slackware Linux Project
Current Operating System: Linux harriet 2.6.33.2-slack13 #9 SMP Thu Apr 15 18:09:39 IST 2010 x86_64
Kernel command line: root=/dev/sda8 ro resume=/dev/sda9
Build Date: 05 May 2010 01:59:51AM

Current version of pixman: 0.16.6
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Tue May 18 11:05:41 2010
(==) Using config file: "/etc/X11/xorg.conf"
/usr/bin/X: symbol lookup error: /usr/bin/X: undefined symbol: pci_device_is_boot_vga
giving up.
xinit: Connection refused (errno 111): unable to connect to X server
xinit: No such process (errno 3): Server error.


Unfortunately this is beginning to look like LFS Linux From Slackware, due to the number of compiled sources I'm using:-((. I feel a rebuild of mesa coming on. . .

business_kid 05-18-2010 12:19 PM

Update:
By taking virtually the entire X system up to slackware64-current, I started getting somewhere. Spent a day compiling stuff, and what follows is exceptions to the above (source installs)

I meant to put in glew-1.5.4 before compiling mesa last time. glproto has to be 1.4.11 for something.
xf86-video-ati-6.9.0. This is the one to go for, or later. It's actually a hell of a lot more difficult to get compiled than 6.8.0, because it links against a lot of weirdo headers which I never found, but copied from an older system in hope.
I have mesa-7.9 development branch. If I --enable-glx-tls(which everything seems to use) my system barfs on the compile. Mesa also needs the 32 bit libs built because 32 bit programs like to use them.7.8 just _may_ be ok.
I now have 375FPS, X runs, video is A1 and firefox still crashes reliably on gmail. The curse of the seven snotty orphans on it - I'll try opera!

business_kid 05-19-2010 04:49 AM

The end of this turned out to be

removepkg firefox (a plague on all their houses, patches, etc.)
inftallpkg qt3(thanks to an obliging 12.2 disk here)
install opera

On the video stuff, it is clear to me that I will have to compile everything into mesa and _then_ rebuild the radeon driver. I don't have enough libs updated yet to run the --enable-glx-tls mesa code I have just compiled, so when I install it I had better not have X running!

business_kid 05-21-2010 10:21 AM

One last Epilogue:
I put the video away, and it hasn't been recompiled in a while. I tried xorg-server-1.8.1b but got a continual AllowEmptyInput disabling kbd & mouse :-/. Apparently you have to finish the ati update this way

3rd last - compile xorg-server
2nd last - compile ati video driver in 32 & 64 bit
last of all - compile mesa

so after I quit compiling, I lashed back in firefox for the laugh, and it works flawlessly. And just when I was wondering why, good old slamd64 came up with a 'quote of the day' that answered my questions, which I append for your amusement but do not take responsibility for.
Quote:

X windows:
Accept any substitute.
If it's broke, don't fix it.
If it ain't broke, fix it.
Form follows malfunction.
The Cutting Edge of Obsolescence.
The trailing edge of software technology.
Armageddon never looked so good.
Japan's secret weapon.
You'll envy the dead.
Making the world safe for competing window systems.
Let it get in YOUR way.
The problem for your problem.
If it starts working, we'll fix it. Pronto.
It could be worse, but it'll take time.
Simplicity made complex.
The greatest productivity aid since typhoid.
Flakey and built to stay that way.

One thousand monkeys. One thousand MicroVAXes. One thousand years.
X windows.


All times are GMT -5. The time now is 02:15 AM.