Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 519674 - valgrind shows many errors for =x11-apps/mesa-progs-8.1.0 and =media-libs/mesa-10.2.{4,5}
Summary: valgrind shows many errors for =x11-apps/mesa-progs-8.1.0 and =media-libs/mes...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo X packagers
URL: http://mesa3d.sourceforge.net/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-11 22:08 UTC by Jonas Jelten
Modified: 2014-08-12 17:00 UTC (History)
1 user (show)

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


Attachments
the complete valgrind and glxinfo output (valgrind-glxinfo,153.10 KB, text/plain)
2014-08-11 22:09 UTC, Jonas Jelten
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jonas Jelten 2014-08-11 22:08:45 UTC
When i execute
valgrind -v --leak-check=full --track-origins=yes glxinfo
i get lots errors.

Originally I got all the errors when testing an opengl coding project,
but the errors also occur when running glxgears or glxinfo.

I will attach the complete valgrind output.

Reproducible: Always

Steps to Reproduce:
1. install media-libs/mesa-10.2.4 or 10.2.5 x11-apps/mesa-progs-8.1.0
2. run valgrind glxinfo

Actual Results:  
valgrind shows loads of memory errors.

Expected Results:  
valgrind should be happy, no errors should be displayed.

Linux 3.16.0-JJ+ #50 SMP PREEMPT Fri Aug 8 22:54:55 CEST 2014 x86_64 Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz GenuineIntel GNU/Linux
i965 HD 3000 GPU.

Portage 2.2.11-r1 (python 3.4.1-final-0, default/linux/amd64, gcc-4.8.3, glibc-2.19-r1, 3.16.0-JJ+ x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.16.0-JJ+-x86_64-Intel-R-_Core-TM-_i5-2520M_CPU_@_2.50GHz-with-gentoo-2.2
KiB Mem:     8055952 total,   1601412 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Sat, 09 Aug 2014 00:45:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p47
dev-lang/python:          2.7.8, 3.4.1
dev-util/cmake:           2.8.12.2-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.10.3, 1.11.6, 1.13.4, 1.14.1
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.7.3-r1, 4.8.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://mirror.stusta.mhn.de/gentoo-portage
    priority: -1000

ABI="amd64"
ABI_X86="64"
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
ACCEPT_PROPERTIES="*"
ACCEPT_RESTRICT="*"
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"
APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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"
ARCH="amd64"
AUTOCLEAN="yes"
BOOTSTRAP_USE="cxx unicode internal-glib python_targets_python3_3 python_targets_python2_7 multilib multilib"
CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author"
CAMERAS="ptp2"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -pipe -march=corei7-avx -mcx16 -maes -mpclmul -mpopcnt -mavx -msse4.2 -msse4.1 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=256 -flto=4"
CFLAGS_amd64="-m64"
CFLAGS_x32="-mx32"
CFLAGS_x86="-m32"
CHOST="x86_64-pc-linux-gnu"
CHOST_amd64="x86_64-pc-linux-gnu"
CHOST_x32="x86_64-pc-linux-gnux32"
CHOST_x86="i686-pc-linux-gnu"
CLASSPATH=".:"
CLEAN_DELAY="5"
COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog"
COLLISION_IGNORE="/lib/modules/* *.py[co] *$py.class */dropin.cache"
COLORFGBG="15;default"
COLORTERM="rxvt"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O3 -pipe -march=corei7-avx -mcx16 -maes -mpclmul -mpopcnt -mavx -msse4.2 -msse4.1 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=256 -flto=4"
DEFAULT_ABI="amd64"
DISPLAY=":0.0"
DISTCC_DIR="/tmp//distcc"
DISTCC_LOG=""
DISTCC_VERBOSE=""
DISTDIR="/usr/portage/distfiles"
EDITOR="vim"
ELIBC="glibc"
EMERGE_DEFAULT_OPTS="--tree --verbose"
EMERGE_WARNING_DELAY="10"
EPREFIX=""
EROOT="/"
FCFLAGS="-O3 -pipe -march=corei7-avx -mcx16 -maes -mpclmul -mpopcnt -mavx -msse4.2 -msse4.1 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=256 -flto=4"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news nostrip parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O3 -pipe -march=corei7-avx -mcx16 -maes -mpclmul -mpopcnt -mavx -msse4.2 -msse4.1 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=256 -flto=4"
GCC_SPECS=""
KERNEL="linux"
LANG="en_US.UTF-8"
LC_ADDRESS="de_DE.UTF-8"
LC_MEASUREMENT="de_DE.UTF-8"
LC_MESSAGES="C"
LC_MONETARY="de_DE.UTF-8"
LC_PAPER="de_DE.UTF-8"
LC_TELEPHONE="de_DE.UTF-8"
LC_TIME="en_DK.UTF-8"
LDFLAGS="-flto=4"
LDFLAGS_amd64="-m elf_x86_64"
LDFLAGS_x32="-m elf32_x86_64"
LDFLAGS_x86="-m elf_i386"
LESS="-R -M --shift 5"
LESSOPEN="|lesspipe %s"
LIBDIR_amd64="lib64"
LIBDIR_amd64_fbsd="lib64"
LIBDIR_arm="lib"
LIBDIR_arm64="lib64"
LIBDIR_n32="lib32"
LIBDIR_n64="lib64"
LIBDIR_o32="lib"
LIBDIR_ppc="lib32"
LIBDIR_ppc64="lib64"
LIBDIR_s390="lib32"
LIBDIR_s390x="lib64"
LIBDIR_sparc32="lib32"
LIBDIR_sparc64="lib64"
LIBDIR_x32="libx32"
LIBDIR_x86="lib32"
LIBDIR_x86_fbsd="lib32"
LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer"
LINGUAS="en"
MAKEFLAGS="-j5"
MAKEOPTS="-j5"
MULTILIB_ABIS="amd64 x86"
MULTILIB_STRICT_DENY="64-bit.*shared object"
MULTILIB_STRICT_DIRS="/lib32 /lib /usr/lib32 /usr/lib /usr/kde/*/lib32 /usr/kde/*/lib /usr/qt/*/lib32 /usr/qt/*/lib /usr/X11R6/lib32 /usr/X11R6/lib"
MULTILIB_STRICT_EXEMPT="(perl5|gcc|gcc-lib|binutils|eclipse-3|debug|portage|udev|systemd|clang|python-exec)"
OPENGL_PROFILE="xorg-x11"
PAGER="less"
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.3:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.3:/usr/games/bin:/home/jj/scripts"
PKGDIR="/usr/portage/packages"
PORTDIR="/usr/portage"
USE="X aac aalib acl acpi aes alsa amd64 aperfmperf apic apng arat arch_perfmon audio avx avx256 bash-completion bluetooth btrfs bts c++0x c++11 caps clflush cli cmov constant_tsc cracklib crypt cx16 cx8 cxx de dri ds_cpl dtes64 dtherm dts eagerfpu emacs emacs-syntax epb ept est ffmpeg fftw flac flexpriority fortran fpu fxsr g3dvl gallium git gnutls gpl gpm gstreamer gtk gtk2 gtk3 gtkstyle ht i915 i965 iconv ida inotify intel ipv6 jpeg lahf_lm lame latex libcaca llvm lm lto lzma mad matroska mca mce mmx modules monitor mp3 mp4 mplayer msr mtrr multilib ncurses nls nonstop_tsc nopl nptl nx ogg openal opengl openmp opus pae pam pat pbe pcid pclmulqdq pcre pdcm pebs pge pln png pni popcnt pse pse36 pts pulseaudio python python3 qt4 rdtscp readline s3tc science sep session smp smx sna sound ss sse sse2 sse3 sse4 sse4_1 sse4_2 ssh ssl ssse3 svg symlink syscall syslog system-sqlite tcpd theora threads tm tm2 tpr_shadow truetype tsc tsc_deadline_timer twolame udev unicode v4l vaapi vim vim-syntax vme vmx vnmi vorbis vpid vpx wayland wifi winbind x264 x2apic xa xattr xft xinerama xmvc xorg xrandr xsave xsaveopt xtopology xtpr xvmc xz zlib zsh-completion" ABI_X86="64" 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" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4"
USERLAND="GNU"
USE_PYTHON="3.4"
VIDEO_CARDS="intel i965"
VISUAL="vim"
XDG_CONFIG_DIRS="/etc/xdg"
XDG_DATA_DIRS="/usr/local/share:/usr/share"
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"
_="/usr/bin/emerge"

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

media-libs/mesa-10.2.5 was built with the following:
USE="classic dri3 egl gallium gbm gles2 llvm nptl wayland xa xvmc -bindist -debug -gles1 -opencl -openmax -openvg -osmesa -pax_kernel -pic -r600-llvm-compiler (-selinux) -vdpau" ABI_X86="32 64 -x32" VIDEO_CARDS="i965 intel -freedreno -i915 -ilo -nouveau -r100 -r200 -r300 -r600 -radeon -radeonsi -vmware"
CFLAGS="-O3 -pipe -march=corei7-avx -mcx16 -maes -mpclmul -mpopcnt -mavx -msse4.2 -msse4.1 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=256"
CXXFLAGS="-O3 -pipe -march=corei7-avx -mcx16 -maes -mpclmul -mpopcnt -mavx -msse4.2 -msse4.1 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=256"
LDFLAGS=""

x11-apps/mesa-progs-8.1.0 was built with the following:
USE="-egl -gles1 -gles2" ABI_X86="64"
Comment 1 Jonas Jelten 2014-08-11 22:09:25 UTC
Created attachment 382694 [details]
the complete valgrind and glxinfo output
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2014-08-12 09:24:57 UTC
Please tell the upstream developers about this.
Comment 3 Jonas Jelten 2014-08-12 13:25:15 UTC
=> https://bugs.freedesktop.org/show_bug.cgi?id=82513
Comment 4 Jonas Jelten 2014-08-12 17:00:49 UTC
For the record:
compiling libdrm while valgrind is installed fixes most of the errors.

The libdrm configure script will detect valgrind's presence and enable all kinds of meminitialize fixes.

This could be something to be integrated into portage:
Triggering a rebuild for these packages XOR adding a valgrind use flag for libdrm.