Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 358471 - >=dev-lang/mono-2.10.1-r1: crash during emerge on hardened-x86
Summary: >=dev-lang/mono-2.10.1-r1: crash during emerge on hardened-x86
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
: 377435 428010 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-03-11 22:03 UTC by Jeff Hubbard
Modified: 2018-10-12 01:19 UTC (History)
7 users (show)

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


Attachments
Build log from March 11, 2011 (build.log,941.01 KB, text/plain)
2011-03-11 22:06 UTC, Jeff Hubbard
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff Hubbard 2011-03-11 22:03:19 UTC
When I attempt to build dev-lang/mono-2.10.1-r1 on hardened-x86, I get the following error message during emerge:

../../mcs/constant.cs(1608,77): error CS0584: Internal compiler error: Missing constant conversion between `ulong' and `float'
../../mcs/constant.cs(1608,68): error CS0019: Operator `||' cannot be applied to operands of type `bool' and `object'
../../mcs/constant.cs(1731,77): error CS0584: Internal compiler error: Missing constant conversion between `ulong' and `double'
../../mcs/constant.cs(1731,68): error CS0019: Operator `||' cannot be applied to operands of type `bool' and `object'
Compilation failed: 4 error(s), 0 warnings
make[8]: *** [../../class/lib/net_2_0/Mono.CSharp.dll] Error 1
make[8]: Leaving directory `/var/tmp/portage/dev-lang/mono-2.10.1-r1/work/mono-2.10.1/mcs/class/Mono.CSharp'
make[7]: *** [do-all] Error 2
make[7]: Leaving directory `/var/tmp/portage/dev-lang/mono-2.10.1-r1/work/mono-2.10.1/mcs/class/Mono.CSharp'
make[6]: *** [all-recursive] Error 1
make[6]: Leaving directory `/var/tmp/portage/dev-lang/mono-2.10.1-r1/work/mono-2.10.1/mcs/class'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/var/tmp/portage/dev-lang/mono-2.10.1-r1/work/mono-2.10.1/mcs'
make[4]: *** [profile-do--net_2_0--all] Error 2
make[4]: Leaving directory `/var/tmp/portage/dev-lang/mono-2.10.1-r1/work/mono-2.10.1/mcs'
make[3]: *** [profiles-do--all] Error 2
make[3]: Leaving directory `/var/tmp/portage/dev-lang/mono-2.10.1-r1/work/mono-2.10.1/mcs'
make[2]: *** [all-local] Error 2
make[2]: Leaving directory `/var/tmp/portage/dev-lang/mono-2.10.1-r1/work/mono-2.10.1/runtime'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-lang/mono-2.10.1-r1/work/mono-2.10.1'
make: *** [all] Error 2
emake failed


Reproducible: Always

Steps to Reproduce:
1. emerge =dev-lang/mono-2.10.1-r1
Actual Results:  
The build fails.

Expected Results:  
A successful build.

Portage 2.1.9.41 (hardened/linux/x86, gcc-4.5.2, glibc-2.13-r1, 2.6.37-hardened-r4 i686)
=================================================================
System uname: Linux-2.6.37-hardened-r4-i686-AMD_Athlon-tm-_XP_2500+-with-gentoo-2.0.1
Timestamp of tree: Sat, 05 Mar 2011 11:45:01 +0000
app-shells/bash:     4.1_p10
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.7.1-r1
dev-util/cmake:      2.8.4
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.7.0
sys-apps/sandbox:    2.5
sys-devel/autoconf:  2.68
sys-devel/automake:  1.10.3, 1.11.1
sys-devel/binutils:  2.21
sys-devel/gcc:       4.5.2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.4-r1
sys-devel/make:      3.82
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -fomit-frame-pointer -msse -mmmx -m3dnow"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -pipe -fomit-frame-pointer -msse -mmmx -m3dnow"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://gentoo.mirrors.tds.net/gentoo http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ ftp://ftp.wallawalla.edu/pub/mirrors/ftp.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_US"
MAKEOPTS="-j2"
PKGDIR="/usr/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="/var/lib/layman/sunrise /var/lib/layman/openrc /var/lib/layman/php /var/lib/layman/dotnet /var/lib/layman/tante /var/lib/layman/poly-c /var/lib/layman/java-overlay /usr/local/portage"
SYNC="rsync://rsync26.us.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X acl bash-completion bzip2 cli cracklib crypt cxx dri gpm hardened iconv ipv6 jpeg jpeg2k mmx mmxext modules mudflap ncurses nls nptl nptlonly openmp pam pcre pic pppd readline session sse ssl sysfs tcpd truetype unicode urandom vhosts x86 xattr xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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 ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 intel mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa via vmware nouveau" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jeff Hubbard 2011-03-11 22:06:28 UTC
Created attachment 265591 [details]
Build log from March 11, 2011
Comment 2 Pacho Ramos gentoo-dev 2011-03-12 10:29:13 UTC
(In reply to comment #0)
> Timestamp of tree: Sat, 05 Mar 2011 11:45:01 +0000

Please re-run emerge --sync and retry
Comment 3 Jeff Hubbard 2011-03-12 16:59:27 UTC
I get the exact same crash.
Comment 4 Pacho Ramos gentoo-dev 2011-03-12 17:00:23 UTC
$ grep pax /usr/portage/dev-lang/mono/mono-2.10.1-r1.ebuild 

output please?
Comment 5 Pacho Ramos gentoo-dev 2011-03-12 17:01:46 UTC
Also, build.log is missing "Repository" entry, that should be there with portage-2.1.9.42
Comment 6 Jeff Hubbard 2011-03-12 17:09:24 UTC
[lord2800@dev] ~ $ grep pax /usr/portage/dev-lang/mono/mono-2.10.1-r1.ebuild
inherit linux-info mono eutils flag-o-matic multilib go-mono pax-utils
        hardened? ( sys-apps/paxctl )"
        # we need to sed in the paxctl -mr in the runtime/mono-wrapper.in so it don't
                sed '/exec/ i\paxctl -mr "$r/@mono_runtime@"' -i "${S}"/runtime/mono-wrapper.in

[lord2800@dev] ~ $ grep Repository /var/tmp/portage/dev-lang/mono-2.10.1-r1/temp/build.log
 * Repository: gentoo

I updated to .42 last night, that's why that particular piece of info was missing.
Comment 7 Pacho Ramos gentoo-dev 2011-03-12 21:03:00 UTC
Not sure why pax -mr is not enough for you :-(
Comment 8 Jeff Hubbard 2011-03-26 20:01:16 UTC
So out of curiosity, I switched from a hardened kernel to the standard kernel, and the exact same thing happens. Any ideas?
Comment 9 Magnus Granberg gentoo-dev 2011-08-02 22:58:33 UTC
*** Bug 377435 has been marked as a duplicate of this bug. ***
Comment 10 Juergen Rose 2011-08-03 10:03:40 UTC
Are there any news since March how to remove this issue?
Comment 11 Juergen Rose 2011-08-03 10:08:21 UTC
I have the same issue with dev-lang/mono-2.10.2-r1, the build.log and further information is at Bug 377435.
Comment 12 Pacho Ramos gentoo-dev 2011-08-27 19:01:07 UTC
Still valid with 2.10.4?
Comment 13 Anton Podavalov 2011-09-13 09:22:39 UTC
(In reply to comment #12)
> Still valid with 2.10.4?

Still valid with 2.10.5 too. I have this problem too.
Comment 14 Pacho Ramos gentoo-dev 2011-09-13 11:10:02 UTC
(In reply to comment #13)
> (In reply to comment #12)
> > Still valid with 2.10.4?
> 
> Still valid with 2.10.5 too. I have this problem too.

I guess you have enabled "pax_kernel" USE, no?
Comment 15 Anton Podavalov 2011-09-13 14:00:12 UTC
(In reply to comment #12)
> Still valid with 2.10.4?

Still valid with 2.10.5 too. I have this problem too.(In reply to comment #14)
> (In reply to comment #13)
> > (In reply to comment #12)
> > > Still valid with 2.10.4?
> > 
> > Still valid with 2.10.5 too. I have this problem too.
> 
> I guess you have enabled "pax_kernel" USE, no?

Yes, this is enabled. What should do?
Comment 16 Alex Efros 2012-02-11 10:17:05 UTC
I've exactly same issue, both on latest stable and unstable (2.10.5 and 2.10.8).

Using non-hardened gcc (i686-pc-linux-gnu-4.5.3-vanilla) I was able to build it (2.10.5) and looks like it works ok (at least it able to run flacuda).
Comment 17 Alex Efros 2012-02-17 15:03:15 UTC
I've no idea what was changed, maybe ebuild for 2.10.5 was updated in portage in last few days, but several days ago I was unable to build on _amd64_ neither 2.10.5 nor 2.10.8, neither using hardened nor vanilla gcc (my previous comment about successful build of 2.10.5 using vanilla gcc was on _x86_). But today I was able to build 2.10.5 on amd64 using hardened gcc. Tried several times - it works. :)
Comment 18 Pacho Ramos gentoo-dev 2012-07-25 19:22:38 UTC
*** Bug 428010 has been marked as a duplicate of this bug. ***
Comment 19 Rick Farina (Zero_Chaos) gentoo-dev 2012-10-30 01:31:52 UTC
still valid on dev-lang/mono-2.10.9-r2
Comment 20 Pacho Ramos gentoo-dev 2013-05-24 18:20:58 UTC
Still failing with mono-3.0.7? :/ 

If anyone knows how to solve or workaround this, please explain :|
Comment 21 Robert 2014-10-22 09:34:17 UTC
I encountered this bug emerging dev-lang/mono-2.10.9-r2::gentoo. My system currently uses the default/linux/x86/13.0/desktop/kde/systemd profile but initially used hardened when I set it up.

I got around the problem by installing the unstable Mono 3.2.8 which doesn't cause gcc to crash.

Here's the output of  "emerge --info '=dev-lang/mono-2.10.9-r2::gentoo'":
Portage 2.2.8-r2 (default/linux/x86/13.0/desktop/kde/systemd, gcc-4.7.3, glibc-2.19-r1, 3.0.4 i686)
=================================================================
System Settings
=================================================================
System uname: Linux-3.0.4-i686-Intel-R-_Atom-TM-_CPU_N270_@_1.60GHz-with-gentoo-2.2
KiB Mem: 1022272 total, 117180 free
KiB Swap: 0 total, 0 free
Timestamp of tree: Sun, 12 Oct 2014 19:15:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash: 4.2_p53
dev-lang/perl: 5.18.2-r1
dev-lang/python: 2.7.7, 3.3.5-r1, 3.4.1
dev-util/cmake: 2.8.12.2-r1
dev-util/pkgconfig: 0.28-r1
sys-apps/baselayout: 2.2
sys-apps/openrc: 0.12.4
sys-apps/sandbox: 2.6-r1
sys-devel/autoconf: 2.69
sys-devel/automake: 1.12.6, 1.13.4
sys-devel/binutils: 2.23.2
sys-devel/gcc: 4.7.3-r1
sys-devel/gcc-config: 1.7.3
sys-devel/libtool: 2.4.2-r1
sys-devel/make: 4.0-r1
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc: 2.19-r1
Repositories: gentoo
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=atom -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=atom -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=i686 -pipe"
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 userpriv usersandbox usersync"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ ftp://gentoo.llarian.net/pub/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="C"
LC_ALL="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi aim alsa bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cli cracklib crypt cups cxx dbus declarative djvu dri dts dvd dvdr emacs emboss encode epub exif fam firefox flac fortran gdbm gif git glamor gpm hardened iconv icq imap ipv6 javascript jpeg kde kipi kontact lcms ldap libnotify mad mng modules mono mp3 mp4 mpeg ncurses nepomuk nls nntp nptl ogg opengl openmp oscar pam pango pcre pdf phonon plasma png policykit posix ppds qt qt3support qt4 readline rss ruby samba sasl sdl semantic-desktop session speex spell ssl startup-notification svg svga systemd tcpd theora tiff truetype udev udisks unicode upower usb vorbis wifi wxwidgets x264 x86 xcb xcomposite xinerama xml xscreensaver xv xvid yahoo zlib" ABI_X86="32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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" 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" 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" INPUT_DEVICES="evdev synaptics" 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_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="intel i915" 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, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 22 Magnus Granberg gentoo-dev 2018-10-12 01:19:33 UTC
If still a problem open new bug.