Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 33170 - /gdk-pixbuf-0.22.0 causes sandbox access violation with distcc enabled
Summary: /gdk-pixbuf-0.22.0 causes sandbox access violation with distcc enabled
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Lisa Seelye (RETIRED)
URL:
Whiteboard:
Keywords:
: 142133 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-11-10 14:22 UTC by Daniel Armyr
Modified: 2006-07-31 13:45 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 Daniel Armyr 2003-11-10 14:22:21 UTC
When compiling named packade with distcc enabled, several access violations are reported resulting in a failed emerge. The bug is reproducable on my system, but I have not had the oppertunity to attempt to reproduce on my other system.


>>> Completed installing into /var/tmp/portage/gdk-pixbuf-0.22.0/image/

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-gdk-pixbuf-0.22.0-8999.log"

open_wr:   /.distcc/lock/cpu_localhost_0
open_wr:   /.distcc/lock/cpu_localhost_0
open_wr:   /.distcc/lock/cpu_localhost_0
open_wr:   /.distcc/lock/cpu_localhost_0
open_wr:   /.distcc/lock/cpu_localhost_0
open_wr:   /.distcc/lock/cpu_localhost_0
open_wr:   /.distcc/lock/cpu_localhost_0
open_wr:   /.distcc/lock/cpu_localhost_0
open_wr:   /.distcc/lock/cpu_localhost_0
open_wr:   /.distcc/lock/cpu_localhost_0
open_wr:   /.distcc/lock/cpu_localhost_0
--------------------------------------------------------------------------------


emerge info
Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.22-2.4.22)
=================================================================
System uname: 2.4.22-2.4.22 i686 AMD Athlon(tm) XP 2400+
Gentoo Base System version 1.4.3.10
distcc 2.11.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon -O3 -pipe -funroll-loops"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=athlon -O3 -pipe -funroll-loops"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs sandbox userpriv usersandbox ccache distcc"
GENTOO_MIRRORS="ftp://ftp.uninett.no/pub/linux/Gentoo ftp://gentoo.linux.no/pub/gentoo/ ftp://trumpetti.atm.tut.fi/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 oss apm avi crypt encode gif jpeg libg++ libwww mad mikmod mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gdbm berkdb slang readline svga tcltk java sdl gpm tcpd pam ssl perl python esd imlib oggvorbis gtk qt opengl cdr X dga Xaw3d -arts -cups -foomaticdb -bonobo -guile -gnome -kde -gtk2 -motif"
Comment 1 Lisa Seelye (RETIRED) gentoo-dev 2003-11-10 15:53:25 UTC
this is a distcc "bug."

Is PORTAGE_TMPDIR commented or not defined in your /etc/make.conf?
Comment 2 Daniel Armyr 2003-11-10 22:10:50 UTC
It was commented away. Re-emerging with PORTAGE_TMPDIR set to /var/tmp/ gave
exactly the same results.

After some closer inspection, this bug should perhaps be marked as a dup
of 33162 if this is a general distcc problem.

Comment 3 Lisa Seelye (RETIRED) gentoo-dev 2003-11-10 22:19:55 UTC
I don't think its a dupe of bug 33162. He's having permission issues, not
sandbox ones.

Do you have a DISTCC_DIR in /etc/make.conf at all?  If so, remove it and
try to compile again.
Comment 4 Daniel Armyr 2003-11-11 02:14:33 UTC
OK, took a second look. Found this line in my make.conf:
DISTCC_DIR="${PORT_TMPDIR}/.distcc"

The problem is that PORT_TMPDIR isn't anything. It should perhaps be PORTAGE_TMPDIR.
Higher up in the file I have the line:

PORTAGE_TMPDIR=/var/tmp

Changing the DISTCC_DIR to depend on the defined variable seems to solve
the problem. Having taken a look at the defult make.conf I can confirm that
this incompatibility between the variable names does in fact exist. 
Comment 5 Lisa Seelye (RETIRED) gentoo-dev 2004-01-04 10:08:51 UTC
Seems fixed?

Try updating Portage and Distcc if this persists.

Make sure DISTCC_DIR is not defined anywhere in /etc/make.conf.  Repoen if this persists.
Comment 6 Daniel Armyr 2004-01-07 05:08:43 UTC
Everything seems to work perfectly. Both with the DISTCC_DIR undefined and with it defined to its defalut value. One down...
Comment 7 Lisa Seelye (RETIRED) gentoo-dev 2006-07-31 13:45:04 UTC
*** Bug 142133 has been marked as a duplicate of this bug. ***