You are not logged in.

#1 2008-07-27 10:33:53

deavik
Member
Registered: 2007-11-04
Posts: 8

[SOLVED] Segmentation fault after execution of GL apps (fglrxinfo)

Hi there, smile

I've been using Arch off and on recently... I updated today to the latest catalyst and I get this issue. When I run fglrxinfo, glxinfo I get a segfault after it finishes running. Example:

$ fglrxinfo
display: :0.0  screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: ATI Radeon Xpress Series
OpenGL version string: 2.1.7659 Release

Segmentation fault

Also it plays UT2004 fine, but after quitting I get (what I think is a) crashed video driver because the screen does not update and i see garbage. I can do ctrl-alt-f1 and go to a terminal though.

Any Ideas? Thanks!

Last edited by deavik (2008-08-03 17:00:20)

Offline

#2 2008-07-27 23:43:42

kdrumm
Member
From: Upstate, S.C.
Registered: 2008-07-22
Posts: 14

Re: [SOLVED] Segmentation fault after execution of GL apps (fglrxinfo)

I don't have answer, but do have simular problem

$ dmesg |grep fglrx
[fglrx]   vendor: 1002 device: 5a42 count: 1
[fglrx] Maximum main memory to use for locked dma buffers: 371 MBytes.
[fglrx] PAT is enabled successfully!
[fglrx] module loaded - fglrx 8.50.3 [Jun  2 2008] with 1 minors
[fglrx] GART Table is not in FRAME_BUFFER range 
[fglrx] Reserved FB block: Shared offset:0, size:40000 
[fglrx] Reserved FB block: Unshared offset:3ff5000, size:b000 
fglrxinfo[12373]: segfault at b7f87000 ip b7997e28 sp bfaa6900 error 6 in fglrx_dri.so[b6b8f000+f30000]

$ fglrxinfo
Segmentation fault

I also have ati express 200m
any ideas on where to look would be helpfull


What's the point of wearing your favorite rocketship underpants if nobody
ever asks to see 'em?  -- Calvin

Offline

#3 2008-07-27 23:48:21

esters
Member
Registered: 2006-11-04
Posts: 173

Re: [SOLVED] Segmentation fault after execution of GL apps (fglrxinfo)

Same here

Samsung R20+ / X1250 Mobility

dmesg | grep fglrx
[fglrx]   vendor: 1002 device: 7942 count: 1
[fglrx] Maximum main memory to use for locked dma buffers: 1776 MBytes.
[fglrx] PAT is enabled successfully!
[fglrx] module loaded - fglrx 8.50.3 [Jun  2 2008] with 1 minors
[fglrx] Reserved FB block: Shared offset:0, size:1000000
[fglrx] Reserved FB block: Unshared offset:7f7b000, size:80000
[fglrx] Reserved FB block: Unshared offset:7ffb000, size:5000
[fglrx:firegl_lock] *ERROR* Process 4462 is using illegal context 0x00000005
fglrxinfo[4464]: segfault at b8090000 ip b7aa7e28 sp bfcaf5b0 error 6 in fglrx_dri.so[b6c9f000+f30000]

Offline

#4 2008-07-28 00:18:02

kclive18
Member
From: Columbus, Ohio, USA
Registered: 2008-05-08
Posts: 219

Re: [SOLVED] Segmentation fault after execution of GL apps (fglrxinfo)

http://bugs.archlinux.org/task/8578

I found that in Arch's bugs site.  It may be an internal problem with the drivers that AMD/ATI needs to address.


My Rigs:
- Mid-2007 iMac 20", Intel 2GHz Core 2 Duo, 2x1GB DDR2-800, 250GB SATA HDD, and...MIGHTY MOUSE!!! tongue, OSX 10.5 Leopard, ATI Radeon 2400XT 128MB
- HP zv6203cl, AMD Athlon 64 3200 S939, 2x512MB DDR400, 80GB 4200rpm HDD, ATI Radeon Xpress 200M 128MB, Arch i686 cool
- 1986 Gibson SG Junior Cherry Red, Ibanez 15W amp, DigiTech RP250 modeling processor

Offline

#5 2008-07-28 00:32:50

matryc
Member
From: krakow.pl
Registered: 2008-06-26
Posts: 8

Re: [SOLVED] Segmentation fault after execution of GL apps (fglrxinfo)

I get Segmentation Fault in every version of Catalyst since 8.5, so something was screwed up...
Last working Catalyst was 8.4 for my ATI Firegl...
And I get it in almost everything: fglrxinfo, openoffice etc.

Offline

#6 2008-08-03 08:27:14

deavik
Member
Registered: 2007-11-04
Posts: 8

Re: [SOLVED] Segmentation fault after execution of GL apps (fglrxinfo)

I actually have been worrying about this more recently because I am starting to learn java and opengl with JOGL and I get segfaults if I run as user (app does not start), OK if I run as root (?) but segfault on exit. (both indicating libc.so or fglrx_dri.so).

I got strace and dumped to file, but I can't find anything illuminating in this dump: http://pastebin.ca/1091620

I have a similar perplexing dump from my JOGL program, but I want to see if fixing this fixes the other problem (I think they're related).

Does anyone have ideas? Thanks!

PS. Some people seem to suggest using catalyst 8.4. Is there a clean way to use the older version on arch x86_64 without breaking xfce compositing etc...? Thanks!

Last edited by deavik (2008-08-03 08:30:17)

Offline

#7 2008-08-03 10:37:29

Inkaine
Member
From: Germany
Registered: 2008-07-14
Posts: 88

Re: [SOLVED] Segmentation fault after execution of GL apps (fglrxinfo)

I was having the same problem with 8.6 and reverted back to 8.5 on my Radeon 3200 (780G chipset). With now 8.7 it seems to be fixed again. @deavik, I remember how afraid I was getting the old drivers running. And now I'm back- and forth-porting all the time. big_smile Using abs and PKGBUILD is fairly easy. And once you have done it, you'll do it all the time. From my experience nothing is broken, I'm running Arch64 as well.

Simplest way of course is to check if the old packages still exist in your cache. Then you could just do

pacman -U /var/cache/pacman/pkg/catalyst-utils-8.5-1-x86_64.pkg.tar.gz

and then the same again for the catalyst package itself.

If they don't exist anymore type the following (all within a terminal or console):

1. sudo abs
2. cp -a /var/abs/extra/catalyst* .
3. cd catalyst-utils
4. edit file PKGBUILD with editor of your choice: change line pkgver to the version number of your choice and uncomment line md5sums(*), I also changed pkgrel to 0 (on 8.7 so it will get replaced by the package from the repository)
5. makepkg -c
6. sudo pacman -U catalyst-utils-*.tar.bz2
7. cd ../catalyst
8. repeat step 4 and 5
9. sudo pacman -U catalyst-*.tar.bz2
10. if you backported to a version earlier than 8.6 edit pacman.conf and add catalyst and catalyst-utils to IgnorePkg

(*) It would be better to replace the sum with the correct md5 of that version's catalyst binary, mine is just a quick&dirty fix.

Offline

#8 2008-08-03 14:58:50

deavik
Member
Registered: 2007-11-04
Posts: 8

Re: [SOLVED] Segmentation fault after execution of GL apps (fglrxinfo)

Hi! I'm upgrading using ABS to kernel 2.6.26 and catalyst 8.7 as suggested ^^.

In the catalyst 8.7 PKGBUILD there is a line:

source=(http://www2.ati.com/drivers/linux/ati-driver-installer-${pkgver/./-}-x86.x86_64.run
        2.6.26.patch)

just like that. Where is the file 2.6.26.patch? It didn't download it first time and errored out, and it doesn't look like the PKGBUILD is right. Any help? I already upgraded kernel26 and had to remove the old catalyst so I'll have no X if I have to reboot my laptop. Help is appreciated! smile

EDIT: Looks like PKGBUILD is right, the file should have been synced by ABS or something... (it wasn't!). I'm using the 2.6.26.patch from the AUR catalyst-ice package (which has the same name) which passed the MD5SUM.

EDIT2: GAAAAH!!! Ok I upgraded my kernel and catalyst fine, but I can't load the fglrx module!

[deavik@blackjack64 ~]$ sudo modprobe fglrx
FATAL: Error inserting fglrx (/lib/modules/2.6.26-ARCH/video/fglrx.ko): Unknown symbol in module, or unknown parameter (see dmesg)
[deavik@blackjack64 ~]$ dmesg | tail
...
fglrx: Unknown symbol flush_tlb_page

I found this thread http://bbs.archlinux.org/viewtopic.php?pid=400839 which links to a patch I opened it and it's the same as the 2.6.26.patch file I got from catalyst-ice.

Last edited by deavik (2008-08-03 15:22:39)

Offline

#9 2008-08-03 15:09:55

Inkaine
Member
From: Germany
Registered: 2008-07-14
Posts: 88

Re: [SOLVED] Segmentation fault after execution of GL apps (fglrxinfo)

http://repos.archlinux.org/viewvc.cgi/c … ision=6592

As somebody wrote on a different thread, actually you're not encouraged to ASK for help regarding the testing repo, but to be able to GIVE help on it. Testing is for what the name says, "testing" and providing feedback if it works.

Offline

#10 2008-08-03 15:26:44

deavik
Member
Registered: 2007-11-04
Posts: 8

Re: [SOLVED] Segmentation fault after execution of GL apps (fglrxinfo)

Sorry about that then. I'll muck around a little bit more and if not I'll go back to whatever I had before. Thanks for your help anyways Inkaine! smile

Offline

#11 2008-08-03 16:59:29

deavik
Member
Registered: 2007-11-04
Posts: 8

Re: [SOLVED] Segmentation fault after execution of GL apps (fglrxinfo)

Ok everyone GOOD NEWS! The segfault issue is solved with catalyst 8.7 (in testing right now). In case you can't wait (like me) here's what I did:

1. Enable ABS and testing repository (enabled by default).
2. Build kernel26 from testing. Use the kernel patch suggested by kazou in http://bbs.archlinux.org/viewtopic.php?pid=400839
before compiling!
3. Build catalyst-utils from testing.
4. Build catalyst from testing. It may be missing the 2.6.26.patch file which can be found in the link provided by Inkaine above.
5. Reboot and run fglrxinfo. No crash!

Thanks for all the help everyone!

Last edited by deavik (2008-08-03 16:59:58)

Offline

Board footer

Powered by FluxBB