Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 329959 - Stabilize app-laptop/radeontool-1.6.3 (Was: radeontools segfaulting on libpciaccess)
Summary: Stabilize app-laptop/radeontool-1.6.3 (Was: radeontools segfaulting on libpci...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: STABLEREQ
: 423567 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-07-26 16:51 UTC by Travis Hansen
Modified: 2012-12-03 20:41 UTC (History)
1 user (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 Travis Hansen 2010-07-26 16:51:04 UTC
I'm trying to resolve the issue here...

https://bugs.freedesktop.org/show_bug.cgi?id=27314

when I run `avivotool regs all`

I get a sefault....


m6500 radeontool # avivotool regs all
mapping fb region
*** glibc detected *** avivotool: double free or corruption (fasttop): 0x000000000120b700 ***
======= Backtrace: =========
/lib/libc.so.6(+0x72966)[0x7ff12f877966]
/lib/libc.so.6(cfree+0x6c)[0x7ff12f87c71c]
/lib/libc.so.6(realloc+0x175)[0x7ff12f87d955]
/usr/lib/libpciaccess.so.0(pci_device_unmap_range+0xb0)[0x7ff12fd79740]
/usr/lib/libpciaccess.so.0(pci_device_unmap_region+0x39)[0x7ff12fd797e9]
/usr/lib/libpciaccess.so.0(pci_system_cleanup+0x67)[0x7ff12fd79017]
avivotool[0x406b32]
/lib/libc.so.6(__libc_start_main+0xfd)[0x7ff12f823bbd]
avivotool[0x400f89]
======= Memory map: ========
00400000-00415000 r-xp 00000000 08:03 2102576                            /usr/bin/avivotool
00615000-00616000 r--p 00015000 08:03 2102576                            /usr/bin/avivotool
00616000-00619000 rw-p 00016000 08:03 2102576                            /usr/bin/avivotool
00619000-00639000 rw-p 00000000 00:00 0 
01203000-01224000 rw-p 00000000 00:00 0                                  [heap]
7ff128000000-7ff128021000 rw-p 00000000 00:00 0 
7ff128021000-7ff12c000000 ---p 00000000 00:00 0 
7ff12f5ee000-7ff12f604000 r-xp 00000000 08:03 3278140                    /lib64/libgcc_s.so.1
7ff12f604000-7ff12f803000 ---p 00016000 08:03 3278140                    /lib64/libgcc_s.so.1
7ff12f803000-7ff12f804000 r--p 00015000 08:03 3278140                    /lib64/libgcc_s.so.1
7ff12f804000-7ff12f805000 rw-p 00016000 08:03 3278140                    /lib64/libgcc_s.so.1
7ff12f805000-7ff12f955000 r-xp 00000000 08:03 2150201                    /lib64/libc-2.11.2.so
7ff12f955000-7ff12fb54000 ---p 00150000 08:03 2150201                    /lib64/libc-2.11.2.so
7ff12fb54000-7ff12fb58000 r--p 0014f000 08:03 2150201                    /lib64/libc-2.11.2.so
7ff12fb58000-7ff12fb59000 rw-p 00153000 08:03 2150201                    /lib64/libc-2.11.2.so
7ff12fb59000-7ff12fb5e000 rw-p 00000000 00:00 0 
7ff12fb5e000-7ff12fb74000 r-xp 00000000 08:03 1900164                    /lib64/libz.so.1.2.5
7ff12fb74000-7ff12fd74000 ---p 00016000 08:03 1900164                    /lib64/libz.so.1.2.5
7ff12fd74000-7ff12fd75000 r--p 00016000 08:03 1900164                    /lib64/libz.so.1.2.5
7ff12fd75000-7ff12fd76000 rw-p 00017000 08:03 1900164                    /lib64/libz.so.1.2.5
7ff12fd76000-7ff12fd7e000 r-xp 00000000 08:03 2108867                    /usr/lib64/libpciaccess.so.0.10.8
7ff12fd7e000-7ff12ff7d000 ---p 00008000 08:03 2108867                    /usr/lib64/libpciaccess.so.0.10.8
7ff12ff7d000-7ff12ff7e000 r--p 00007000 08:03 2108867                    /usr/lib64/libpciaccess.so.0.10.8
7ff12ff7e000-7ff12ff7f000 rw-p 00008000 08:03 2108867                    /usr/lib64/libpciaccess.so.0.10.8
7ff12ff7f000-7ff12ff9d000 r-xp 00000000 08:03 2150167                    /lib64/ld-2.11.2.so
7ff13016d000-7ff130170000 rw-p 00000000 00:00 0 
7ff13019b000-7ff13019c000 rw-p 00000000 00:00 0 
7ff13019c000-7ff13019d000 r--p 0001d000 08:03 2150167                    /lib64/ld-2.11.2.so
7ff13019d000-7ff13019e000 rw-p 0001e000 08:03 2150167                    /lib64/ld-2.11.2.so
7ff13019e000-7ff13019f000 rw-p 00000000 00:00 0 
7fff63461000-7fff63482000 rw-p 00000000 00:00 0                          [stack]
7fff635ff000-7fff63600000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
Aborted

Reproducible: Always
Comment 1 Wormo (RETIRED) gentoo-dev 2010-07-26 17:11:47 UTC
Please post your 'emerge --info radeontool' output 
Comment 2 Travis Hansen 2010-07-26 17:23:19 UTC
m6500 radeontool # emerge --info radeontool
Portage 2.2_rc67 (default/linux/amd64/10.0, gcc-4.4.4, glibc-2.11.2-r0, 2.6.34-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.34-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_Q_820_@_1.73GHz-with-gentoo-2.0.1
Timestamp of tree: Tue, 20 Jul 2010 19:00:21 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.4_p6-r1, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
virtual/os-headers:  2.6.34
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA Q3AEULA AdobeFlash-10 AdobeFlash-10.1"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -msse4 -mcx16 -msahf -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-march=core2 -msse4 -mcx16 -msahf -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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/overlays/sunrise /usr/local/overlays/chaos /usr/local/overlays/crappy"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac aalib acpi alsa amd64 amr apache2 applet archive asf avahi avi banshee bash-completion berkdb bluetooth bonjour bonobo bzip2 cairo caps cdb cdda cddb cdparanoia cdr cli composite consolekit coverage cracklib crypt cups curl cxx daap dbus device-mapper directfb djvu dlloader dlna dmi dri dv dvd dvdr eds empathy encode epiphany evo exif expat faac faad fam fastcgi fbcon fbcondecor ffmpeg firefox flac font-server fontconfig foomaticdb fortran freetype ftp fuse gaim galago gcj gd gdbm gdu gif glade glib glitz gmp gnome gnome-keyring gnome-print gphoto2 gpm graphviz gsf gstreamer gtk gtk2 gtkhtml guile hal howl iconv id3tag idn ieee1394 imagemagick imap imlib inotify ipod ipv6 jack java java6 jbig jingle jpeg jpeg2k kdrive ladspa lame laptop lcd lcms ldap libcaca libgda libnl libnotify libsamplerate libsexy libwww lua lzma lzo mad midi mmap mmx mng modules mono moonlight mp3 mp4 mpeg msn mtp mudflap multilib musicbrainz mysql mysqli mythtv nautilus ncurses network networkmanager nfs nls nptl nptlonly nsplugin odbc ogg oggvorbis openexr opengl openmp pam pango pcmcia pcre pdf perl php phyp png pnp policykit ppds pppd pulseaudio python quicktime raw readline reflection resolvconf samba sasl sdl session slp smp sndfile sound soup speex spell spl sqlite sqlite3 sse sse2 ssl startup-notification svg sysfs taglib tcl tcltk tcpd telepathy theora threads tiff timidity tk transcode truetype trusted udev unicode upnp usb utf8 v4l v4l2 vaapi vala vorbis vpx wavpack webkit widescreen wifi wikipedia win64codecs wmf x264 xattr xcb xcomposite xforms xine xinerama xml xml2 xorg xrandr xslt xulrunner xv xvid xvidinfo xvmc yahoo youtube zeroconf zlib" ALSA_CARDS="hda-intel usb-audio" 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="cgi cgid actions alias auth_basic auth_digest authn_anon authn_alias authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="prefork" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="i810 intel vesa fbdev v4l vmware svga radeon ati" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

app-laptop/radeontool-1.6.1 was built with the following:
USE="(multilib)" 
Comment 3 Wormo (RETIRED) gentoo-dev 2010-07-26 19:39:41 UTC
Ok, assigning to radeontools maintainers. In the meantime, maybe you'd like to try the stable version of radeontool in case that works better.
Comment 4 Travis Hansen 2010-07-26 20:18:55 UTC
Thanks!  The 1.5 version doesn't have the requested tool (from the freedesktop bug) `avivotool`.  Also, Alex is asking me to apply a patch to radeontools which I doubt will apply to 1.5 as well.
Comment 5 Travis Hansen 2010-08-06 01:22:28 UTC
libpciaccess 0.12.0 fixes this issue but introduced a second segfault.

The second segfault is solved with this..

http://cgit.freedesktop.org/~airlied/radeontool/commit/?id=0ed24f339a3ca561d9e849ccbfe33849e80df378

To summarize, in order to make it work you currently need libpciaccess-0.12.0 and master radeontool with the above commit.
Comment 6 Pacho Ramos gentoo-dev 2012-11-18 13:35:49 UTC
Lets stabilize fixed version
Comment 7 Pacho Ramos gentoo-dev 2012-11-18 13:59:22 UTC
*** Bug 423567 has been marked as a duplicate of this bug. ***
Comment 8 Agostino Sarubbo gentoo-dev 2012-11-18 14:09:22 UTC
amd64 stable
Comment 9 Agostino Sarubbo gentoo-dev 2012-12-03 20:41:57 UTC
x86 stable. Last arch, closing