Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 153780 - x11-drivers/ati-drivers-8.30.3 Segmentation fault
Summary: x11-drivers/ati-drivers-8.30.3 Segmentation fault
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: X11 External Driver Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-01 19:49 UTC by Renato Alves
Modified: 2006-11-03 06:18 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ati-drivers possible solution to seg fault (ati-drivers.diff,546 bytes, patch)
2006-11-02 05:59 UTC, Renato Alves
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Renato Alves 2006-11-01 19:49:37 UTC
Previous version did not caused any problem.
I'm reporting this bug here, but it's probably an issue with the driver itself.

Pentium M - Centrino
Hardware - ATI Radeon X700 (laptop)
X.org 7.1

Tried to reemerge the driver several times and couldn't get the driver to work.
X starts apparently with no problem and runs fine. UseFastTLS = 0 or 1 didn't solved either. 

If i use fglrxinfo or glxinfo I get Segmentation fault.

If i run glxgears it shows an window but seg faults right away.

When using other OpenGL apps the system hangs. Hard shutdown was required as system could not normally shutdown.
Comment 1 Renato Alves 2006-11-01 19:53:50 UTC
Forgot to add emerge --info

Portage 2.1.1-r1 (default-linux/x86/2006.1, gcc-3.4.6, glibc-2.4-r3, 2.6.17-gentoo-r8 i686)
=================================================================
System uname: 2.6.17-gentoo-r8 i686 Intel(R) Pentium(R) M processor 2.00GHz
Gentoo Base System version 1.12.5
Last Sync: Thu, 02 Nov 2006 00:00:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/app-defaults /usr/share/X11/xkb /usr/share/config /usr/share/fonts/misc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-march=pentium-m -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://darkstar.ist.utl.pt/gentoo/ http://cesium.di.uminho.pt/pub/gentoo/ ftp://mirrors1.netvisao.pt/gentoo/"
LANG="en_US@euro"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa crypt cups elibc_glibc gif gtk input_devices_keyboard input_devices_mouse input_devices_synaptics ipv6 jpeg kernel_linux nls nptl opengl perl png python readline sdl sse sse2 ssl tiff truetype unicode userland_GNU video_cards_fbdev video_cards_fglrx video_cards_vesa video_cards_vga zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Aleksic Predrag 2006-11-01 20:31:50 UTC
(In reply to comment #0) 
> If i use fglrxinfo or glxinfo I get Segmentation fault.
> 
> If i run glxgears it shows an window but seg faults right away.
> 
> When using other OpenGL apps the system hangs. Hard shutdown was required as
> system could not normally shutdown.
> 

Same here with glxgears and fglrxinfo. i've noticed both are looking for fglrxrc in wrong dir, after moving those files from /etc to /etc/ati/ everything is back in normal.

open("/etc/ati/fglrxprofiles.csv", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/ati/fglrxrc", O_RDONLY)      = -1 ENOENT (No such file or directory)
open("/etc/drirc", O_RDONLY)            = -1 ENOENT (No such file or directory)
open("/root/.drirc", O_RDONLY)          = -1 ENOENT (No such file or directory)
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Comment 3 Ovidiu Bivolaru 2006-11-01 21:05:23 UTC
The same segfault here for: fglrxinfo/glxinfo. 

Initial problem: /usr/lib/dri/fglrx_dri.so didn't existed. I have created the symlink to /usr/lib/xorg/modules/dri/fglrx_dri.so. Now, I get this:

drmOpenByBusid: drmGetBusid reports PCI:1:0:0
(EE) AIGLX error: dlsym for __driCreateNewScreen_20050727 failed (/usr/lib/dri/fglrx_dri.so: undefined symbol: __driCreateNewScreen_20050727)
(EE) AIGLX: reverting to software rendering
(II) Loading local sub module "GLcore"
(II) LoadModule: "GLcore"
(II) Loading /usr/lib/xorg/modules/extensions/libGLcore.so


emerge --info

Portage 2.1.1-r1 (default-linux/x86/2006.1/desktop, gcc-3.4.6, glibc-2.4-r3, 2.6.17.13 i686)
=================================================================
System uname: 2.6.17.13 i686 Intel(R) Pentium(R) M processor 1.70GHz
Gentoo Base System version 1.12.5
Last Sync: Wed, 01 Nov 2006 22:30:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [disabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/qmail/alias /var/qmail/control /var/vpopmail/domains /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=pentium-m -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.lug.ro/gentoo ftp://ftp.roedu.net/pub/mirrors/gentoo.org/ http://ftp.romnet.org/gentoo/ "
LINGUAS="en ro"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://192.168.10.100/gentoo-portage"
USE="x86 S3TC X acpi alsa apache2 arts asf audiofile avi bash-completion bcmath bcp berkdb bitmap-fonts bjam bluetooth bzip2 c++ cairo calendar cdparanoia cdr cli cpudetection cracklib crypt ctype cups curl dba dbus divx4linux dlloader dnd dri dv dvd dvdr dvdread edl elibc_glibc emboss encode esd ethereal exif expat fam fbdev ffmpeg firefox flash font-server fortran ftp fuse gaim gd gdbm gecko-sdk gencertdaily gif gimpprint gmp gnome gnutls gpm gps gstreamer gtk hal hash hdaps iconv icq idn imagemagick imap innodb input_devices_keyboard input_devices_mouse input_devices_synaptics irda isdnlog java javascript jpeg jpeg2k kde kernel_linux kqemu lcd lcms ldap lesstif libcaca libg++ linguas_en linguas_ro live lzo lzw-tiff mad maildir mailwrapper mdb mhash mikmod mmx mng mp3 mpeg mpeg4 mplayer msn mule mysql mysqli mythtv nas ncurses network nls nptl nptlonly nsplugin oav objc odbc ogg opengl oss pam pcre pdo perl php pic png pnp posix postgres ppds pppd python qt3 qt4 quicktime radeon rdesktop readline reflection rtc ruby samba sdl session simplexml slp sms snmp soap sockets spell spl sql sqlite sse sse2 ssl startup-notification subversion svg sysvipc t1lib tcltk tcpd tga theora threads tidy tiff tokenizer transcode truetype truetype-fonts type1 type1-fonts udev unicode usb userland_GNU v4l v4l2 vdesktop vhosts video_cards_fglrx vim-with-x vorbis wifi win32codecs wxwindows xanim xface xinerama xml xml2 xmlreader xmlrpc xmlwriter xorg xosd xpm xprint xscreensaver xsl xv xvid yahoo zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 Jan Mentzel 2006-11-02 00:10:55 UTC
same problem here with glxinfo, glxgears, fgl_glxgears, fglrxinfo and fireglcontrol (shows up but driver infos empty and prints "bash: line 1: 10624 Segmentation fault")

$ strace glxinfo
[...]
ioctl(4, 0x80106454, 0xbfc63c10)        = 0
open("/etc/ati/fglrxprofiles.csv", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/ati/fglrxrc", O_RDONLY)      = -1 ENOENT (No such file or directory)
open("/etc/drirc", O_RDONLY)            = -1 ENOENT (No such file or directory)
open("/home/jan/.drirc", O_RDONLY)      = -1 ENOENT (No such file or directory)
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++

after
# cd /etc/ati
# ln -s ../fglrx* ./
# ls -l
total 36
-r-xr-xr-x 1 root root  2785 Nov  1 22:50 authatieventsd.sh
lrwxrwxrwx 1 root root    20 Nov  2 08:57 fglrxprofiles.csv -> ../fglrxprofiles.csv
lrwxrwxrwx 1 root root    10 Nov  2 08:57 fglrxrc -> ../fglrxrc
-r--r--r-- 1 root root 12887 Nov  1 22:50 logo.xbm.example
-r--r--r-- 1 root root 12902 Nov  1 22:50 logo_mask.xbm.example

everything back in normal too (no X restart required).
Comment 5 Bjoern Thorwirth 2006-11-02 04:32:21 UTC
same prob here too. Centrino Laptop with X300. No 3D app works

Portage 2.1.1-r1 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r8 i686)
=================================================================
System uname: 2.6.17-gentoo-r8 i686 Intel(R) Pentium(R) M processor 2.00GHz
Gentoo Base System version 1.12.5
Last Sync: Thu, 02 Nov 2006 11:50:01 +0000
ccache version 2.3 [disabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium-m -mtune=pentium-m -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-O3 -march=pentium-m -mtune=pentium-m -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache,collision-protect distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ "
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dfx X acl acpi aiglx alsa apache2 apm arts berkdb bitmap-fonts bluetooth cdparanoia cdr cli cracklib crypt cups dlloader doc dri dvd dvdr eds elibc_glibc emacs emboss encode esd foomaticdb fortran gdbm gif glut gnome gpm gstreamer gtk gtk2 hal iconv ieee1394 imlib input_devices_keyboard input_devices_mouse ipv6 isdnlog java jikes jpeg jpeg2k kde kernel_linux libg++ libwww linguas_de mad mikmod mmx motif mozilla mp3 mpeg mysql ncurses new-login nls nptl nptlonly nsplugin ogg opengl oss pam pcmcia pcre pdf perl php png pppd python qt qt3 qt4 quicktime readline reflection ruby sdl session spell spl sse ssl tcpd tiff truetype truetype-fonts type1-fonts type1-fonts,svg udev usb userland_GNU userlocales video_cards_fbdev video_cards_fglrx video_cards_radeon video_cards_vesa vorbis xine xml xml2 xorg xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 6 Bjoern Thorwirth 2006-11-02 04:47:02 UTC
addon: now installed with ati installer, and it works just fine now.. now segmentation faults or other problems.

greez Bj
Comment 7 Bjoern Thorwirth 2006-11-02 04:47:02 UTC
addon: now installed with ati installer, and it works just fine now.. now segmentation faults or other problems.

greez Björn
Comment 8 Renato Alves 2006-11-02 05:48:45 UTC
(In reply to comment #3)
> The same segfault here for: fglrxinfo/glxinfo. 
> 
> Initial problem: /usr/lib/dri/fglrx_dri.so didn't existed. I have created the
> symlink to /usr/lib/xorg/modules/dri/fglrx_dri.so. Now, I get this:
> 
> drmOpenByBusid: drmGetBusid reports PCI:1:0:0
> (EE) AIGLX error: dlsym for __driCreateNewScreen_20050727 failed
> (/usr/lib/dri/fglrx_dri.so: undefined symbol: __driCreateNewScreen_20050727)
> (EE) AIGLX: reverting to software rendering
> (II) Loading local sub module "GLcore"
> (II) LoadModule: "GLcore"
> (II) Loading /usr/lib/xorg/modules/extensions/libGLcore.so
> 

The AIGLX part is normal. I get it myself with the previous version. It simply shows that ati-drivers still don't support AIGLX. And nobody knows when it will. 
Comment 9 Renato Alves 2006-11-02 05:59:28 UTC
Created attachment 101046 [details, diff]
ati-drivers possible solution to seg fault

Can you guys try this diff and see if it solves your driver problem?

Please delete /etc/fglrx* and /etc/ati/fglrx* befores testing the diff
Comment 10 Bjoern Thorwirth 2006-11-02 07:53:26 UTC
Have tried your Fix and it works fine now for me. But may be, that it works fine, because i've it installed the driver with the ati-installer before (worked fine, too).

greez Bj
Comment 11 Bjoern Thorwirth 2006-11-02 07:53:26 UTC
Have tried your Fix and it works fine now for me. But may be, that it works fine, because i've it installed the driver with the ati-installer before (worked fine, too).

greez Björn
Comment 12 Łukasz Mierzwa 2006-11-02 09:18:40 UTC
This fix works for me.
Comment 13 Renato Alves 2006-11-02 09:25:35 UTC
Request admin to check and test this patch.

I believe this bug is now resolved but I will leave it to the admins to close it and merge the diff with the ebuild in portage.
Comment 14 Chris Bainbridge (RETIRED) gentoo-dev 2006-11-02 10:23:26 UTC
Thanks for the fix, added to -r1.
Comment 15 Jory A. Pratt 2006-11-02 16:52:03 UTC
This should have never happened. Seems lu_zero overlooked part of the diff I gave him before he commited 8.30.3 :(
Comment 16 Renato Alves 2006-11-03 06:18:49 UTC
(In reply to comment #13)
> This should have never happened. Seems lu_zero overlooked part of the diff I
> gave him before he commited 8.30.3 :(
> 

No problem ;) it's solved now :D