Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 420285 - x11-drivers/nvidia-drivers-295.53 causes segfaults if prelinked
Summary: x11-drivers/nvidia-drivers-295.53 causes segfaults if prelinked
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Doug Goldstein (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-08 17:41 UTC by Norman Back
Modified: 2012-09-29 21:07 UTC (History)
6 users (show)

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


Attachments
Example blacklist file for prelink (90nvidia,310 bytes, text/plain)
2012-06-08 17:44 UTC, Norman Back
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Norman Back 2012-06-08 17:41:30 UTC
After emerging sys-devel/prelink and configuring as per http://www.gentoo.org/doc/en/prelink-howto.xml segfaults occur in various applications.

Reproducible: Always

Steps to Reproduce:
1. Emerge sys-devel/prelink and configuring as per http://www.gentoo.org/doc/en/prelink-howto.xml
2. Reboot
3.
Actual Results:  
New segfaults apear in /var/log/messages

Expected Results:  
No segfaults apear in /var/log/messages

nvidia-drivers should add to the prelink blacklist in /etc/env.d
Comment 1 Norman Back 2012-06-08 17:44:40 UTC
Created attachment 314713 [details]
Example blacklist file for prelink

Example blacklist file for prelink that should be added to the nvidia-drivers ebuild
Comment 2 Norman Back 2012-06-08 17:49:17 UTC
Example segfaults from /var/log/messages:
Jun  8 11:42:21 zbox1 kernel: nepomukservices[10399]: segfault at 0 ip   (null) sp bfde767c error 14 in nepomukservicestub[8048000+6000]
Jun  8 17:23:34 zbox1 kernel: python2[5107]: segfault at 67732f95 ip 4ab182e4 sp bfda13c0 error 6 in ld-2.14.1.so[4ab0d000+1d000]
Jun  8 17:38:01 zbox1 kernel: monitorix.pl[5581]: segfault at 67cc5f95 ip 4ab182e4 sp bff57c20 error 6 in ld-2.14.1.so[4ab0d000+1d000]

Applying the blacklist file or removing prelink resolves the above issues.
Comment 3 Norman Back 2012-06-08 17:50:15 UTC
emerge --info
Portage 2.2.0_alpha107 (default/linux/x86/10.0/desktop, gcc-4.5.3, glibc-2.14.1-r3, 3.2.16-gentoo-1 i686)
=================================================================
System uname: Linux-3.2.16-gentoo-1-i686-Intel-R-_Atom-TM-_CPU_D525_@_1.80GHz-with-gentoo-2.1
Timestamp of tree: Fri, 08 Jun 2012 02:00:01 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
ccache version 3.1.6 [disabled]
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.4.6, 2.5.4-r4, 2.6.8, 2.7.3-r1, 3.1.5, 3.2.3
dev-util/ccache:          3.1.6
dev-util/cmake:           2.8.8-r2
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.9.9.3
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r2, 4.6.3
sys-devel/gcc-config:     1.7.1
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r3
Repositories: gentoo local
Installed sets: @kde-4.8, @system
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=atom -mcx16 -msahf -mmovbe --param l1-cache-size=24 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=atom -msse2 -mmmx -msse3 -mssse3 -O2 -fomit-frame-pointer -pipe -msse -mfpmath=sse"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
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.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-march=atom -mcx16 -msahf -mmovbe --param l1-cache-size=24 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=atom -msse2 -mmmx -msse3 -mssse3 -O2 -fomit-frame-pointer -pipe -msse -mfpmath=sse"
DISTDIR="/mnt/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch parallel-install parse-eapi-ebuild-head preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://mirror.qubenet.net/mirror/gentoo/ http://mirror.cambrium.nl/pub/os/linux/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://gentoo.virginmedia.com/ http://mirror.jamit.de/gentoo/ http://gentoo.tiscali.nl/ http://de-mirror.org/distro/gentoo/ http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ http://ftp.first-world.info/ http://mirror.switch.ch/ftp/mirror/gentoo/ ftp://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo/ ftp://mirror.yandex.ru/gentoo-distfiles/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://gentoo.mirrors.pair.com/ ftp://ftp.rhnet.is/pub/gentoo/ ftp://gentoo.mirror.dkm.cz/pub/gentoo/ ftp://mirror.datapipe.net/gentoo ftp://gentoo.imj.fr/pub/gentoo/ ftp://ftp.first-world.info/ ftp://gentoo.netnitco.net/pub/mirrors/gentoo/source/"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_GB"
MAKEOPTS="-j12 --load-average=15.2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --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="3dnow X a52 aac accessibility acl acpi alsa amarok amr authdaemond bash-completion berkdb bluetooth branding bzip2 cairo caps cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dv dvd dvdr dvdread emboss encode exif fam firefox flac fortran gdbm gif gpm gtk iconv ieee1394 ipv6 jpeg kde lcms ldap libnotify lm_sensors lock mad mmx mng modules mp3 mp4 mpeg mudflap mysql ncurses network nls nptl ofx ogg opengl openmp oss pam pango pcre pdf png policykit ppds pppd qt3 qt3support qt4 readline samba sasl sdl semantic-desktop session spell sse ssl startup-notification svg tcpd thunar tiff truetype udev udisks uk_bleb uk_rt unicode upower usb v4l v4l2 vorbis wxwidgets x264 x86 xcb xine xinerama xml xorg xulrunner 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 mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="lvm syslog" DVB_CARDS="usb-dib0700" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_GB" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" SANE_BACKENDS="hp5590" USERLAND="GNU" VIDEO_CARDS="nvidia fbdev vesa" XFCE_PLUGINS="brightness menu trash" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 4 Doug Goldstein (RETIRED) gentoo-dev 2012-07-22 21:09:53 UTC
This has been committed as part of 304.22
Comment 5 Nikos Chantziaras 2012-07-22 22:52:37 UTC
This is rather weird, since NVidia recommends prelinking their binaries:

http://lists.freedesktop.org/archives/wayland-devel/2012-March/002798.html

:-/  Before making a decision to block prelinking, it should be verified whether this bug is actually for real rather than some fluke on the OPs system.
Comment 6 Norman Back 2012-07-23 07:52:43 UTC
(In reply to comment #5)
> This is rather weird, since NVidia recommends prelinking their binaries:
> 
> http://lists.freedesktop.org/archives/wayland-devel/2012-March/002798.html
> 
> :-/  Before making a decision to block prelinking, it should be verified
> whether this bug is actually for real rather than some fluke on the OPs
> system.

Please describe the additional evidence you require.
Comment 7 Doug Goldstein (RETIRED) gentoo-dev 2012-08-16 22:39:42 UTC
I finally installed prelink and I'm unable to reproduce this.
Comment 8 Ryan Hill (RETIRED) gentoo-dev 2012-09-29 06:00:55 UTC
I can't reproduce this either on two different systems.
Comment 9 Doug Goldstein (RETIRED) gentoo-dev 2012-09-29 21:07:28 UTC
You're going to have to follow the Gentoo backtrace guide, http://www.gentoo.org/proj/en/qa/backtraces.xml and try to get us a backtrace when you're using prelink.