ATI Mobility FireGL + hardy: GL Segmentation fault

Bug #224160 reported by d.p.
26
Affects Status Importance Assigned to Milestone
xserver-xorg-video-ati (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Recent upgrade form Gusty to Hardy:
sb_release -rd
Description: Ubuntu 8.04
Release: 8.04

Running any GL program results in instant Seg fault:

glxinfo
name of display: :0.0
Segmentation fault
---------------
LIBGL_DEBUG=verbose glxinfo
name of display: :0.0
libGL: XF86DRIGetClientDriverName: 8.47.3 fglrx (screen 0)
libGL: OpenDriver: trying /usr/lib/dri/fglrx_dri.so
Segmentation fault
-----------------
LIBGL_DEBUG=verbose fglrxinfo
libGL: XF86DRIGetClientDriverName: 8.47.3 fglrx (screen 0)
libGL: OpenDriver: trying /usr/lib/dri/fglrx_dri.so
Segmentation fault
----------------
LIBGL_DEBUG=verbose glxgears
libGL: XF86DRIGetClientDriverName: 8.47.3 fglrx (screen 0)
libGL: OpenDriver: trying /usr/lib/dri/fglrx_dri.so
Segmentation fault
-----------------------
lsmod | grep fglrx
fglrx 1555468 22
agpgart 34760 2 fglrx,intel_agp
-----------------------
timothy@lispc28:~/Desktop$ cat /var/log/Xorg.0.log | grep EE
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(II) Loading extension MIT-SCREEN-SAVER
timothy@lispc28:~/Desktop$
-------------------------

Xorg.conf:
.....
.....
Section "Screen"
 Identifier "aticonfig-Screen[0]"
 Device "aticonfig-Device[0]"
 Monitor "aticonfig-Monitor[0]"
 SubSection "Display"
  Viewport 0 0
  Depth 24
 EndSubSection
 Defaultdepth 24
EndSection

Section "Device"
 Identifier "aticonfig-Device[0]"
 Driver "fglrx"
 Option "VideoOverlay" "on"
 Option "OpenGLOverlay" "off"
EndSection
......
......
Section "Module"
 #Load "i2c"
 #Load "bitmap"
 #Load "ddc"
 #Load "extmod"
 #Load "freetype"
 #Load "int10"
 #Load "type1"
 #Load "vbe"
 Load "glx"
 Load "dbe"
 Load "dri"
 #Load "v4l"
EndSection

Section "Monitor"
 Identifier "aticonfig-Monitor[0]"
 Option "VendorName" "ATI Proprietary Driver"
 Option "ModelName" "Generic Autodetecting Monitor"
 Option "DPMS" "true"
EndSection

Section "DRI"
 Mode 0666
EndSection

Section "Extensions"
 # Option "RENDER" "1"
 Option "Composite" "Disable"
EndSection

......

Tried every online guide with manual and automatic installs, different driver versions including 7.12. Tried using EnvNG and also earlier kernel versions.
Laptop is an IBM/Lenevo Thinkpad T60p With FireGL V5200 Mobility graphics card.

Revision history for this message
dan_g (dan-bin) wrote :

I have the same problem. With the ATI proprietary drivers installed on my HP nc6000 laptop and Hardy upgrade, I get segfaults when running any OpenGL program (glxinfo, etc...). My video card is RV350 [Mobility Radeon 9600 M10]. I have upgraded both the "Ubuntu way" and the "manual way" by downloading the drivers making the deb packages. Same result.

I did not have this problem in previous releases.

Revision history for this message
Mircea Deaconu (mirceade) wrote :

Same problems on an ATI 9550 desktop system with Hardy from a dist-upgrade. Not even Envy doesn't do the trick. No previous segfault problems in Feisty.

Revision history for this message
Mircea Deaconu (mirceade) wrote :

Just noticed: With the drivers downloaded from ATI's official site things seem to work ok again.

Revision history for this message
d.p. (timothy-stirling) wrote :

The official ATI drivers form the ATI website didn't work when I tried.

I have gone back to 7.10 Gutsy and using Envy I have hardware acceleration again. Unfortunately Latex and CUPs seems to have failed and are giving me major problems.

Other some investigation I think the FireGL Mobility cards are not supported by ATI at the moment. I don't know if this is a long term issue, permanent or will be remedied soon. I don't think the FireGL Mobility cards are EoL'd yet??

Revision history for this message
Alexey Teetove (alt) wrote :

Same segfault here. I've also noticed that GL stuff works for root user. I.e. when you do `sudo glxinfo` instead of `glxinfo` it works fine.

Revision history for this message
Zdenko Rohac (zdenko-rohac) wrote :

Thanks for hint with sudo working. I have made some hacking and found out that root was using
/usr/lib/libGL.so.1 -> /usr/lib/libGL.so.1.2 but common user used /usr/lib/fglrx/libGL.so.1 -> /usr/lib/fglrx/libGL.so.1.2 library. Problem was that library in /usr/lib/fglrx/ was old. So I moved old library and link to /tmp and suddenly fglrx started to work.
So from my point of view some cleanup is needed :-).

Revision history for this message
Alexey Teetove (alt) wrote :

Got it to work, finally. And I definitely agree about the need for cleanup. In my case, the source of problem was /etc/ati/ati-fglrx.sh, called from /etc/profile, not belonging to any of the currently installed packages, and neither to the recent version of ATI drivers (ati-driver-installer-8-5-x86.x86_64.run) I was trying to install. Google search shows this issue is nothing new, though.

Revision history for this message
Bernd Wiese (v-postmaster-wiese71-de) wrote :

Hi Zdenko! Could you please describe sharper your solution more precisely?

Revision history for this message
zasq (zasq) wrote :

Hi!
I have the same problem. I use hardy (64bit), have a ATI Radeon Xpress card, fglrx installed. Programs with GL won't run - they crash with a "segmentation fault". Same as above, only running "sudo glxinfo" gives the correct info. But as I am not very experienced with linux, I don't know how exactly to change the rights and in which directories.
Zdenko, can you explain what exactly you did? Thanks!

Revision history for this message
Zdenko Rohac (zdenko-rohac) wrote :

Hi.
This should work if you have same problem as I had: - segfault as normal user and no error as root:
Run following command in shell:

find /usr/lib -name libGL.so.1 -exec ls -al {} \;

It will show something like:
lrwxrwxrwx 1 root root 21 2008-05-23 10:10 /usr/lib/libGL.so.1 -> /usr/lib/libGL.so.1.2
lrwxrwxrwx 1 root root 27 2008-05-02 18:23 /usr/lib/xorg/libGL.so.1 -> /usr/lib/fglrx/libGL.so.1.2
which means: I have found two files with this name under /usr/lib both are "links" pointing to
some "real" file path and filename is behind -> . Now list those "real" files:

ls -al /usr/lib/libGL.so.1.2
ls -al /usr/lib/fglrx/libGL.so.1.2

It will show that modify time of file in /usr/lib/fglrx directory is much older than that of file in /usr/lib also sizes
differs so /usr/lib is newer (hopefully also better) but running program is taking this older one first. So we need
to move it out of the way (from directories where programs look for libraries. /usr/lib is one of default locations,
/usr/lib/fglrx is usually defined in environment see env | grep LD_LIBRARY_PATH ). So you need to move files
/usr/lib/xorg/libGL.so.1 and /usr/lib/fglrx/libGL.so.1.2 somewhere else f.e. /tmp/ (you can delete them but if something
will go wrong you have problem} so run:

sudo mv /usr/lib/xorg/libGL.so.1 /tmp/
sudo mv /usr/lib/fglrx/libGL.so.1.2 /tmp/

and than it should work.

Revision history for this message
Bernd Wiese (v-postmaster-wiese71-de) wrote :

I'll be damned! It works! Many many thanks to Zdenko (the real master of desaster)!!!!!!!!!!!!!!!!!!!!!!!

Revision history for this message
zasq (zasq) wrote : Re: [Bug 224160] Re: ATI Mobility FireGL + hardy: GL Segmentation fault

Hi,
thank you, Zdenko. But: I don't have the files you mention. Here is what
I get with the "find"-command (etc...):

arbeit@Quetzal:~$ find /usr/lib -name libGL.so.1 -exec ls -al {} \;
lrwxrwxrwx 1 root root 12 2008-07-05 14:34 /usr/lib/libGL.so.1 ->
libGL.so.1.2
arbeit@Quetzal:~$ ls -al /usr/lib/libGL.so.1.2
-rw-r--r-- 1 root root 572064 2008-06-27 02:28 /usr/lib/libGL.so.1.2
arbeit@Quetzal:~$ ls -al /usr/lib/fglrx/libGL.so.1.2
ls: Zugriff auf /usr/lib/fglrx/libGL.so.1.2 nicht möglich: No such file
or directory

So, the problem must be something else. I'll go on searching. Thanks anyway!

Saskia

Zdenko Rohac schrieb:
> Hi.
> This should work if you have same problem as I had: - segfault as normal user and no error as root:
> Run following command in shell:
>
> find /usr/lib -name libGL.so.1 -exec ls -al {} \;
>
> It will show something like:
> lrwxrwxrwx 1 root root 21 2008-05-23 10:10 /usr/lib/libGL.so.1 -> /usr/lib/libGL.so.1.2
> lrwxrwxrwx 1 root root 27 2008-05-02 18:23 /usr/lib/xorg/libGL.so.1 -> /usr/lib/fglrx/libGL.so.1.2
> which means: I have found two files with this name under /usr/lib both are "links" pointing to
> some "real" file path and filename is behind -> . Now list those "real" files:
>
> ls -al /usr/lib/libGL.so.1.2
> ls -al /usr/lib/fglrx/libGL.so.1.2
>
> It will show that modify time of file in /usr/lib/fglrx directory is much older than that of file in /usr/lib also sizes
> differs so /usr/lib is newer (hopefully also better) but running program is taking this older one first. So we need
> to move it out of the way (from directories where programs look for libraries. /usr/lib is one of default locations,
> /usr/lib/fglrx is usually defined in environment see env | grep LD_LIBRARY_PATH ). So you need to move files
> /usr/lib/xorg/libGL.so.1 and /usr/lib/fglrx/libGL.so.1.2 somewhere else f.e. /tmp/ (you can delete them but if something
> will go wrong you have problem} so run:
>
> sudo mv /usr/lib/xorg/libGL.so.1 /tmp/
> sudo mv /usr/lib/fglrx/libGL.so.1.2 /tmp/
>
> and than it should work.
>
>

Revision history for this message
Adam Niedling (krychek) wrote :

Any update on this bug? I have ATI Mobility FireGL as well and I don't have this issue.

Revision history for this message
d.p. (timothy-stirling) wrote :
Download full text (3.4 KiB)

I have been too scared to upgrade versions so I don't know if this bug is
fixed.

On Tue, Nov 18, 2008 at 7:34 PM, Adam Niedling <email address hidden> wrote:

> Any update on this bug? I have ATI Mobility FireGL as well and I don't
> have this issue.
>
> ** Changed in: ubuntu
> Status: New => Incomplete
>
> --
> ATI Mobility FireGL + hardy: GL Segmentation fault
> https://bugs.launchpad.net/bugs/224160
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Ubuntu: Incomplete
>
> Bug description:
> Recent upgrade form Gusty to Hardy:
> sb_release -rd
> Description: Ubuntu 8.04
> Release: 8.04
>
> Running any GL program results in instant Seg fault:
>
> glxinfo
> name of display: :0.0
> Segmentation fault
> ---------------
> LIBGL_DEBUG=verbose glxinfo
> name of display: :0.0
> libGL: XF86DRIGetClientDriverName: 8.47.3 fglrx (screen 0)
> libGL: OpenDriver: trying /usr/lib/dri/fglrx_dri.so
> Segmentation fault
> -----------------
> LIBGL_DEBUG=verbose fglrxinfo
> libGL: XF86DRIGetClientDriverName: 8.47.3 fglrx (screen 0)
> libGL: OpenDriver: trying /usr/lib/dri/fglrx_dri.so
> Segmentation fault
> ----------------
> LIBGL_DEBUG=verbose glxgears
> libGL: XF86DRIGetClientDriverName: 8.47.3 fglrx (screen 0)
> libGL: OpenDriver: trying /usr/lib/dri/fglrx_dri.so
> Segmentation fault
> -----------------------
> lsmod | grep fglrx
> fglrx 1555468 22
> agpgart 34760 2 fglrx,intel_agp
> -----------------------
> timothy@lispc28:~/Desktop$ cat /var/log/Xorg.0.log | grep EE
> (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
> (II) Loading extension MIT-SCREEN-SAVER
> timothy@lispc28:~/Desktop$
> -------------------------
>
>
> Xorg.conf:
> .....
> .....
> Section "Screen"
> Identifier "aticonfig-Screen[0]"
> Device "aticonfig-Device[0]"
> Monitor "aticonfig-Monitor[0]"
> SubSection "Display"
> Viewport 0 0
> Depth 24
> EndSubSection
> Defaultdepth 24
> EndSection
>
> Section "Device"
> Identifier "aticonfig-Device[0]"
> Driver "fglrx"
> Option "VideoOverlay" "on"
> Option "OpenGLOverlay" "off"
> EndSection
> ......
> ......
> Section "Module"
> #Load "i2c"
> #Load "bitmap"
> #Load "ddc"
> #Load "extmod"
> #Load "freetype"
> #Load "int10"
> #Load "type1"
> #Load "vbe"
> Load "glx"
> Load "dbe"
> Load "dri"
> #Load "v4l"
> EndSection
>
> Section "Monitor"
> Identifier "aticonfig-Monitor[0]"
> Option "VendorName" "ATI Proprietary Driver"
> Option "ModelName" "Generic Autodetecting Monitor"
> Option "DPMS" "true"
> EndSection
>
> Section "DRI"
> Mode 0666
> EndSection
>
> Section "Extensions"
> # Option "RENDER" "1"
> Option "Composite" "Disable"
> EndSection
...

Read more...

Revision history for this message
Victor Vargas (kamus) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to "New". Thanks again!

affects: ubuntu → xserver-xorg-video-ati (Ubuntu)
Changed in xserver-xorg-video-ati (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.