Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 170945 - kernel modules sandbox violation in /usr/src/linux-2.6.20*/-.gcda
Summary: kernel modules sandbox violation in /usr/src/linux-2.6.20*/-.gcda
Status: RESOLVED DUPLICATE of bug 135745
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-14 20:47 UTC by Georgi Chulkov
Modified: 2007-03-14 21:03 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 Georgi Chulkov 2007-03-14 20:47:53 UTC
I noticed on my new AMD64 system that whenever I try to emerge anything that contains a kernel module, I get a access violation right after compilation iff I use the "usersandbox" feature. This certainly happens with kqemu, ralink-rt61, and nvidia-drivers, since I've tried those.

For instance, this is the end of "emerge nvidia-drivers":

  Building modules, stage 2.
make -f /usr/src/linux-2.6.20-gentoo-r2/scripts/Makefile.modpost
  scripts/mod/modpost   -i /usr/src/linux-2.6.20-gentoo-r2/Module.symvers -I /var/tmp/portage/x11-drivers/nvidia-drivers-1.0.9755-r1/work/NVIDIA-Linux-x86_64-1.0-9755-pkg2/usr/src/nv/Module.symvers -o /var/tmp/portage/x11-drivers/nvidia-drivers-1.0.9755-r1/work/NVIDIA-Linux-x86_64-1.0-9755-pkg2/usr/src/nv/Module.symvers -w vmlinux /var/tmp/portage/x11-drivers/nvidia-drivers-1.0.9755-r1/work/NVIDIA-Linux-x86_64-1.0-9755-pkg2/usr/src/nv/nvidia.o
  x86_64-pc-linux-gnu-gcc -Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-1.0.9755-r1/work/NVIDIA-Linux-x86_64-1.0-9755-pkg2/usr/src/nv/.nvidia.mod.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include -D__KERNEL__ -Iinclude -Iinclude2 -I/usr/src/linux-2.6.20-gentoo-r2/include -include include/linux/autoconf.h -I/usr/src/linux-2.6.20-gentoo-r2/ -I -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -O2 -m64 -mno-red-zone -mcmodel=kernel -pipe -fno-reorder-blocks -Wno-sign-compare -fno-asynchronous-unwind-tables -funit-at-a-time -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -fomit-frame-pointer -fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nvidia.mod)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -DMODULE -c -o /var/tmp/portage/x11-drivers/nvidia-drivers-1.0.9755-r1/work/NVIDIA-Linux-x86_64-1.0-9755-pkg2/usr/src/nv/nvidia.mod.o /var/tmp/portage/x11-drivers/nvidia-drivers-1.0.9755-r1/work/NVIDIA-Linux-x86_64-1.0-9755-pkg2/usr/src/nv/nvidia.mod.c
  ld  -r -o /var/tmp/portage/x11-drivers/nvidia-drivers-1.0.9755-r1/work/NVIDIA-Linux-x86_64-1.0-9755-pkg2/usr/src/nv/nvidia.ko /var/tmp/portage/x11-drivers/nvidia-drivers-1.0.9755-r1/work/NVIDIA-Linux-x86_64-1.0-9755-pkg2/usr/src/nv/nvidia.o /var/tmp/portage/x11-drivers/nvidia-drivers-1.0.9755-r1/work/NVIDIA-Linux-x86_64-1.0-9755-pkg2/usr/src/nv/nvidia.mod.o
NVIDIA: left KBUILD.
>>> Source compiled.
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/var/log/sandbox/sandbox-x11-drivers_-_nvidia-drivers-1.0.9755-r1-26997.log"

open_wr:   /usr/src/linux-2.6.20-gentoo-r2/-.gcda
--------------------------------------------------------------------------------

In two days I will check my office x86 system for the same problem; I believe it's fine there, but I'm not 100% sure. I will write back.

Here's emerge --info for the AMD64 machine:

Portage 2.1.2.2 (default-linux/amd64/2006.1, gcc-4.1.2, glibc-2.5-r1, 2.6.20-gentoo-r2 x86_64)
=================================================================
System uname: 2.6.20-gentoo-r2 x86_64 Intel(R) Core(TM)2 CPU          6700  @ 2.66GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Wed, 14 Mar 2007 11:00:01 +0000
dev-java/java-config: 1.3.7, 2.0.31-r4
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
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.17
sys-devel/gcc-config: 1.3.15-r1
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.20-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=nocona -pipe"
CHOST="x86_64-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/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=nocona -pipe"
DISTDIR="/distfiles"
EMERGE_DEFAULT_OPTS="--nospinner --with-bdeps y --alphabetical"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LINGUAS="en"
MAKEOPTS="-j2"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="S3TC X X509 a52 aac acpi alsa amd64 amr ares audiofile bash-completion bitmap-fonts bzip2 cairo cdparanoia cli connectionstatus cpudetection cracklib crypt css dbus djbfft djvu dmi doc dri dts dvd dvdr dvdread dynamic encode epydoc expat extrafilters fam fame fbcon ffmpeg fftw flac fontconfig fpx gd gdbm gif gimp glep glitz gmp gnutls graphviz gs gtk hal history hpn iconv idea idn imagemagick imlib insecure-savers isdnlog ithreads java jbig jce jingle jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility kerberos kipi kqemu lame latex lcms libedit libg++ lm_sensors lzo mad mjpeg mmap mng modplug mp3 mpeg musepack ncurses network nls no-old-linux nptl nptlonly nsplugin nvidia odbc offensive ogg openal openexr opengl pam pango pdf pg-intdatetime pmu png postgres ppds pppd qt3 quicktime readline reflection rle rtc sasl sdl sensord session slang smp sms sndfile speex spell spl srp ssl statistics subversion svg symlink tga theora threads tiff toolbar truetype truetype-fonts type1-fonts unicode vcd visualization vorbis vorbis-psy wavpack wifi wmf x264 xcb xcomposite xforms xine xml xorg xpm xprint xscreensaver xv xvid xvmc yv12 zlib" ALSA_CARDS="hda-intel" 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-03-14 21:03:23 UTC

*** This bug has been marked as a duplicate of bug 135745 ***