Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 200435 - x11-drivers/ati-drivers-8.42.3 OpenGL program exit tiggers double free or corruption error
Summary: x11-drivers/ati-drivers-8.42.3 OpenGL program exit tiggers double free or cor...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-26 20:29 UTC by Viktor Griph
Modified: 2007-11-29 07:17 UTC (History)
0 users

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 Viktor Griph 2007-11-26 20:29:44 UTC
When a program that has been using dri exits it triggers a glibc double free or corruption detection, which results in a SIGABORT

Reproducible: Always

Steps to Reproduce:
1.glxinfo

Actual Results:  
The program outputs display information and follows with
*** glibc detected *** glxinfo: double free or corruption (!prev): 0x080624d0 ***
======= Backtrace: =========
/lib/libc.so.6[0xb7d04a00]
/lib/libc.so.6(cfree+0x89)[0xb7d066f9]
/usr/lib/dri/fglrx_dri.so[0xb76fcc92]
/usr/lib/libGL.so.1[0xb7e24c61]
/usr/lib/libX11.so.6(_XFreeExtData+0x2c)[0xb7ba66d4]
/usr/lib/libX11.so.6(_XFreeDisplayStructure+0x398)[0xb7bb7dc1]
/usr/lib/libX11.so.6(XCloseDisplay+0x135)[0xb7b9d709]
glxinfo[0x804aae9]
/lib/libc.so.6(__libc_start_main+0xdc)[0xb7cb4fdc]
glxinfo[0x8048cd1]
======= Memory map: ========
08048000-0804d000 r-xp 00000000 fe:01 177265     /usr/bin/glxinfo
0804d000-0804e000 rw-p 00004000 fe:01 177265     /usr/bin/glxinfo
0804e000-088f3000 rw-p 0804e000 00:00 0          [heap]
a5c54000-a5c56000 rw-s 002fb000 00:0c 14023      /dev/dri/card0
a5c56000-adc56000 rw-s 00003000 00:0c 14023      /dev/dri/card0
adc56000-ae306000 rw-p adc56000 00:00 0 
ae306000-aea06000 rw-s 00005000 00:0c 14023      /dev/dri/card0
b6900000-b6921000 rw-p b6900000 00:00 0 
b6921000-b6a00000 ---p b6921000 00:00 0 
b6a06000-b6a0d000 r-xp 00000000 08:03 42702      /lib/librt-2.6.1.so
b6a0d000-b6a0e000 r--p 00006000 08:03 42702      /lib/librt-2.6.1.so
b6a0e000-b6a0f000 rw-p 00007000 08:03 42702      /lib/librt-2.6.1.so
b6a1f000-b6a2b000 rwxp b6a1f000 00:00 0 
b6a2b000-b77e4000 r-xp 00000000 fe:01 102464     /usr/lib/dri/fglrx_dri.so
b77e4000-b7869000 rw-p 00db9000 fe:01 102464     /usr/lib/dri/fglrx_dri.so
b7869000-b79c3000 rw-p b7869000 00:00 0 
b79c3000-b7a1b000 r-xp 00000000 fe:01 81021      /usr/lib/libXt.so.6.0.0
b7a1b000-b7a1f000 rw-p 00057000 fe:01 81021      /usr/lib/libXt.so.6.0.0
b7a1f000-b7a20000 rw-p b7a1f000 00:00 0 
b7a20000-b7a22000 r-xp 00000000 08:03 42710      /lib/libdl-2.6.1.so
b7a22000-b7a23000 r--p 00001000 08:03 42710      /lib/libdl-2.6.1.so
b7a23000-b7a24000 rw-p 00002000 08:03 42710      /lib/libdl-2.6.1.so
b7a24000-b7a29000 r-xp 00000000 fe:01 66363      /usr/lib/libXdmcp.so.6.0.0
b7a29000-b7a2a000 rw-p 00004000 fe:01 66363      /usr/lib/libXdmcp.so.6.0.0
b7a2a000-b7a2c000 r-xp 00000000 fe:01 55609      /usr/lib/libXau.so.6.0.0
b7a2c000-b7a2d000 rw-p 00001000 fe:01 55609      /usr/lib/libXau.so.6.0.0
b7a2d000-b7a40000 r-xp 00000000 08:03 42701      /lib/libpthread-2.6.1.so
b7a40000-b7a41000 r--p 00013000 08:03 42701      /lib/libpthread-2.6.1.so
b7a41000-b7a42000 rw-p 00014000 08:03 42701      /lib/libpthread-2.6.1.so
b7a42000-b7a44000 rw-p b7a42000 00:00 0 
b7a44000-b7a4e000 r-xp 00000000 fe:01 247122     /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libgcc_s.so.1
b7a4e000-b7a4f000 rw-p 00009000 fe:01 247122     /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libgcc_s.so.1
b7a4f000-b7b21000 r-xp 00000000 fe:01 248712     /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libstdc++.so.6.0.8
b7b21000-b7b24000 r--p 000d1000 fe:01 248712     /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libstdc++.so.6.0.8
b7b24000-b7b26000 rw-p 000d4000 fe:01 248712     /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libstdc++.so.6.0.8
b7b26000-b7b2d000 rw-p b7b26000 00:00 0 
b7b2d000-b7b34000 r-xp 00000000 fe:01 69058      /usr/lib/libXi.so.6.0.0
b7b34000-b7b35000 rw-p 00006000 fe:01 69058      /usr/lib/libXi.so.6.0.0
b7b35000-b7b45000 r-xp 00000000 fe:01 64672      /usr/lib/libXext.so.6.4.0
b7b45000-b7b46000 rw-p 00010000 fe:01 64672      /usr/lib/libXext.so.6.4.0
b7b46000-b7b5e000 r-xp 00000000 fe:01 213337     /usr/lib/libXmu.so.6.2.0
b7b5e000-b7b5f000 rw-p 00018000 fe:01 213337     /usr/lib/libXmu.so.6.2.0
b7b5f000-b7b78000 r-xp 00000000 fe:01 71200      /usr/lib/libICE.so.6.3.0
b7b78000-b7b79000 rw-p 00018000 fe:01 71200      /usr/lib/libICE.so.6.3.0
b7b79000-b7b7b000 rw-p b7b79000 00:00 0 
b7b7b000-b7b85000 r-xp 00000000 fe:01 62328      /usr/lib/libSM.so.6.0.0
b7b85000-b7b86000 rw-p 00009000 fe:01 62328      /usr/lib/libSM.so.6.0.0
b7b86000-b7b87000 rw-p b7b86000 00:00 0 
b7b87000-b7c9b000 r-xp 00000000 fe:01 2035       /usr/lib/libX11.so.6.2.0
b7c9b000-b7c9f000 rw-p 00114000 fe:01 2035       /usr/lib/libX11.so.6.2.0
b7c9f000-b7dc9000 r-xp 00000000 08:03 42708      /lib/libc-2.6.1.so
b7dc9000-b7dcb000 r--p 0012a000 08:03 42708      /lib/libc-2.6.1.so
b7dcb000-b7dcc000 rAvbruten (SIGABRT) (core dumped)


Expected Results:  
There should be no SIGABORT.

# emerge --info
Portage 2.1.3.19 (default-linux/x86/2006.1/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.20.7 i686)
=================================================================
System uname: 2.6.20.7 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Timestamp of tree: Sun, 25 Nov 2007 14:30:03 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17
dev-java/java-config: 1.3.7, 2.1.2-r1
dev-lang/python:     2.3.5-r3, 2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS=" -g -g"
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"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=pentium4 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.gentoo.no/ http://ds.thn.htu.se/linux/gentoo "
LANG="sv_SE"
LC_ALL="en_US"
LINGUAS="sv_SE sv en_GB en_US us en"
MAKEOPTS="-j3"
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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acpi alsa apache2 bash/completion bitmap-fonts bzip2 cairo cdr cli cracklib crypt dbus divx4linux dri dvb dvd dvdr dvdread eds emacs encode esd fam firefox fortran gdbm gif gpm gtk hal iconv imagemagick isdnlog ithreads java javascript jpeg lcms mad midi mmx mng mp3 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp pam pcre perl php plotutils png ppds pppd python qt3 qt4 quicktime readline reflection sdl session sockets socks5 spell spl sse sse2 ssl svg tcpd tetex theora tiff truetype truetype-fonts type1-fonts unicode usb userlocales v4l v4l2 vcd videos vorbis win32codecs wmf x86 xface xine xml xml2 xorg xosd xsl xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="sv_SE sv en_GB en_US us en" USERLAND="GNU" VIDEO_CARDS="fglrx radeon vga vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


(gdb) bt
Core was generated by `glxinfo'.
Program terminated with signal 6, Aborted.
#0  0xb7f56410 in __kernel_vsyscall ()
#0  0xb7f56410 in __kernel_vsyscall ()
#1  0xb7cc8101 in raise () from /lib/libc.so.6
#2  0xb7cc98e8 in abort () from /lib/libc.so.6
#3  0xb7cfecbb in ?? () from /lib/libc.so.6
#4  0x00000003 in ?? ()
#5  0xbfbcf7d0 in ?? ()
#6  0x00000400 in ?? ()
#7  0x00000000 in ?? ()
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-11-26 21:14:16 UTC
We can't fix binary-only drivers, sorry.
Comment 2 Jory A. Pratt gentoo-dev 2007-11-29 03:14:09 UTC
Please provide driver version and video card please. This is only way I can take this to upstream for any chance of resolution.
Comment 3 Viktor Griph 2007-11-29 07:17:58 UTC
(In reply to comment #2)
> Please provide driver version and video card please. This is only way I can
> take this to upstream for any chance of resolution.
> 

The driver version is 8.42.3 (as specified in the summary), my video card is Radeon 9500 Pro.

$ X -version

X Window System Version 1.3.0
Release Date: 19 April 2007
X Protocol Version 11, Revision 0, Release 1.3
Build Operating System: UNKNOWN 
Current Operating System: Linux gramphos 2.6.20.7 #1 SMP PREEMPT Wed May 30 17:42:22 CEST 2007 i686
Build Date: 20 November 2007
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Module Loader present