Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 243172 - x11-drivers/ati-drivers-8.542 segfault using opengl. Maybe missing dependency to libstdc++.so.5?
Summary: x11-drivers/ati-drivers-8.542 segfault using opengl. Maybe missing dependency...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: AMD64 Linux
: High critical (vote)
Assignee: Luca Barbato
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-22 06:05 UTC by Till Korten
Modified: 2009-08-21 06:46 UTC (History)
10 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Till Korten 2008-10-22 06:05:47 UTC
just upgraded to ati-drivers 8.542 on an amd64 system. trying to start an opengl application causes a segfault:



the last working versio is ati-drivers-8.522.

I noticed that revdep-rebuild complains about a missing library and wants to rebuild ati-drivers over and over again:

revdep rebuild
--snip--
 * Checking dynamic linking consistency
[ 59% ]  *   broken /usr/lib64/libAMDXvBA.so.1.0 (requires libstdc++.so.5)
--snip--
emerge --oneshot  x11-drivers/ati-drivers:0



Reproducible: Always

Steps to Reproduce:
1.emerge =ati-drivers-8.542
2.start any opengl application
3.fgl_glxgears 
Using GLX_SGIX_pbuffer
Segmentation fault

Actual Results:  
segmentation fauls

Expected Results:  
application runs normally

my system:
 uname -a
Linux bugsbunny 2.6.23-gentoo-r9 #1 SMP PREEMPT Mon Jul 28 17:16:29 CEST 2008 x86_64 AMD Athlon(tm) X2 Dual Core Processor BE-2350 AuthenticAMD GNU/Linux

emerge --info
Portage 2.1.4.5 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r9 x86_64)
=================================================================
System uname: 2.6.23-gentoo-r9 x86_64 AMD Athlon(tm) X2 Dual Core Processor BE-2350
Timestamp of tree: Wed, 22 Oct 2008 04:45:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r7
dev-util/cmake:      2.4.6-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe -msse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=k8 -O2 -pipe -msse3"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS=""
FEATURES="ccache distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LINGUAS="de en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --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="3dnow 3dnowext 7zip X a52 aac acl acpi alsa amd64 amrnb audiofile avahi berkdb bidi branding cairo ccache cddb cdr clamav cli cpudetection cracklib crypt css cups daap dbus dga divx dri dts dvb dvd dvdnav dvdr dvdread eds emboss enca encode esd evo fam fame ffmpeg firefox flac fortran fping gdbm gdm gif glitz gmedia gnome gnome-keyring gpm gstreamer gtk gtkhtml hal iconv ipod isdnlog java jpeg kerberos ladspa ldap libnotify live lzo mad mdnsresponder-compat midi mikmod mjpeg mmx mng mozdevelop mp2 mp3 mpeg mplayer mudflap musicbrainz ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl png postproc ppds pppd python qt3support quicktime readline realmedia reflection samba scanner sdl session slp smp sndfile spell spl srt sse sse2 ssl subtitles subversion svg tcpd teletext theora threads thunderbird tiff truetype unicode vcd vorbis vram wma wmf wmp x264 xanim xine xml xorg xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" USERLAND="GNU" VIDEO_CARDS="radeon fglrx vesa fbdev"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Mike Auty (RETIRED) gentoo-dev 2008-10-22 09:57:46 UTC
Hiya Till, could you please also provide the output after running "eselect opengl"?  Thanks...  5:)
Comment 2 Till Korten 2008-10-22 16:06:48 UTC
it is quite normal:
 eselect opengl set ati
Switching to ati OpenGL interface... done
Comment 3 jghobrial 2008-10-22 20:18:58 UTC
(In reply to comment #2)
> it is quite normal:
>  eselect opengl set ati
> Switching to ati OpenGL interface... done
> 

I had a similar problem. My symlink in /usr/src pointed to the wrong linux kernel (not the one I was running). It may be the problem for you as well. Check the symlink and remerge if it needed to be changed.
Comment 4 Till Korten 2008-10-23 06:37:33 UTC
no, the symlink in /usr/src/ is o.k.
also, the driver version 8.522 works fine.
Comment 5 Jeffrey Gardner (RETIRED) gentoo-dev 2008-11-06 23:21:26 UTC
as noted by reporter, fixed in latest version.
Comment 6 Jeffrey Gardner (RETIRED) gentoo-dev 2008-11-06 23:29:00 UTC
Reopened... smoking crack at work again :)

I don't have this problem... what kind of card have you got?

Comment 7 Till Korten 2008-11-07 10:48:55 UTC
It's an onboard card on a motherboard with a amd690g chipset (I think the chip is a ati x1250).
Would you like me to test some patch? If yes, pls tell me where I can get it, or email it to me.
Comment 8 zkeey 2008-11-13 15:49:03 UTC
Same problem.
And my board chipset is also amd 690G with an integrated video chipset ati radeon x1250.
Hope this bug can be fixed quickly,or somebody tell me howto.
Here is my emerge --info output
Portage 2.1.4.5 (default/linux/amd64/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.25-gentoo-r7 x86_64)
=================================================================
System uname: 2.6.25-gentoo-r7 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3600+
Timestamp of tree: Wed, 12 Nov 2008 17:16:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-lang/python:     2.5.2-r7
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache collision-protect distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="C"
LC_ALL=""
LDFLAGS="-Wl,-O1"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/gentoo-china /usr/local/portage/layman/desktop-effects"
SYNC="rsync://rsync.asia.gentoo.org/gentoo-portage"
USE="X acl alsa amd64 bzip2 cdr cli cracklib crypt dbus dri dvd dvdr fortran gdbm gnome gpm graphviz gtk hal hardened iconv ipv6 isdnlog jpeg jpeg2k midi mmx mp3 mudflap multilib nautilus ncurses nls nptl nptlonly opengl openmp pam pcre perl pppd python readline reflection session spl sse sse2 ssl sysfs tcpd unicode vim-syntax xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fglrx radeon"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 9 Till Korten 2008-11-13 16:09:48 UTC
the Drivers version 8.522 are more stable. On my system opengl works fine with that version (except for some scrambled graphics when switching between fullscreen and windowed mode in mplayer)
to revert to that version until a new version is out, do the following:

echo ">x11-drivers/ati-drivers-8.522" >> /etc/portage/package.mask
emerge -av ati-drivers

now portage should try to emerge ati-drivers version 8.522
Hope that helps...
Comment 10 zkeey 2008-11-15 15:43:03 UTC
(In reply to comment #9)
> the Drivers version 8.522 are more stable. On my system opengl works fine with
> that version (except for some scrambled graphics when switching between
> fullscreen and windowed mode in mplayer)
> to revert to that version until a new version is out, do the following:
> 
> echo ">x11-drivers/ati-drivers-8.522" >> /etc/portage/package.mask
> emerge -av ati-drivers
> 
> now portage should try to emerge ati-drivers version 8.522
> Hope that helps...
> 
Thanks .That works.
Comment 11 Mark Wagner 2008-11-19 00:36:59 UTC
I haven't been able to test yet but emerging sys-lib/libstdc++-v3 at least fixed the missing library problem:

ldd /usr/lib64/libAMDXvBA.so.1.0
        linux-vdso.so.1 =>  (0x00007fff261fe000)
        libstdc++.so.5 => /usr/lib64/libstdc++-v3/libstdc++.so.5 (0x00007fb41dbcf000)
        libc.so.6 => /lib/libc.so.6 (0x00007fb41d887000)
        libm.so.6 => /lib/libm.so.6 (0x00007fb41d605000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007fb41d3ef000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fb41e140000)
Comment 12 Mark Wagner 2008-11-20 00:39:32 UTC
(In reply to comment #11)
> I haven't been able to test yet but emerging sys-lib/libstdc++-v3 at least
> fixed the missing library problem.

I was able to startx and run glxgears.
Comment 13 Balazs Nemeth 2009-01-28 12:19:00 UTC
(In reply to comment #12)
> (In reply to comment #11)
> > I haven't been able to test yet but emerging sys-lib/libstdc++-v3 at least
> > fixed the missing library problem.
> 
> I was able to startx and run glxgears.
> 

I can confirm this. Emerging sys-libs/libstdc++-v3 fixed the missing library problem. 
Comment 14 Ville Aakko 2009-02-02 17:52:23 UTC
Maybe we should add this line to RDEPEND?

x86? ( =virtual/libstdc++-3.3* )

Works for me that way, emerging ati-drivers pulls in libstdc++-v3-3.3.6 

I was never hit by this problem though since I had other packages that pulled in libstdc++. One of them was realplayer, so I looked at realplayers ebuild to see how to do this. I believe libstdc++ should not be pulled in for 64-bit users, hence the "x86?"....
Comment 15 Balazs Nemeth 2009-02-02 19:19:19 UTC
(In reply to comment #14)
> Maybe we should add this line to RDEPEND?
> 
> x86? ( =virtual/libstdc++-3.3* )
> 
> Works for me that way, emerging ati-drivers pulls in libstdc++-v3-3.3.6 
> 
> I was never hit by this problem though since I had other packages that pulled
> in libstdc++. One of them was realplayer, so I looked at realplayers ebuild to
> see how to do this. I believe libstdc++ should not be pulled in for 64-bit
> users, hence the "x86?"....
> 


I'm using 64bit and I had to emerge libstdc++ to make ati-drivers happy.
Comment 16 Tomáš Chvátal (RETIRED) gentoo-dev 2009-08-21 06:46:59 UTC
This bug was fixed. The dependency was added.