Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 218559
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Portage team <dev-portage@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: emerald <dirk@liji-und-dirk.de>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
emerge.info emerge --info text/plain emerald 2008-04-20 12:32 0000 17.48 KB Details
sandbox.patch add write access to /var/cache/edb/dep when appropriate patch Zac Medico 2008-04-20 20:56 0000 901 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 218559 depends on: Show dependency tree
Bug 218559 blocks: 216231
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2008-04-20 12:31 0000
emerge bails out with a sandbox violation:

--------------------------- ACCESS VIOLATION SUMMARY
---------------------------
LOG FILE = "/var/log/sandbox/sandbox-419461.log"

open_wr:   /var/cache/edb/dep/usr/portage.sqlite
open_wr:   /var/cache/edb/dep/usr/portage/local/layman/java-overlay.sqlite
open_wr:   /var/cache/edb/dep/usr/portage/local/layman/toolchain.sqlite
open_wr:   /var/cache/edb/dep/usr/portage/local/layman/vmware.sqlite
open_wr:   /var/cache/edb/dep/usr/portage/local/layman/java-gcj-overlay.sqlite
open_wr:   /var/cache/edb/dep/usr/portage/local/layman/fry-overlay.sqlite
open_wr:   /var/cache/edb/dep/usr/portage/local/layman/sunrise.sqlite
open_wr:   /var/cache/edb/dep/usr/portage/local/layman/arcon.sqlite
open_wr:   /var/cache/edb/dep/usr/local/portage.sqlite
--------------------------------------------------------------------------------

I use the
   /etc/portage/modules
to change the cache module to sqlite:
   portdbapi.auxdbmodule = cache.sqlite.database

Actually, the sandbox access violation errors occur quite often recently. :(

------- Comment #1 From emerald 2008-04-20 12:32:48 0000 -------
Created an attachment (id=150384) [details]
emerge --info

------- Comment #2 From emerald 2008-04-20 12:39:28 0000 -------
btw, compiling sandbox with plain CFLAGS (-march=athlon64 -O2) doesn't help
anythign at all

------- Comment #3 From emerald 2008-04-20 12:57:35 0000 -------
actually, it fails during src_unpack() already

 * Checking for at least 512MBytes RAM ...                                [ ok
]
 * Checking for at least 5120MBytes disk space at ${T} ...                [ ok
]
 * Using: sun-jdk-1.6
 * Found db version 4.5
>>> Unpacking source...
>>> Unpacking ooo-build-2.4.0.7.tar.gz to /home/tmp/portage/app-office/openoffice-2.4.0/work
 * Applying gentoo-2.4.0.diff ...                                         [ ok
]
 * Applying ooo-env_log.diff ...                                          [ ok
]
ACCESS DENIED  open_wr:   /var/cache/edb/dep/usr/portage.sqlite
ACCESS DENIED  open_wr:  
/var/cache/edb/dep/usr/portage/local/layman/toolchain.sqlite
ACCESS DENIED  open_wr:  
/var/cache/edb/dep/usr/portage/local/layman/vmware.sqlite
ACCESS DENIED  open_wr:  
/var/cache/edb/dep/usr/portage/local/layman/fry-overlay.sqlite
ACCESS DENIED  open_wr:  
/var/cache/edb/dep/usr/portage/local/layman/sunrise.sqlite
ACCESS DENIED  open_wr:  
/var/cache/edb/dep/usr/portage/local/layman/arcon.sqlite
ACCESS DENIED  open_wr:   /var/cache/edb/dep/usr/local/portage.sqlite
 * Running eautoreconf in
'/home/tmp/portage/app-office/openoffice-2.4.0/work/ooo' ...
 * Running aclocal ...                                                    [ ok
]
 * Running autoconf ...                                                   [ ok
]
 * Running automake --add-missing --copy ...                              [ ok
]
>>> Source unpacked.

------- Comment #4 From Zac Medico 2008-04-20 20:18:18 0000 -------
This seems to be triggered by the ebuild calling java-config which uses the
portage api. We should be able to fix the portage api to detect potential
sandbox violations like this and avoid them.

------- Comment #5 From Zac Medico 2008-04-20 20:56:39 0000 -------
Created an attachment (id=150459) [details]
add write access to /var/cache/edb/dep when appropriate

If this patch is saved as /tmp/sandbox.patch, then it can be applied as
follows:

patch /usr/lib/portage/pym/portage.py /tmp/sandbox.patch

------- Comment #6 From emerald 2008-04-20 21:20:58 0000 -------
the patch seems to have fixed this problem,
openoffice unpack and, i tested pdfbox, where i remeber the error occured too
the problem doesn't occur anymore.
another thing still keeps popping up (i forgot to mention beforehand), when
installing portage (most recent ~ version):

 * Generating api docs
ACCESS DENIED  open_wr:   /var/cache/edb/dep/usr/portage.sqlite
ACCESS DENIED  open_wr:  
/var/cache/edb/dep/usr/portage/local/layman/toolchain.sqlite
ACCESS DENIED  open_wr:  
/var/cache/edb/dep/usr/portage/local/layman/vmware.sqlite
ACCESS DENIED  open_wr:  
/var/cache/edb/dep/usr/portage/local/layman/fry-overlay.sqlite
ACCESS DENIED  open_wr:  
/var/cache/edb/dep/usr/portage/local/layman/sunrise.sqlite
ACCESS DENIED  open_wr:  
/var/cache/edb/dep/usr/portage/local/layman/arcon.sqlite
ACCESS DENIED  open_wr:  
/var/cache/edb/dep/usr/portage/local/layman/java-gcj-overlay.sqlite
ACCESS DENIED  open_wr:  
/var/cache/edb/dep/usr/portage/local/layman/java-overlay.sqlite
ACCESS DENIED  open_wr:   /var/cache/edb/dep/usr/local/portage.sqlite
>>> Source compiled.
--------------------------- ACCESS VIOLATION SUMMARY
---------------------------
LOG FILE = "/var/log/sandbox/sandbox-1599517.log"

open_wr:   /var/cache/edb/dep/usr/portage.sqlite
open_wr:   /var/cache/edb/dep/usr/portage/local/layman/toolchain.sqlite
open_wr:   /var/cache/edb/dep/usr/portage/local/layman/vmware.sqlite
open_wr:   /var/cache/edb/dep/usr/portage/local/layman/fry-overlay.sqlite
open_wr:   /var/cache/edb/dep/usr/portage/local/layman/sunrise.sqlite
open_wr:   /var/cache/edb/dep/usr/portage/local/layman/arcon.sqlite
open_wr:   /var/cache/edb/dep/usr/portage/local/layman/java-gcj-overlay.sqlite
open_wr:   /var/cache/edb/dep/usr/portage/local/layman/java-overlay.sqlite
open_wr:   /var/cache/edb/dep/usr/local/portage.sqlite
--------------------------------------------------------------------------------

------- Comment #7 From Zac Medico 2008-04-20 21:52:29 0000 -------
(In reply to comment #6)
> another thing still keeps popping up (i forgot to mention beforehand), when
> installing portage (most recent ~ version):

This is to be expected since none of the current ebuilds have this patch. If
you copy the ebuild to overlay apply the patch to portage.py inside
src_unpack(), it will solve the problem.

------- Comment #8 From emerald 2008-04-20 22:02:19 0000 -------
ok, yes, the patched ebuild fixes this one too
thanks

------- Comment #9 From Zac Medico 2008-04-21 21:37:42 0000 -------
Thanks for testing. This is fixed in 2.1.5_rc6.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug