Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 31485 - Access violation when emerging db-4.1.25_p1-r2
Summary: Access violation when emerging db-4.1.25_p1-r2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on: 31972
Blocks:
  Show dependency tree
 
Reported: 2003-10-19 03:09 UTC by Tim Haughton
Modified: 2003-10-25 13:29 UTC (History)
3 users (show)

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


Attachments
Build log. (errors.txt,162.70 KB, text/plain)
2003-10-19 14:58 UTC, Tim Haughton
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Haughton 2003-10-19 03:09:30 UTC
Trying to emerge db-4.1.25_p1-r2 - the process falls over with this error:

--------------------------- ACCESS VIOLATION SUMMARY ---------------
LOG FILE = "/tmp/sandbox-db-4.1.25_p1-r2-2040.log"
 
open_wr:   /proc/self/maps
open_wr:   /proc/self/maps
open_wr:   /proc/self/maps
open_wr:   /proc/self/maps
open_wr:   /proc/self/maps
open_wr:   /proc/self/maps
open_wr:   /proc/self/maps
---------------------------------------------------------

This is a new one on me. I'll attach a transcript if you need more info.

Reproduceable - always.

Portage 2.0.49-r13-2 (default-x86-1.4, gcc-3.3.1, glibc-2.3.2-r6, 2.4.20-gentoo-r6)
=================================================================
System uname: 2.4.20-gentoo-r6 i686 AMD Athlon(TM) XP1700+
Gentoo Base System version 1.4.3.11
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=athlon-xp -pipe"
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="-O3 -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="ftp://ftp.easynet.nl/mirror/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 oss apm avi cups encode foomaticdb gif gpm jpeg libg++ libwww mad mikmod mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gdbm berkdb slang readline arts bonobo svga java X sdl tcpd pam ssl perl python esd imlib oggvorbis motif opengl mozilla gtk gtk2 gnome -qt -kde crypt samba"
Comment 1 Nox 2003-10-19 11:30:32 UTC
I have the same error in this package along with Crypt-Cracklib-0.01

>>> Install Crypt-Cracklib-0.01 into /var/tmp/portage/Crypt-Cracklib-0.01/image/
category dev-perl 
Files found in blib/arch: installing files in blib/lib into architecture
dependent library tree 
Writing /usr/lib/perl5/site_perl/5.8.1/i686-linux/auto/Crypt/Cracklib/.packlist

ACCESS DENIED open_wr: /usr/lib/perl5/site_perl/5.8.1/i686-linux/auto/Crypt/Cracklib/.packlist

Can't open file
/usr/lib/perl5/site_perl/5.8.1/i686-linux/auto/Crypt/Cracklib/.packlist:
Permission denied at /usr/lib/perl5/5.8.1/E 
s/Install.pm line 209 
make: *** [pure_site_install] Error 255 

!!! ERROR: dev-perl/Crypt-Cracklib-0.01 failed. 
!!! Function perl-module_src_install, Line 78, Exitcode 2 
!!! (no error message) 

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------

LOG FILE = "/tmp/sandbox-Crypt-Cracklib-0.01-14706.log" 

open_wr: /usr/lib/perl5/site_perl/5.8.1/i686-linux/auto/Crypt/Cracklib/.packlist

--------------------------------------------------------------------------------


Heres any info that may help: 

Kernel: 2.4.21-ck3 
gcc: sys-devel/gcc-3.3.1-r5 
glibc: sys-libs/glibc-2.3.2-r6 
portage: sys-apps/portage-2.0.49-r13 
USE="mmx joystick xchattext 3dnow pic crypto X gtk2 gnome kde ldap samba
pam tcpd ssl qt doc bindist sse ipv6 bonobo xml xml2 tiff dedicated fbcon
offensive acl oav xinerama gtkhtml pda mbox imap prelude videos wmf apache2
flash memlimit directfb aaliib -nas -lirc pam -debug -arts -alsa -cups -nls
-i18n" 
CFLAGS="-march=athlon-xp -O3 -pipe -mmmx -m3dnow -msse -mfpmath=sse,387 -fforce-addr
-fomit-frame-pointer -funroll-loops -freruun-cse-after-loop -frerun-loop-opt
-falign-functions=4 -maccumulate-outgoing-args -fprefetch-loop-arrays -ffast-math"

FEATURES="sandbox userpriv usersandbox ccache notitles cvs autoclean digest"

(However i have tried with sandbox,userpriv,usersandbox removed.) 
Mounted Filesystems:
/dev/rd/disc0/part7 on / type xfs (rw,noatime) 
none on /dev type devfs (rw) 
none on /proc type proc (rw) 
/dev/rd/disc0/part3 on /var type xfs (rw,nosuid,nodev,noatime) 
/dev/rd/disc0/part5 on /tmp type xfs (rw,noexec,nosuid,nodev,noatime) 
/dev/rd/disc0/part6 on /var/tmp type xfs (rw,noexec,nosuid,nodev,noatime)

/dev/md0 on /home type xfs (rw,nosuid,nodev,noatime) 
/dev/hda1 on /home/httpd type xfs (rw,nodev,noatime) 
/dev/hda2 on /var/log type xfs (rw,noexec,nosuid,nodev,noatime) 
/dev/hda3 on /var/tmp/portage type xfs (rw,nosuid,nodev,noatime) 
none on /dev/shm type tmpfs (rw) 

There is a thread on the forums about this: http://forums.gentoo.org/viewtopic.php?t=97647
Comment 2 Paul de Vrieze (RETIRED) gentoo-dev 2003-10-19 12:27:38 UTC
Tim, could you attach the full build log. While it is very strange that any
program tries to use /proc/self, I cannot really see what's going on with
only these errors.

Nox, could you open a new bug for your problems. They are not at all related.
Comment 3 Tim Haughton 2003-10-19 14:58:52 UTC
Created attachment 19489 [details]
Build log.

Build log.
Comment 4 Tim Haughton 2003-10-19 15:00:22 UTC
Build log attached as requested. Please contact me if any more information
is required.
Comment 5 Paul de Vrieze (RETIRED) gentoo-dev 2003-10-21 03:41:56 UTC
Could you tell me which java version you are using by giving the results
of
java-config --javac? Apparently this javac uses /proc for certain commands.
Comment 6 Paul de Vrieze (RETIRED) gentoo-dev 2003-10-21 03:45:36 UTC
Sorry, I allready saw it, it is ibm jdk 1.4.1. 
Comment 7 Adrian Almenar 2003-10-21 19:10:48 UTC
Paul i had the same problem and its not java-config related.

It a sandbox access violation, see bug #31545 and look at the ebuild how
i fixed it in the src_compile part of the ebuild (lookup for "/proc/self/maps").
Comment 8 Paul de Vrieze (RETIRED) gentoo-dev 2003-10-22 01:48:32 UTC
Adrian, the problem seems to be caused by the ibm javac, apparently using
/proc/self/maps for some processing. I thought that it might be a problem
with other java packages too (the ones that are compiled), and that just
adding an addpredict in db does not really solve the problem, only one symptom.
Comment 9 Adrian Almenar 2003-10-22 05:41:59 UTC
But an addwrite will work for it ?

Just guessing !
Comment 10 aent 2003-10-22 13:42:40 UTC
It must be the IBM JDK, one one computer I am running that and it does the
same thing as described here still, and on my other computer running Blackbox
JDK it runs perfectly fine.

If you want any information from my setup, let me know what you want and
I'll give it to you... I was getting the same error with the ant ebuild which
was fixed, it was bug 31545
Comment 11 Paul de Vrieze (RETIRED) gentoo-dev 2003-10-23 02:03:48 UTC
I know adrian, but this will be a problem with each and every program that
compiles java. It could maybe be added to the default list.
Comment 12 Paul de Vrieze (RETIRED) gentoo-dev 2003-10-23 02:05:26 UTC
I have added addwrites to 4.0.14 and 4.1.25_p1-r2, however I think that it
is necessary to look for a more structural solution. Including an investigation
on whether we could standardly allow writing to /proc/self or even /proc
Comment 13 Paul de Vrieze (RETIRED) gentoo-dev 2003-10-25 13:26:23 UTC
Reopening so I can assign it to dev-portage
Comment 14 Paul de Vrieze (RETIRED) gentoo-dev 2003-10-25 13:29:20 UTC
Closing again