Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 284673 - =net-libs/xulrunner-1.9.1.3 access violation (possibly due to Mercurial repo in /var/)
Summary: =net-libs/xulrunner-1.9.1.3 access violation (possibly due to Mercurial repo ...
Status: RESOLVED LATER
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal with 1 vote (vote)
Assignee: Mozilla Gentoo Team
URL: https://bugzilla.mozilla.org/show_bug...
Whiteboard:
Keywords:
: 354225 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-09-12 11:03 UTC by Arne Babenhauserheide
Modified: 2011-02-17 20:32 UTC (History)
1 user (show)

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


Attachments
fix-hg_id_traverses_higher_dirs.patch (fix-hg_id_traverses_higher_dirs.patch,1.98 KB, patch)
2009-09-19 11:00 UTC, Arne Babenhauserheide
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Arne Babenhauserheide 2009-09-12 11:03:52 UTC
Hi, 

I get an access violation for xulrunner: 

gmake[2]: Leaving directory `/var/tmp/portage/net-libs/xulrunner-1.9.1.3/work/mozilla-1.9.1' 
gmake[1]: Leaving directory `/var/tmp/portage/net-libs/xulrunner-1.9.1.3/work/mozilla-1.9.1' 
gmake[1]: Entering directory `/var/tmp/portage/net-libs/xulrunner-1.9.1.3/work/mozilla-1.9.1'
tier_testharness:                                                                            
/usr/bin/gmake export_tier_testharness                                                       
gmake[2]: Entering directory `/var/tmp/portage/net-libs/xulrunner-1.9.1.3/work/mozilla-1.9.1'
export_tier_testharness                                                                      
gmake[2]: Leaving directory `/var/tmp/portage/net-libs/xulrunner-1.9.1.3/work/mozilla-1.9.1' 
/usr/bin/gmake libs_tier_testharness                                                         
gmake[2]: Entering directory `/var/tmp/portage/net-libs/xulrunner-1.9.1.3/work/mozilla-1.9.1'
libs_tier_testharness                                                                        
gmake[2]: Leaving directory `/var/tmp/portage/net-libs/xulrunner-1.9.1.3/work/mozilla-1.9.1' 
gmake[1]: Leaving directory `/var/tmp/portage/net-libs/xulrunner-1.9.1.3/work/mozilla-1.9.1' 
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------             
LOG FILE "/var/log/sandbox/sandbox-8859.log"                                                 

VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status  
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path               
FORMAT: C - Command Line                 

F: open_rd
S: deny   
P: /var/log/sandbox
A: /var/log/sandbox
R: /var/log/sandbox
C: /usr/bin/python2.6 /usr/bin/hg identify 

F: open_rd
S: deny   
P: /var/log/sandbox
A: /var/log/sandbox
R: /var/log/sandbox
C: /usr/bin/python2.6 /usr/bin/hg identify 

F: unlink
S: deny  
P: /var/tmpFvy4vH
A: /var/tmpFvy4vH
R: /var          
C: /usr/bin/python2.6 /usr/bin/hg identify 

F: open_wr
S: deny   
P: /var/dAY_Ez
A: /var/dAY_Ez
R: /var/dAY_Ez
C: /usr/bin/python2.6 /usr/bin/hg identify 

F: symlink
S: deny   
P: /var/.hg/wlock
A: /var/.hg/wlock
R: /var/.hg/wlock
C: /usr/bin/python2.6 /usr/bin/hg identify 

F: open_wr
S: deny   
P: /var/.hg/wlock
A: /var/.hg/wlock
R: /var/.hg/wlock
C: /usr/bin/python2.6 /usr/bin/hg identify 

F: open_rd
S: deny   
P: /var/log/sandbox
A: /var/log/sandbox
R: /var/log/sandbox
C: /usr/bin/python2.6 /usr/bin/hg identify 

F: unlink
S: deny  
P: /var/tmpUr8XMd
A: /var/tmpUr8XMd
R: /var          
C: /usr/bin/python2.6 /usr/bin/hg identify 

F: open_wr
S: deny   
P: /var/nxTE_D
A: /var/nxTE_D
R: /var/nxTE_D
C: /usr/bin/python2.6 /usr/bin/hg identify 

F: symlink
S: deny   
P: /var/.hg/wlock
A: /var/.hg/wlock
R: /var/.hg/wlock
C: /usr/bin/python2.6 /usr/bin/hg identify 

F: open_wr
S: deny   
P: /var/.hg/wlock
A: /var/.hg/wlock
R: /var/.hg/wlock
C: /usr/bin/python2.6 /usr/bin/hg identify 

F: open_rd
S: deny   
P: /var/log/sandbox
A: /var/log/sandbox
R: /var/log/sandbox
C: /usr/bin/python2.6 /usr/bin/hg identify 

F: unlink
S: deny  
P: /var/tmpgTnezu
A: /var/tmpgTnezu
R: /var          
C: /usr/bin/python2.6 /usr/bin/hg identify 

F: open_wr
S: deny   
P: /var/teobt4
A: /var/teobt4
R: /var/teobt4
C: /usr/bin/python2.6 /usr/bin/hg identify 

F: symlink
S: deny   
P: /var/.hg/wlock
A: /var/.hg/wlock
R: /var/.hg/wlock
C: /usr/bin/python2.6 /usr/bin/hg identify 

F: open_wr
S: deny   
P: /var/.hg/wlock
A: /var/.hg/wlock
R: /var/.hg/wlock
C: /usr/bin/python2.6 /usr/bin/hg identify 

F: open_rd
S: deny   
P: /var/log/sandbox
A: /var/log/sandbox
R: /var/log/sandbox
C: /usr/bin/python2.6 /usr/bin/hg identify 

F: unlink
S: deny  
P: /var/tmpOGDinN
A: /var/tmpOGDinN
R: /var          
C: /usr/bin/python2.6 /usr/bin/hg identify 

F: open_wr
S: deny   
P: /var/wnjDVo
A: /var/wnjDVo
R: /var/wnjDVo
C: /usr/bin/python2.6 /usr/bin/hg identify 

F: symlink
S: deny   
P: /var/.hg/wlock
A: /var/.hg/wlock
R: /var/.hg/wlock
C: /usr/bin/python2.6 /usr/bin/hg identify 

F: open_wr
S: deny   
P: /var/.hg/wlock
A: /var/.hg/wlock
R: /var/.hg/wlock
C: /usr/bin/python2.6 /usr/bin/hg identify 

F: open_rd
S: deny   
P: /var/log/sandbox
A: /var/log/sandbox
R: /var/log/sandbox
C: /usr/bin/python2.6 /usr/bin/hg identify 

F: unlink
S: deny  
P: /var/tmpQPYPm0
A: /var/tmpQPYPm0
R: /var          
C: /usr/bin/python2.6 /usr/bin/hg identify 

F: open_wr
S: deny   
P: /var/O_hui0
A: /var/O_hui0
R: /var/O_hui0
C: /usr/bin/python2.6 /usr/bin/hg identify 

F: symlink
S: deny   
P: /var/.hg/wlock
A: /var/.hg/wlock
R: /var/.hg/wlock
C: /usr/bin/python2.6 /usr/bin/hg identify 

F: open_wr
S: deny   
P: /var/.hg/wlock
A: /var/.hg/wlock
R: /var/.hg/wlock
C: /usr/bin/python2.6 /usr/bin/hg identify 

F: open_rd
S: deny   
P: /var/log/sandbox
A: /var/log/sandbox
R: /var/log/sandbox
C: /usr/bin/python2.6 /usr/bin/hg identify 

F: unlink
S: deny  
P: /var/tmp9xEMLz
A: /var/tmp9xEMLz
R: /var          
C: /usr/bin/python2.6 /usr/bin/hg identify 

F: open_wr
S: deny   
P: /var/ATO1YE
A: /var/ATO1YE
R: /var/ATO1YE
C: /usr/bin/python2.6 /usr/bin/hg identify 

F: symlink
S: deny   
P: /var/.hg/wlock
A: /var/.hg/wlock
R: /var/.hg/wlock
C: /usr/bin/python2.6 /usr/bin/hg identify 

F: open_wr
S: deny   
P: /var/.hg/wlock
A: /var/.hg/wlock
R: /var/.hg/wlock
C: /usr/bin/python2.6 /usr/bin/hg identify 
--------------------------------------------------------------------------------

One reason might be, that my /var/ is a mercurial repository which tracks some important config files to facilitate backupping (and checking what I had when :) ). 

Also I use mozialla-firefox-bin (since I'm too lazy to let my computer compile it again all the time). 

Reproducible: Always




# emerge --info              
Portage 2.2_rc40 (default/linux/amd64/2008.0/desktop, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.30-hh2 x86_64)                                                                               
=================================================================                            
System uname: Linux-2.6.30-hh2-x86_64-AMD_Athlon-tm-_64_Processor_3000+-with-gentoo-1.12.11.1
Timestamp of tree: Sat, 12 Sep 2009 02:15:02 +0000                                           
distcc 3.1 x86_64-pc-linux-gnu [disabled]                                                    
ccache version 2.4 [enabled]                                                                 
app-shells/bash:     4.0_p28                                                                 
dev-java/java-config: 2.1.8-r1                                                               
dev-lang/python:     2.4.6, 2.5.4-r3, 2.6.2-r1, 3.1.1                                        
dev-python/pycrypto: 2.0.1-r8                                                                
dev-util/ccache:     2.4-r7                                                                  
dev-util/cmake:      2.6.4                                                                   
sys-apps/baselayout: 1.12.11.1                                                               
sys-apps/sandbox:    1.6-r2                                                                  
sys-devel/autoconf:  2.13, 2.63-r1                                                           
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2                               
sys-devel/binutils:  2.18-r3                                                                 
sys-devel/gcc-config: 1.4.1                                                                  
sys-devel/libtool:   2.2.4                                                                   
virtual/os-headers:  2.6.27-r2                                                               
ACCEPT_KEYWORDS="amd64"                                                                      
CBUILD="x86_64-pc-linux-gnu"                                                                 
CFLAGS="-march=k8 -O2 -pipe"                                                                 
CHOST="x86_64-pc-linux-gnu"                                                                  
CONFIG_PROTECT="/etc /usr/share/config"                                                      
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"               
CXXFLAGS="-march=k8 -O2 -pipe"                                                               
DISTDIR="/var/tmp/portage/distfiles"                                                         
FEATURES="assume-digests ccache distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"                           
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://de-mirror.org/distro/gentoo/ ftp://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ ftp://ftp.iij.ad.jp/pub/linux/gentoo/ ftp://gentoo.cs.nctu.edu.tw/gentoo/ "                                                            
LANG="de_DE.UTF-8"                                                                           
LDFLAGS="-Wl,-O1"                                                                            
LINGUAS="de es eo en us"                                                                     
MAKEOPTS="-j2"                                                                               
PKGDIR="/var/tmp/portage/packages"                                                           
PORTAGE_CONFIGROOT="/"                                                                       
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/genbab /usr/portage/local/layman/berkano /usr/portage/local/layman/sunrise /usr/portage/local/layman/qting-edge /usr/portage/local/layman/sping /usr/portage/local/layman/zugaina /usr/portage/local/layman/interactive-fiction /usr/portage/local/layman/science /usr/portage/local/layman/gnustep /usr/portage/local/layman/kde-testing /usr/portage/local/layman/gnome /usr/portage/local/layman/python /usr/portage/local/layman/tove/repo"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi akonadi alias alsa amd64 amrnb amrwb autoreplace avahi bash-completion berkdb bonjour branding bzip2 cairo cdaudio cdr cli contactnotes cracklib crypt cups cupsddk curl dbus dri dts dv dvd dvdnav dvdr eds emacs emboss encode esd evo examples fam ffmpeg firefox flac fortran gadu gdbm gif gnustep gnutls gpg gpm groupwise gstreamer hal highlight history iconv id3tag ipod ipv6 isdnlog jabber java5 java6 jingle jpeg kde kqemu ladspa latex ldap libcaca libnotify lm_sensors mad mdnsresponder-compat midi mikmod mmx mng mp2 mp3 mp4 mpeg mudflap multilib musepack mysql ncurses nemesi network nls nptl nptlonly nsplugin objc offensive ogg openal openexr opengl openmp oscar otr pam pcre pdf perl phonon png pnm ppds pppd privacy pvr python qt3support qt4 quicktime readline reflection rss scanner schroedinger sdl semantic semantic-desktop session smartcard snmp sound speex spell spl sql sse sse2 ssl startup-notification statistics svg sysfs taglib tcpd theora threads thunar tiff tk toolkit-scroll-bars truetype unicode urlpicpreview usb v4l2 vhook vorbis webkit x264 xanim xml xorg xpm xulrunner xv xvid yahoo zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon 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 deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev input_devices_wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de es eo en us" USERLAND="GNU" VIDEO_CARDS="radeon radeonhd ati vesa mesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Wormo (RETIRED) gentoo-dev 2009-09-13 22:25:14 UTC
I would say this is definitely a side-effect of /var as mercurial repo, so you're probably the only person in the world who will run into this ;)

Is this behavior new to xulrunner 1.9.1.3, or does the same thing happen for older versions with your setup?
Comment 2 Arne Babenhauserheide 2009-09-14 06:07:43 UTC
According to eix, 1.9.0.14 is the last one which built for me. I tried building (~)1.9.1_rc3[1] [m](~)1.9.1.2-r2 and (~)1.9.1.3 (I'm not perfectly sure about 1.9.1_rc3, though)

1.9.1.2 is in my local package mask to keep portage from trying to build it over and over again. 

I assume they do some automated checks (Mozilla uses Mercurial) and Gentoo doesn't like theim meddling in my system :)

What I don't understand are those write acccesses, though: 
F: open_wr
S: deny   
P: /var/dAY_Ez
Comment 3 Jory A. Pratt gentoo-dev 2009-09-18 03:35:30 UTC
(In reply to comment #2)
> According to eix, 1.9.0.14 is the last one which built for me. I tried building
> (~)1.9.1_rc3[1] [m](~)1.9.1.2-r2 and (~)1.9.1.3 (I'm not perfectly sure about
> 1.9.1_rc3, though)
> 
> 1.9.1.2 is in my local package mask to keep portage from trying to build it
> over and over again. 
> 
> I assume they do some automated checks (Mozilla uses Mercurial) and Gentoo
> doesn't like theim meddling in my system :)
> 
> What I don't understand are those write acccesses, though: 
> F: open_wr
> S: deny   
> P: /var/dAY_Ez
> 

Until someone else can reproduce this without having /var setup as a mercurial repository  I see no point in chasing this down. As far as I have seen no other bug reports have been made with access violations for 1.9.1.x series.
Comment 4 Arne Babenhauserheide 2009-09-18 06:08:27 UTC
I'll do a little test to make sure that it's the .hg repo. 

$ mv /var/.hg /opt/.hg; emerge -1 xulrunner ; mv /opt/.hg /var/.hg
Comment 5 Arne Babenhauserheide 2009-09-18 07:15:39 UTC
Jupp, verified. 

I reported it upstream: https://bugzilla.mozilla.org/show_bug.cgi?id=517417

Should I switch it to "resolved - upstream"? 
Comment 6 Jory A. Pratt gentoo-dev 2009-09-18 12:36:48 UTC
Does 1.9.1.4 produce same failure? Mozilla team will track upstream.
Comment 7 Arne Babenhauserheide 2009-09-18 13:04:40 UTC
where can I get 1.9.1.4 for testing? 
Comment 8 Jory A. Pratt gentoo-dev 2009-09-18 13:09:58 UTC
(In reply to comment #6)
> Does 1.9.1.4 produce same failure? Mozilla team will track upstream.
> 

Nevermind. I did not commmit what will be 1.9.1.4 to any of the overlays yet, good thing I did not as I have found a few bugs that will need to be fixed before final release.
Comment 9 Arne Babenhauserheide 2009-09-18 14:06:45 UTC
OK.

I'll gladly test it, once you weeded out the other bugs :) 

Many thanks! 
Comment 10 Arne Babenhauserheide 2009-09-19 11:00:26 UTC
Created attachment 204587 [details, diff]
fix-hg_id_traverses_higher_dirs.patch
Comment 11 Jory A. Pratt gentoo-dev 2009-10-08 17:24:20 UTC
(In reply to comment #10)
> Created an attachment (id=204587) [details]
> fix-hg_id_traverses_higher_dirs.patch
> 

I have made one final push to have this fixed upstream, if they decline I will be left to ask you to either move your build location off of the hg repo or patch it yourself.
Comment 12 Arne Babenhauserheide 2009-10-08 18:14:16 UTC
@Jory: Many thanks for your push! 

I hope they'll take it - after all it also makes their build system more consistent. 
Comment 13 Jory A. Pratt gentoo-dev 2009-11-04 00:15:26 UTC
(In reply to comment #12)
> @Jory: Many thanks for your push! 
> 
> I hope they'll take it - after all it also makes their build system more
> consistent. 
> 

Patch has been accepted upstream with additional fixes as well. I will get them pulled down as soon as possible and included in the gentoo patchset.
Comment 14 Jory A. Pratt gentoo-dev 2010-03-09 02:43:07 UTC
I would rather not polute the build any further at this point, we have many patches that are currently needed for major things. This is fixed on trunk, I do not really see a need to backport this for 1.9.2 branch at this time for a single user.
Comment 15 Sergey 2010-03-23 21:45:53 UTC
as a practical solution for this bug is to set the  /var/.hg owner not to portage:portage and set FEATURES in /etc/make.conf

as follows:
FEATURES="${FEATURES} userpriv usersandbox" 

(other user* flags may need seen man make.conf)
I have the etc and other dirs under Mercurial, and /.hg folders owner is root.
After I have maid this changes (as the user portage has no access to /.hg) while  package building,and the the bug resolves.
Comment 16 Massimo Burcheri 2011-02-16 10:29:53 UTC
(In reply to comment #1)
> I would say this is definitely a side-effect of /var as mercurial repo, so
> you're probably the only person in the world who will run into this ;)

Your're right. I'm the second person in the world ( bug 354225), but having / as mercurial repo and xulrunner-1.9.2.13. Seems that upstream bugfix has not arrived here.
Thanks for the work-around: FEATURES="${FEATURES} userpriv usersandbox" 

Feel free to mark my bug as duplicate if different xulrunner version does not matter...
Comment 17 Jeroen Roovers (RETIRED) gentoo-dev 2011-02-17 20:32:04 UTC
*** Bug 354225 has been marked as a duplicate of this bug. ***