Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 233703 - app-text/calibre sandbox access violation
Summary: app-text/calibre sandbox access violation
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Diego Elio Pettenò (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-02 13:43 UTC by Fabio Bonfante
Modified: 2009-04-24 16:33 UTC (History)
1 user (show)

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


Attachments
.../portage/app-text/calibre-0.4.77/temp/build.log (calibre-0.4.7.log,103.75 KB, text/plain)
2009-04-19 12:59 UTC, Michel Arboi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fabio Bonfante 2008-08-02 13:43:26 UTC
emerging calibre (both version 0.4.76 and 0.4.77) cause a sandbox accessio violation 

Portage 2.1.4.4 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r8 x86_64)
=================================================================
System uname: 2.6.24-gentoo-r8 x86_64 AMD Athlon(tm) 64 Processor 3200+
Timestamp of tree: Sat, 02 Aug 2008 06:00:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r13, 2.5.2-r5
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
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.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -mmmx -msse -msse2 -m3dnow -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/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=k8 -O2 -mmmx -msse -msse2 -m3dnow -pipe"
DISTDIR="/var/tmp/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="it_IT.UTF-8"
LC_ALL="it_IT.UTF-8"
LINGUAS="it"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/sunrise /usr/local/overlays/gnome-experimental /usr/local/overlays/java-overlay /usr/local/overlays/fluendo-elisa /usr/local/overlays/zugaina /usr/local/overlays/armagetron /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 7zip X a52 aac acl acpi alsa amd64 amuled apache2 asf audacious avi bash-completion berkdb browserplugin bzip2 cairo cddb cdparanoia cdr chm cli cracklib crypt cups curl dbus directfb dri dts dv dvd dvdr dvdread eds emboss encode esd ethereal evo exif expat fam fbcon fbsplash ffmpeg flac gcj gd gdbm gif glut gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml hal iconv idn ieee1394 imagemagick innodb ipod ipv6 isdnlog jack java jpeg jpeg2k kerberos lcms ldap libnotify libvisual lirc lzo mad matroska midi mikmod mmx mng mod modplug mono mozsvg mp3 mpd mpeg mudflap musepack mysql mythtv ncurses nfs nls nptl nptlonly nsplugin nvidia objc odbc ogg oggvorbis openal openexr opengl openmp pam pcre pdf perl png postgres pppd python qt qt3 qt3support qt4 quicktime readline reflection samba scanner sdl session skins sndfile speex spell spl sqlite srt sse sse2 sse3 ssl startup-notification stream streamout svg tagwriting tcpd tga theora threads tiff truetype tv unicode usb userlocales v4l vcd vhosts vorbis wacom wavpack webservices wmf wxwindows x264 xine xinerama xml xml2 xorg xosd xpm xulrunner xv xvid xvmc 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" 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS




------------------------------------------------------------------------------
.....
>>> Completed installing calibre-0.4.76 into /home/.var/tmp/portage/app-text/calibre-0.4.76/image/

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

open_wr:   /usr/share/gnome/apps/calibre-gui.desktop
open_wr:   /usr/share/gnome/apps/calibre-lrfviewer.desktop
--------------------------------------------------------------------------------
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2008-08-02 17:53:10 UTC
Can you please attach a full build log? I need to know at which point it was thrown.
Comment 2 Fabio Bonfante 2008-08-03 08:52:21 UTC
I'm not on that pc right know... i can only tell you that the ebuild finished the install phase (you see the ">>> Completed installing...") there are some errors in the compile phase generating (if i remeber exactly) the man pages, but nothing that seem related to this couple of .desktop files

I'll attach a full log asap.
Comment 3 Michel Arboi 2009-04-19 12:59:45 UTC
Created attachment 188869 [details]
.../portage/app-text/calibre-0.4.77/temp/build.log

I have the same problem, here is my log.
Comment 4 Henryk Plötz 2009-04-24 16:28:51 UTC
The bug is in src/calibre/linux.py line 484 where it says
  check_call('xdg-desktop-menu install ./calibre-gui.desktop ./calibre-lrfviewer.desktop', shell=True) 

This will try to directly install the desktop files into the live filesystem and not into the sandbox. To fix that you'd probably need to remove this call (and probably the call to xdg-mime install below that) and install those files the Gentoo way, from the ebuild.

Hmm, although ... it is using xdg-icon-resource install directly before that and that doesn't fail. Maybe there is already some magic in place that handles xdg-icon-resource but not xdg-desktop-menu and just needs to be extended to also handle the latter?
Comment 5 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-04-24 16:33:07 UTC
Henryk, if you look at the ebuild it is full of workarounds for xdg-utils being idiotic; that's the main reason why I stopped looking into calibre (and would be ready to give it up if somebody wanted to maintain it). I just don't think it's worth the time to add more workaround, and upstream didn't like the idea of not using xdg-utils in the first place.