Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 558120 - dev-dotnet/nuget-2.8.3 - ACCESS VIOLATION creating dir /usr/share/.mono/keypairs
Summary: dev-dotnet/nuget-2.8.3 - ACCESS VIOLATION creating dir /usr/share/.mono/keypairs
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: dotnet project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-19 02:38 UTC by Juergen Rose
Modified: 2018-01-27 20:43 UTC (History)
4 users (show)

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


Attachments
emerge nuget output (nuget log,24.70 KB, text/plain)
2015-08-23 14:58 UTC, ViktoR
Details
still have 'ACCESS DENIED' problem (nuget log,25.51 KB, text/plain)
2015-08-23 15:27 UTC, ViktoR
Details
MAKEOPTS="-j1" did't help (emerge nuget.txt,26.17 KB, text/plain)
2015-08-30 14:58 UTC, ViktoR
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Juergen Rose 2015-08-19 02:38:54 UTC
'emerge nuget' fails with:

...
		Successfully installed 'Ninject 3.0.0.15'.
	Target BuildMono:
		Project "/var/tmp/portage/dev-dotnet/nuget-2.8.3/work/nuget-Release-2.8.3-MonoDevelop/src/CommandLine/CommandLine.csproj" (Build target(s)):
			Target PrepareForBuild:
				Configuration: Mono Release Platform: AnyCPU
			Target GenerateSatelliteAssemblies:
			No input files were specified for target GenerateSatelliteAssemblies, skipping.
			Target GenerateTargetFrameworkMonikerAttribute:
			Skipping target "GenerateTargetFrameworkMonikerAttribute" because its outputs are up-to-date.
			Target CoreCompile:
			Skipping target "CoreCompile" because its outputs are up-to-date.
		Done building project "/var/tmp/portage/dev-dotnet/nuget-2.8.3/work/nuget-Release-2.8.3-MonoDevelop/src/CommandLine/CommandLine.csproj".
Done building project "/var/tmp/portage/dev-dotnet/nuget-2.8.3/work/nuget-Release-2.8.3-MonoDevelop/Build/Build.proj".

Build succeeded.
	 0 Warning(s)
	 0 Error(s)

Time Elapsed 00:00:36.1100140
>>> Source compiled.
 [31;01m*[0m --------------------------- ACCESS VIOLATION SUMMARY ---------------------------
 [31;01m*[0m LOG FILE: "/var/log/sandbox/sandbox-15255.log"
 [31;01m*[0m 
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: mkdir
S: deny
P: /usr/share/.mono/keypairs
A: /usr/share/.mono/keypairs
R: /usr/share/.mono/keypairs
C: mono /var/tmp/portage/dev-dotnet/nuget-2.8.3/work/nuget-Release-2.8.3-MonoDevelop/Build/../src/CommandLine/bin/Release/NuGet.exe restore -source https://www.nuget.org/api/v2/ 

F: mkdir
S: deny
P: /usr/share/.mono/keypairs
A: /usr/share/.mono/keypairs
R: /usr/share/.mono/keypairs
C: mono /var/tmp/portage/dev-dotnet/nuget-2.8.3/work/nuget-Release-2.8.3-MonoDevelop/Build/../src/CommandLine/bin/Release/NuGet.exe restore -source https://www.nuget.org/api/v2/ 

...
F: mkdir
S: deny
P: /usr/share/.mono/keypairs
A: /usr/share/.mono/keypairs
R: /usr/share/.mono/keypairs
C: mono /var/tmp/portage/dev-dotnet/nuget-2.8.3/work/nuget-Release-2.8.3-MonoDevelop/Build/../src/CommandLine/bin/Release/NuGet.exe restore -source https://www.nuget.org/api/v2/ 

F: mkdir
S: deny
P: /usr/share/.mono/keypairs
A: /usr/share/.mono/keypairs
R: /usr/share/.mono/keypairs
C: mono /var/tmp/portage/dev-dotnet/nuget-2.8.3/work
Comment 1 ViktoR 2015-08-23 14:58:59 UTC
Created attachment 409936 [details]
emerge nuget output
Comment 2 ViktoR 2015-08-23 15:03:33 UTC
have similar problem (details in attachment)

seems like some script is executed by limited user.

bthw: tryed to create missed directory and update permissios by `chmod -R a+xrw` but it can't create any files
Comment 3 ViktoR 2015-08-23 15:27:17 UTC
Created attachment 409938 [details]
still have 'ACCESS DENIED' problem

i even created missed files:
# ls -l /root/.local/share/NuGet/Cache/
итого 0
-rw-rw-rw- 1 obratim obratim 0 авг 23 18:17 elmah.1.2.2.nupkg.tmp
-rw-rw-rw- 1 obratim obratim 0 авг 23 18:17 elmah.corelibrary.1.2.2.nupkg.tmp
-rw-rw-rw- 1 obratim obratim 0 авг 23 18:19 Microsoft.Web.Infrastructure.1.0.0.0.nupkg.tmp
-rw-rw-rw- 1 obratim obratim 0 авг 23 18:16 Moq.4.1.1309.0919.nupkg.tmp
-rw-rw-rw- 1 obratim obratim 0 авг 23 18:17 Ninject.2.2.1.4.nupkg.tmp
-rw-rw-rw- 1 obratim obratim 0 авг 23 18:19 Ninject.3.0.0.15.nupkg.tmp
-rw-rw-rw- 1 obratim obratim 0 авг 23 18:17 RouteMagic.1.2.nupkg.tmp
-rw-rw-rw- 1 obratim obratim 0 авг 23 18:19 WebActivatorEx.2.0.2.nupkg.tmp
-rw-rw-rw- 1 obratim obratim 0 авг 23 18:19 xunit.1.9.2.nupkg.tmp
-rw-rw-rw- 1 obratim obratim 0 авг 23 18:17 xunit.extensions.1.9.2.nupkg.tmp

but still have 'ACCESS DENIED' problem
Comment 4 ViktoR 2015-08-23 15:28:52 UTC
must be some i/o trouble, not system user permissions
Comment 5 Juergen Rose 2015-08-27 09:29:31 UTC
It seems to me that MAKEOPTS=-j1  helps to emerge nuget-2.8.3.
Comment 6 Cynede (RETIRED) gentoo-dev 2015-08-27 12:09:19 UTC
@ViktoR may you try with MAKEOPTS=-j1
Comment 7 Captain Crutches 2015-08-30 06:30:02 UTC
MAKEOPTS=-j1 did not work for me.  Same permission errors.

Portage 2.3.6-r9 (funtoo/1.0/linux-gnu/arch/x86-64bit, gcc-4.9.2, glibc-2.20-r2, 4.1.4-hardened x86_64)
=================================================================
System uname: Linux-4.1.4-hardened-x86_64-Intel-R-_Core-TM-_i7-3930K_CPU_@_3.20GHz-with-gentoo-2.2.0
KiB Mem:    65953952 total,  35340480 free
KiB Swap:    2283348 total,   2283348 free
Timestamp of tree: Unknown
ld GNU ld (Funtoo 2.25) 2.25.0
app-shells/bash:          4.3_p39-r1
dev-java/java-config:     2.2.0-r1000
dev-lang/perl:            5.22.0
dev-lang/python:          2.7.10-r1000, 3.3.6-r1000
dev-util/cmake:           3.2.3
sys-apps/baselayout:      2.2.0-r6
sys-apps/openrc:          0.12.4-r4
sys-apps/sandbox:         2.6-r2
sys-devel/autoconf:       2.13, 2.69-r1
sys-devel/automake:       1.11.6-r1, 1.13.4, 1.14.1, 1.15
sys-devel/binutils:       2.25-r2
sys-devel/gcc:            4.9.2-r2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.3-r2
sys-devel/make:           4.1-r1
sys-kernel/linux-headers: 4.0 (virtual/os-headers)
sys-libs/glibc:           2.20-r2
Repositories: gentoo steam-overlay sunrise x11 kde obs-studio-overlay mrueg maksbotan
Installed sets: @toolchain
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA Oracle-BCLA-JavaSE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=corei7 -O2 -pipe  -maes -fomit-frame-pointer -freorder-blocks-and-partition -fno-stack-protector -frename-registers -fweb -fgcse-las -fgcse-sm -fgcse-after-reload -fpredictive-commoning -fipa-pta -ftree-loop-ivcanon -ftree-loop-im -fivopts -ftracer -ftree-partial-pre -ftree-loop-distribution -ftree-loop-distribute-patterns -ftree-loop-if-convert -ftree-vectorize  "
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=corei7 -O2 -pipe  -maes -fomit-frame-pointer -freorder-blocks-and-partition -fno-stack-protector -frename-registers -fweb -fgcse-las -fgcse-sm -fgcse-after-reload -fpredictive-commoning -fipa-pta -ftree-loop-ivcanon -ftree-loop-im -fivopts -ftracer -ftree-partial-pre -ftree-loop-distribution -ftree-loop-distribute-patterns -ftree-loop-if-convert -ftree-vectorize  "
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr"
FFLAGS="-march=corei7 -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
INSTALL_MASK="/usr/lib/systemd/ /lib/systemd/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -fuse-linker-plugin -s -Wl,-z,now"
MAKEOPTS="-j13"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/steam-overlay /var/lib/layman/sunrise /var/lib/layman/x11 /var/lib/layman/kde /var/lib/layman/obs-studio-overlay /var/lib/layman/mrueg /var/lib/layman/maksbotan"
SYNC="git://github.com/funtoo/ports-2012.git"
SYNC_USER="root"
USE="X a52 aac acl alsa amd64 apng berkdb bluray bzip2 cdda cddb cdio cdr consolekit cracklib crypt cups cxx dbus dga dri dts dvd dvdr dvdread encode exif faac faad fbcon ffmpeg flac fortran gdbm gif gpm gstreamer gtk hardened ico iconv icu ieee1394 introspection ios ipod ipv6 jpeg jpeg2k kde lame libass libguess libmpeg2 mad matroska mjpeg mmx modules mp3 mpeg mtp mudflap multilib ncurses nls nptl nsplugin ogg openal opencl opengl openmp osmesa pam pax_kernel pcre pdf pic plasma png policykit postproc pppd pulseaudio python qt4 qt5 quicktime readline resolvconf scanner sdl semantic-desktop sndfile sse sse2 ssl svg taglib tcpd theora tiff truetype twolame udev unicode urandom usb v4l vorbis vpx wav wavpack webp win32codecs wmf x264 x265 xattr xinerama xml xtpax xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel ice1724 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 cgi cgid 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 authn_core authz_core socache_shmcb unixd" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64 pc" INPUT_DEVICES="evdev synaptics keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_ABIS="2.7 3.3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby19 ruby20 ruby21 ruby22" USERLAND="GNU" VIDEO_CARDS="fglrx" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, SYNC_UMASK
Comment 8 ViktoR 2015-08-30 14:58:43 UTC
Created attachment 410614 [details]
MAKEOPTS="-j1" did't help
Comment 9 Juergen Rose 2015-08-30 16:56:40 UTC
'MAKEOPTS=-j1 emerge -v1 nuget' worked here on several systems, where 'emerge -v1 nuget' failed.
Comment 10 Julien Sanchez archtester 2015-09-28 07:23:20 UTC
I had the same problem, using 'MAKEOPTS=-j1' fixed it.
Comment 11 Cynede (RETIRED) gentoo-dev 2015-09-30 12:37:19 UTC
please try with following change https://github.com/gentoo/dotnet/commit/d30863fb33c5ab0cdd7d587918a5c22eb9bc6203
Comment 12 Toralf Förster gentoo-dev 2015-10-21 12:47:15 UTC
(In reply to Julien Sanchez from comment #10)
> I had the same problem, using 'MAKEOPTS=-j1' fixed it.

same issue here at my tindrebox with -j1
Comment 13 ViktoR 2015-11-29 15:12:08 UTC
(In reply to Heather from comment #11)
> please try with following change
> https://github.com/gentoo/dotnet/commit/
> d30863fb33c5ab0cdd7d587918a5c22eb9bc6203

thanks alot, this workde!
but i had to add line 'addwrite "/root/.local"' to get it installed, maybe because of using 'calculate' overlay
Comment 14 Adam Feldman gentoo-dev 2016-01-22 16:26:13 UTC
(In reply to Heather from comment #11)
> please try with following change
> https://github.com/gentoo/dotnet/commit/
> d30863fb33c5ab0cdd7d587918a5c22eb9bc6203

I can also confirm that the ebuild from the dotnet repo works for me (where the one in the gentoo repo did not)
Comment 15 Juergen Rose 2016-03-19 17:50:47 UTC
I hit the issue again. Could it not be fixed in the standard portage tree?
Comment 16 Sumit Khanna 2016-03-30 16:10:59 UTC
Confirming. I had the same issue. I was also seeing the access violations for /usr/share/.mono/keypairs, however the -j1 worked?!
Comment 17 Pacho Ramos gentoo-dev 2017-12-13 17:07:19 UTC
# Mikhail Pukhlikov <cynede@gentoo.org> (20 Jul 2017)
# Old mono/dotnet packages (used on GNOME2 stack)
# also some deprecated forks used for monodevelop
# awhile they are very unstable they will live in dotnet overlay
gnome-extra/docky
dev-dotnet/gnome-desktop-sharp
dev-dotnet/gtksourceview-sharp
dev-dotnet/rsvg-sharp
dev-dotnet/vte-sharp
dev-dotnet/wnck-sharp
dev-dotnet/xdt-for-monodevelop
dev-dotnet/nuget
dev-dotnet/referenceassemblies-pcl


Maybe it's time to finally treeclean this
Comment 18 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2018-01-27 20:43:18 UTC
Gone