Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 622148 - xml-commons-resolver-1.2-r1 can not be emerged with os::commit_memory error (blocks update)
Summary: xml-commons-resolver-1.2-r1 can not be emerged with os::commit_memory error (...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: AMD64 Linux
: Normal critical
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-18 17:02 UTC by Plüss Roland
Modified: 2017-06-18 17:41 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Plüss Roland 2017-06-18 17:02:24 UTC
Trying to emerge on a GRSEC system results in build failure and blocking system upgrade:



>>> Emerging (1 of 2) dev-java/xml-commons-resolver-1.2-r1::gentoo
 * xml-commons-resolver-1.2.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                               [ ok ]
 * Using: icedtea-bin-8
>>> Unpacking source...
>>> Unpacking xml-commons-resolver-1.2.tar.gz to /var/tmp/portage/dev-java/xml-commons-resolver-1.2-r1/work
>>> Source unpacked in /var/tmp/portage/dev-java/xml-commons-resolver-1.2-r1/work
>>> Preparing source in /var/tmp/portage/dev-java/xml-commons-resolver-1.2-r1/work/xml-commons-resolver-1.2 ...
./resolver.jar
'src/org/apache/xml/resolver/tests/BasicResolverTests.java' wurde entfernt
'src/org/apache/xml/resolver/tests/delegate-system.xml' wurde entfernt
'src/org/apache/xml/resolver/tests/tr9401.xml' wurde entfernt
'src/org/apache/xml/resolver/tests/catalog.xml' wurde entfernt
removed directory 'src/org/apache/xml/resolver/tests'
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-java/xml-commons-resolver-1.2-r1/work/xml-commons-resolver-1.2 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-java/xml-commons-resolver-1.2-r1/work/xml-commons-resolver-1.2 ...
 * Compiling ...
OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x0000039921000000, 2555904, 1) failed; error='Operation not permitted' (errno=1)
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 2555904 bytes for committing reserved memory.
# An error report file with more information is saved as:
# /var/tmp/portage/dev-java/xml-commons-resolver-1.2-r1/work/xml-commons-resolver-1.2/hs_err_pid2735.log
 * ERROR: dev-java/xml-commons-resolver-1.2-r1::gentoo failed (compile phase):
 *   ejavac failed
 * 
 * Call stack:
 *     ebuild.sh, line  115:  Called src_compile
 *   environment, line 3791:  Called java-pkg-simple_src_compile
 *   environment, line 1679:  Called ejavac '-d' 'target/classes' '-encoding' 'UTF-8' '@sources.lst'
 *   environment, line  720:  Called die
 * The specific snippet of code:
 *       ${compiler_executable} ${javac_args} "${@}" || die "ejavac failed"
 * 
 * If you need support, post the output of `emerge --info '=dev-java/xml-commons-resolver-1.2-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-java/xml-commons-resolver-1.2-r1::gentoo'`.
!!! When you file a bug report, please include the following information:
GENTOO_VM=icedtea-bin-8  CLASSPATH="" JAVA_HOME="/opt/icedtea-bin-3.4.0"
JAVACFLAGS="-source 1.6 -target 1.6" COMPILER=""
and of course, the output of emerge --info =xml-commons-resolver-1.2
 * The complete build log is located at '/var/tmp/portage/dev-java/xml-commons-resolver-1.2-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-java/xml-commons-resolver-1.2-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-java/xml-commons-resolver-1.2-r1/work/xml-commons-resolver-1.2'
 * S: '/var/tmp/portage/dev-java/xml-commons-resolver-1.2-r1/work/xml-commons-resolver-1.2'

>>> Failed to emerge dev-java/xml-commons-resolver-1.2-r1, Log file:

>>>  '/var/tmp/portage/dev-java/xml-commons-resolver-1.2-r1/temp/build.log'

 * Messages for package dev-java/xml-commons-resolver-1.2-r1:

 * ERROR: dev-java/xml-commons-resolver-1.2-r1::gentoo failed (compile phase):
 *   ejavac failed
 * 
 * Call stack:
 *     ebuild.sh, line  115:  Called src_compile
 *   environment, line 3791:  Called java-pkg-simple_src_compile
 *   environment, line 1679:  Called ejavac '-d' 'target/classes' '-encoding' 'UTF-8' '@sources.lst'
 *   environment, line  720:  Called die
 * The specific snippet of code:
 *       ${compiler_executable} ${javac_args} "${@}" || die "ejavac failed"
 * 
 * If you need support, post the output of `emerge --info '=dev-java/xml-commons-resolver-1.2-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-java/xml-commons-resolver-1.2-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-java/xml-commons-resolver-1.2-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-java/xml-commons-resolver-1.2-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-java/xml-commons-resolver-1.2-r1/work/xml-commons-resolver-1.2'
 * S: '/var/tmp/portage/dev-java/xml-commons-resolver-1.2-r1/work/xml-commons-resolver-1.2'



According to Internets this is due to java being somehow killed by GRSEC. This problem exists only with this package. All other packages build and run fine on the system.



emerge --info =xml-commons-resolver-1.2 :

Portage 2.3.5 (python 3.4.5-final-0, hardened/linux/amd64, gcc-5.4.0-vanilla, glibc-2.23-r3, 3.10.1-hardened-r1 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.10.1-hardened-r1-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_3600+-with-gentoo-2.3
KiB Swap:    4602032 total,   3784516 free
Timestamp of repository gentoo: Sun, 18 Jun 2017 01:30:01 +0000
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.26.1 p1.0) 2.26.1
app-shells/bash:          4.3_p48-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.1-r2::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.26.3::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.15-r2::gentoo
sys-devel/binutils:       2.26.1::gentoo, 2.28-r2::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 Oracle-BCLA-JavaSE RAR"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -fforce-addr"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openfire/resources/security/ /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.0/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=athlon64 -O2 -pipe -fforce-addr"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -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 usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mir1.ovh.net/gentoo-distfiles/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://mirror.switch.ch/mirror/gentoo/ http://ftp.lug.ro/gentoo/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://mirror.pudas.net/gentoo http://pandemonium.tiscali.de/pub/gentoo/"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="7zip acl acpi amd64 apache2 authdaemond bash-completion berkdb bzip2 cacert caps cdr cgi cli cracklib crypt ctype cups cxx dlz dri dvd dvdr enscript exif expat fam fontconfig foomaticdb ftp gd gdbm geoip gif hardened hpijs iconv icq imagemagick imap imlib ipv6 jabber javascript jbig jpeg jpeg2k justify lcsm ldap libcaca lm_sensors logrotate mbox mime mng modules mpeg msn multilib mxdatetime ncurses new-hpcups nls nptl ogg openldap openmp openssl oscar pam pax_kernel pcre pdf perl php pie png posix postgres ppds python readline samba sasl scanner seccomp session slang ssl ssp stream subversion svg tcpd theora threads tiff truetype unicode urandom usb vhosts vorbis xattr xml xtpax zlib" ABI_X86="64" 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" 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 cgi cgid 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 slotmem_shm authn_core authz_core unixd socache_shmcb slotmem_shm authn_core authz_core unixd socache_shmcb" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en de" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21 ruby22" USERLAND="GNU" 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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Plüss Roland 2017-06-18 17:41:55 UTC
This package is a dependency of dev-java/xerces-2.11.0:2/2::gentoo ... This is bad... reeeeeeal bad... so many use this package. OpenFire for example can not be updated any more bringing down the entire service. Downgrade to an older version also does not work.

Voting for critical since this puts a huge blocker into anything using XML on Java.