Hi, on a virtual server with 1GB of RAM only and one CPU I twice received out-of-memory error. The first time (stacktrace not shown) it was "Virtual memory exhausted". Then I ran ebuild ... install qmerge" and got the error and stacktrace below. I think also in the first case it was also failing in /usr/lib64/python2.7/site-packages/portage/dbapi/_MergeProcess.py . I think the code File "/usr/lib64/python2.7/site-packages/_emerge/AsynchronousTask.py", line 83, in wait self.scheduler.run_until_complete(self.async_wait()) should maybe respect MAKEOPTS=-j1 so that not too many childerns are spawned? If that is the case why memory is exhausted ... >>> Completed installing glibc-2.27-r6 into /var/tmp/portage/sys-libs/glibc-2.27-r6/image/ * Final size of build directory: 409572 KiB (399.9 MiB) * Final size of installed tree: 53856 KiB ( 52.5 MiB) making executable: /usr/lib64/libc.so making executable: /usr/lib64/libm.so making executable: /usr/lib64/libpthread.so vps100 ~ # ebuild /usr/portage/sys-libs/glibc/glibc-2.27-r6.ebuild qmerge >>> Existing ${T}/environment for 'glibc-2.27-r6' will be sourced. Run >>> 'clean' to start with a fresh environment. * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * checking 1420 files for package collisions 420 files remaining ... * This package will overwrite one or more files that may belong to other * packages (see list below). You can use a command such as `portageq * owners / <filename>` to identify the installed package that owns a * file. If portageq reports that only one package owns a file then do * NOT file a bug report. A bug report is only useful if it identifies at * least two or more packages that are known to install the same file(s). * If a collision occurs and you can not explain where the file came from * then you should simply ignore the collision since there is not enough * information to determine if a real problem exists. Please do NOT file * a bug report at https://bugs.gentoo.org/ unless you report exactly * which two packages install the same file(s). See * https://wiki.gentoo.org/wiki/Knowledge_Base:Blockers for tips on how * to solve the problem. And once again, please do NOT file a bug report * unless you have completely understood the above message. * * Detected file collision(s): * * /usr/share/i18n/charmaps/IBM858.gz * /usr/share/i18n/locales/tpi_PG * /usr/share/i18n/locales/en_SC * /usr/share/i18n/locales/to_TO * /usr/share/i18n/locales/i18n_ctype * /usr/share/i18n/locales/kab_DZ * /usr/share/i18n/locales/yuw_PG * /usr/share/i18n/locales/mjw_IN * /usr/share/i18n/locales/sm_WS * /usr/share/i18n/locales/bi_VU * /usr/share/i18n/locales/agr_PE * /usr/share/i18n/locales/miq_NI * /usr/share/i18n/locales/az_IR * /usr/share/i18n/locales/bho_NP * /usr/share/i18n/locales/mfe_MU * /usr/share/i18n/locales/hif_FJ * /usr/share/i18n/locales/cns11643_stroke * /usr/share/i18n/locales/shn_MM * /usr/share/i18n/locales/ca_ES@valencia * /usr/share/i18n/locales/mai_NP * /usr/share/doc/glibc-2.27-r6/NEWS.bz2 * /usr/share/doc/glibc-2.27-r6/README.bz2 * /usr/share/doc/glibc-2.27-r6/ChangeLog.bz2 * /usr/share/doc/glibc-2.27-r6/ChangeLog.old/ChangeLog.ports-aarch64.bz2 * /usr/share/doc/glibc-2.27-r6/ChangeLog.old/ChangeLog.10.bz2 * /usr/share/doc/glibc-2.27-r6/ChangeLog.old/ChangeLog.1.bz2 * /usr/share/doc/glibc-2.27-r6/ChangeLog.old/ChangeLog.17.bz2 * /usr/share/doc/glibc-2.27-r6/ChangeLog.old/ChangeLog.14.bz2 * /usr/share/doc/glibc-2.27-r6/ChangeLog.old/ChangeLog.ports-aix.bz2 * /usr/share/doc/glibc-2.27-r6/ChangeLog.old/ChangeLog.nptl.bz2 * /usr/share/doc/glibc-2.27-r6/ChangeLog.old/ChangeLog.5.bz2 * /usr/share/doc/glibc-2.27-r6/ChangeLog.old/ChangeLog.4.bz2 * /usr/share/doc/glibc-2.27-r6/ChangeLog.old/ChangeLog.13.bz2 * /usr/share/doc/glibc-2.27-r6/ChangeLog.old/ChangeLog.ports-microblaze.bz2 * /usr/share/doc/glibc-2.27-r6/ChangeLog.old/ChangeLog.15.bz2 * /usr/share/doc/glibc-2.27-r6/ChangeLog.old/ChangeLog.ports-alpha.bz2 * /usr/share/doc/glibc-2.27-r6/ChangeLog.old/ChangeLog.ports-arm.bz2 * /usr/share/doc/glibc-2.27-r6/ChangeLog.old/ChangeLog.8.bz2 * /usr/share/doc/glibc-2.27-r6/ChangeLog.old/ChangeLog.localedata.bz2 * /usr/share/doc/glibc-2.27-r6/ChangeLog.old/ChangeLog.ports-m68k.bz2 * /usr/share/doc/glibc-2.27-r6/ChangeLog.old/ChangeLog.16.bz2 * /usr/share/doc/glibc-2.27-r6/ChangeLog.old/ChangeLog.ports-am33.bz2 * /usr/share/doc/glibc-2.27-r6/ChangeLog.old/ChangeLog.libidn.bz2 * /usr/share/doc/glibc-2.27-r6/ChangeLog.old/ChangeLog.18.bz2 * /usr/share/doc/glibc-2.27-r6/ChangeLog.old/ChangeLog.ports-tile.bz2 * /usr/share/doc/glibc-2.27-r6/ChangeLog.old/ChangeLog.9.bz2 * /usr/share/doc/glibc-2.27-r6/ChangeLog.old/ChangeLog.ports-powerpc.bz2 * /usr/share/doc/glibc-2.27-r6/ChangeLog.old/ChangeLog.ports.bz2 * /usr/share/doc/glibc-2.27-r6/ChangeLog.old/ChangeLog.ports-hppa.bz2 * /usr/share/doc/glibc-2.27-r6/ChangeLog.old/ChangeLog.7.bz2 * /usr/share/doc/glibc-2.27-r6/ChangeLog.old/ChangeLog.ports-linux-generic.bz2 * /usr/share/doc/glibc-2.27-r6/ChangeLog.old/ChangeLog.12.bz2 * /usr/share/doc/glibc-2.27-r6/ChangeLog.old/ChangeLog.3.bz2 * /usr/share/doc/glibc-2.27-r6/ChangeLog.old/ChangeLog.nptl_db.bz2 * /usr/share/doc/glibc-2.27-r6/ChangeLog.old/ChangeLog.ports-ia64.bz2 * /usr/share/doc/glibc-2.27-r6/ChangeLog.old/ChangeLog.2.bz2 * /usr/share/doc/glibc-2.27-r6/ChangeLog.old/ChangeLog.11.bz2 * /usr/share/doc/glibc-2.27-r6/ChangeLog.old/ChangeLog.ports-cris.bz2 * /usr/share/doc/glibc-2.27-r6/ChangeLog.old/ChangeLog.6.bz2 * /usr/share/doc/glibc-2.27-r6/ChangeLog.old/ChangeLog.ports-mips.bz2 * /usr/include/bits/uio-ext.h * /usr/include/bits/sigevent-consts.h * /usr/include/bits/cpu-set.h * /usr/include/bits/ptrace-shared.h * /usr/include/bits/_G_config.h * /usr/include/bits/getopt_core.h * /usr/include/bits/getopt_ext.h * /usr/include/bits/siginfo-consts-arch.h * /usr/include/bits/siginfo-consts.h * /usr/include/bits/floatn.h * /usr/include/bits/string_fortified.h * /usr/include/bits/stdint-intn.h * /usr/include/bits/thread-shared-types.h * /usr/include/bits/mman-shared.h * /usr/include/bits/pthreadtypes-arch.h * /usr/include/bits/stdint-uintn.h * /usr/include/bits/mathcalls-helper-functions.h * /usr/include/bits/uio_lim.h * /usr/include/bits/signum-generic.h * /usr/include/bits/wctype-wchar.h * /usr/include/bits/siginfo-arch.h * /usr/include/bits/getopt_posix.h * /usr/include/bits/libio.h * /usr/include/bits/ss_flags.h * /usr/include/bits/floatn-common.h * /usr/include/bits/types/__FILE.h * /usr/include/bits/types/struct_sigstack.h * /usr/include/bits/types/wint_t.h * /usr/include/bits/types/sigval_t.h * /usr/include/bits/types/locale_t.h * /usr/include/bits/types/sig_atomic_t.h * /usr/include/bits/types/struct_iovec.h * /usr/include/bits/types/struct_rusage.h * /usr/include/bits/types/res_state.h * /usr/include/bits/types/sigset_t.h * /usr/include/bits/types/sigevent_t.h * /usr/include/bits/types/__mbstate_t.h * /usr/include/bits/types/mbstate_t.h * /usr/include/bits/types/stack_t.h * /usr/include/bits/types/FILE.h * /usr/include/bits/types/__sigset_t.h * /usr/include/bits/types/siginfo_t.h * /usr/include/bits/types/__sigval_t.h * /usr/include/bits/types/__locale_t.h * /usr/lib64/glibc-2.27/libm-2.27.a * /usr/lib64/gconv/IBM858.so * /lib64/libnss_db-2.27.so * /lib64/libcrypt-2.27.so * /lib64/libutil-2.27.so * /lib64/libnss_compat-2.27.so * /lib64/libpthread-2.27.so * /lib64/librt-2.27.so * /lib64/libm-2.27.so * /lib64/libresolv-2.27.so * /lib64/libdl-2.27.so * /lib64/libcidn-2.27.so * /lib64/libnsl-2.27.so * /lib64/libanl-2.27.so * /lib64/ld-2.27.so * /lib64/libmvec-2.27.so * /lib64/libnss_hesiod-2.27.so * /lib64/libBrokenLocale-2.27.so * /lib64/libc-2.27.so * /lib64/libnss_files-2.27.so * /lib64/libnss_dns-2.27.so * * Searching all installed packages for file collisions... * * Press Ctrl-C to Stop * * None of the installed packages claim the file(s). * * Package 'sys-libs/glibc-2.27-r6' merged despite file collisions. If * necessary, refer to your elog messages for the whole content of the * above message. >>> Merging sys-libs/glibc-2.27-r6 to / Traceback (most recent call last): File "/usr/lib64/python2.7/site-packages/portage/dbapi/_MergeProcess.py", line 234, in _spawn prev_mtimes=self.prev_mtimes, counter=counter) File "/usr/lib64/python2.7/site-packages/portage/dbapi/vartree.py", line 1676, in wrapper return f(self, *args, **kwargs) File "/usr/lib64/python2.7/site-packages/portage/dbapi/vartree.py", line 5153, in merge counter=counter) File "/usr/lib64/python2.7/site-packages/portage/dbapi/vartree.py", line 4264, in treewalk a = phase.wait() File "/usr/lib64/python2.7/site-packages/_emerge/AsynchronousTask.py", line 83, in wait self.scheduler.run_until_complete(self.async_wait()) File "/usr/lib64/python2.7/site-packages/portage/util/_eventloop/EventLoop.py", line 831, in run_until_complete self.iteration() File "/usr/lib64/python2.7/site-packages/portage/util/_eventloop/EventLoop.py", line 285, in iteration return self._iteration(*args) File "/usr/lib64/python2.7/site-packages/portage/util/_eventloop/EventLoop.py", line 306, in _iteration if self._run_timeouts(): File "/usr/lib64/python2.7/site-packages/portage/util/_eventloop/EventLoop.py", line 601, in _run_timeouts if self._run_idle_callbacks(): File "/usr/lib64/python2.7/site-packages/portage/util/_eventloop/EventLoop.py", line 560, in _run_idle_callbacks if x._callback(*x._args): File "/usr/lib64/python2.7/site-packages/portage/util/_eventloop/EventLoop.py", line 101, in __call__ self._callback(*self._args) File "/usr/lib64/python2.7/site-packages/_emerge/AsynchronousTask.py", line 84, in wait self._wait_hook() File "/usr/lib64/python2.7/site-packages/_emerge/AsynchronousTask.py", line 195, in _wait_hook self._exit_listener_stack.pop()(self) File "/usr/lib64/python2.7/site-packages/_emerge/EbuildPhase.py", line 163, in _lock_exit self._start_ebuild() File "/usr/lib64/python2.7/site-packages/_emerge/EbuildPhase.py", line 200, in _start_ebuild self._start_task(ebuild_process, self._ebuild_exit) File "/usr/lib64/python2.7/site-packages/_emerge/CompositeTask.py", line 112, in _start_task task.start() File "/usr/lib64/python2.7/site-packages/_emerge/AsynchronousTask.py", line 30, in start self._start() File "/usr/lib64/python2.7/site-packages/_emerge/AbstractEbuildProcess.py", line 167, in _start self._start_post_builddir_lock(start_ipc_daemon=start_ipc_daemon) File "/usr/lib64/python2.7/site-packages/_emerge/AbstractEbuildProcess.py", line 197, in _start_post_builddir_lock SpawnProcess._start(self) File "/usr/lib64/python2.7/site-packages/_emerge/SpawnProcess.py", line 112, in _start retval = self._spawn(self.args, **kwargs) File "/usr/lib64/python2.7/site-packages/_emerge/EbuildProcess.py", line 25, in _spawn actionmap=actionmap, **kwargs) File "/usr/lib64/python2.7/site-packages/portage/package/ebuild/doebuild.py", line 179, in _doebuild_spawn return spawn(cmd, settings, **kwargs) File "/usr/lib64/python2.7/site-packages/portage/package/ebuild/doebuild.py", line 1663, in spawn **keywords) File "/usr/lib64/python2.7/site-packages/portage/process.py", line 140, in spawn_bash return spawn(args, opt_name=opt_name, **keywords) File "/usr/lib64/python2.7/site-packages/portage/process.py", line 341, in spawn pid = os.fork() File "/usr/lib64/python2.7/site-packages/portage/__init__.py", line 250, in __call__ rval = self._func(*wrapped_args, **wrapped_kwargs) OSError: [Errno 12] Cannot allocate memory #
# emerge --info setlocale: unsupported locale setting setlocale: unsupported locale setting Portage 2.3.51 (python 2.7.14-final-0, default/linux/amd64/17.0/no-multilib/hardened, gcc-7.3.0, glibc-2.25-r11, 4.17.4 x86_64) ================================================================= System uname: Linux-4.17.4-x86_64-QEMU_Virtual_CPU_version_0.14-with-gentoo-2.6 KiB Mem: 1017540 total, 573476 free KiB Swap: 556028 total, 51332 free Timestamp of repository gentoo: Tue, 15 Jan 2019 16:30:01 +0000 Head commit of repository gentoo: 930012966b52a97d77c8b99cdf783136d8c2577f sh bash 4.4_p12 ld GNU ld (Gentoo 2.29.1 p3) 2.29.1 app-shells/bash: 4.4_p12::gentoo dev-lang/perl: 5.24.3-r1::gentoo dev-lang/python: 2.7.14-r1::gentoo, 3.4.8::gentoo, 3.5.5::gentoo, 3.6.5::gentoo dev-util/cmake: 3.9.6::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.6-r1::gentoo sys-apps/openrc: 0.34.11::gentoo sys-apps/sandbox: 2.13::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r4::gentoo sys-devel/automake: 1.11.6::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15.1-r2::gentoo sys-devel/binutils: 2.29.1-r1::gentoo, 2.30-r4::gentoo sys-devel/gcc: 7.3.0-r3::gentoo sys-devel/gcc-config: 1.8-r1::gentoo sys-devel/libtool: 2.4.6-r3::gentoo sys-devel/make: 4.2.1-r4::gentoo sys-kernel/linux-headers: 4.14-r1::gentoo (virtual/os-headers) sys-libs/glibc: 2.25-r11::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-verify-jobs: 1 sync-rsync-verify-metamanifest: yes sync-rsync-extra-opts: sync-rsync-verify-max-age: 24 x-portage location: /usr/local/portage masters: gentoo priority: 0 science location: /var/lib/layman/science masters: gentoo priority: 50 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA dlj-1.1 sun-bcla-java-vm Oracle-BCLA-JavaSE IBM-J1.6 skype-eula Nero-EULA-US AdobeFlash-10.3 skype-4.0.0.7-copyright AdobeFlash-11.x" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=native" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /var/bind" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/apache2-php7.1/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/php/cli-php7.1/ext-active/ /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -pipe -march=native" DISTDIR="/usr/portage/distfiles" ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news nostrip parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="rsync://ftp.fi.muni.cz/pub/linux/gentoo/ rsync://gentoo.mirror.dkm.cz/gentoo/ ftp://gentoo.mirror.web4u.cz/" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en en_US en_GB cs cz" MAKEOPTS="-j1" 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="X amd64 apache apache2 berkdb bzip2 cairo cgi cli cracklib crypt cryptlib cxx dbus device-mapper dhcp emboss fontconfig fortran gbm gd gdbm geoip gnutls gpm hardened iconv innodb ipv6 java jce jpeg jpg keymap ladspa lapack lcms libnotify libtirpc mmx mysql mysqli ncurses nfs nls nptl nptlonly pam pcre pdf perl php pie png python readline resolvconf seccomp server session spf sqlite sse sse2 ssl ssp suexec svg syslog tcpd threads tiff truetype udev unicode usb vhosts vim-syntax x11 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="alias authz_host authz_user auth_basic auth_digest authn_core authz_core autoindex cgi cgid deflate dir env expires filter headers ident include info imagemap mem_cache mime mime_magic negotiation remoteip setenvif socache_shmcb status userdir vhost_alias rewrite usertrack cache file_cache disk_cache charset_lite log_config log_forensic unixd" CALLIGRA_FEATURES="karbon plan sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext popcnt sse sse2 sse3 sse4a" 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" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php-7.1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24" USERLAND="GNU" VIDEO_CARDS="vesa" 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, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS # # locale -a C cs_CZ cs_CZ.iso88592 cs_CZ.utf8 en_US en_US.iso88591 en_US.utf8 POSIX #