I tried to interrupt the memory consuming build of the current thunderbird installation on the command line with Ctrl-Z. The emerge program stopped, the rest of the child programs continued. In earlier times I could stop the whole build including all child programs with Ctrl-Z. Reproducible: Always Steps to Reproduce: 1. On command line start the build of thunderbird 2. During the build press Ctrl-Z 3. Actual Results: Programs keep running Expected Results: Programs stop working until being reactivated by the "fg" or "bg" command snippet from "ps faxw", in process 8892 I pressed Ctrl-Z: 8892 pts/1 S+ 0:00 | | | \_ -bash 8894 pts/1 T 4:27 | | | \_ /usr/bin/python3.11 /usr/lib/python-exec/python3.11/emerge -auDU worl 19665 pts/1 S 0:00 | | | \_ /usr/bin/python3.11 /usr/lib/portage/python3.11/pid-ns-init 19666 19666 pts/12 Ss+ 0:00 | | | \_ /usr/bin/python3.11 /usr/lib/portage/python3.11/pid-ns-init 2 19669 pts/12 S+ 0:00 | | | \_ [mail-client/thunderbird-102.15.0] sandbox /usr/lib/porta 19670 pts/12 S+ 0:00 | | | \_ bash /usr/lib/portage/python3.11/ebuild.sh compile 19691 pts/12 S+ 0:00 | | | \_ bash /usr/lib/portage/python3.11/ebuild.sh compil 19693 pts/12 SNl+ 0:14 | | | \_ /usr/bin/python3.11 ./mach build --verbose 19722 pts/12 SN+ 0:00 | | | \_ /usr/bin/python3.11 ./mach build --verbos 19723 pts/12 SN+ 0:00 | | | \_ /usr/bin/gmake -f client.mk -j4 19726 pts/12 SN+ 0:00 | | | \_ /usr/bin/gmake -j5 -l6 -C /var/tmp/po 20689 pts/12 SN+ 0:00 | | | \_ /usr/bin/gmake compile 20692 pts/12 SN+ 0:00 | | | \_ /usr/bin/gmake recurse_compil 20693 pts/12 SN+ 0:00 | | | \_ /usr/bin/gmake -C toolkit 20696 pts/12 SNl+ 0:07 | | | | \_ /usr/bin/cargo rustc 2979 pts/12 SNl+ 0:07 | | | | \_ /usr/bin/rustc -- 3043 pts/12 SNl+ 0:00 | | | | \_ /usr/bin/rustc -- 2840 pts/12 SN+ 0:00 | | | \_ /usr/bin/gmake -C dom/med 2958 pts/12 RN+ 0:13 | | | | \_ /usr/lib/llvm/15/bin/ 2949 pts/12 SN+ 0:00 | | | \_ /usr/bin/gmake -C dom/med 3046 pts/12 RN+ 0:00 | | | | \_ /usr/lib/llvm/15/bin/ 3020 pts/12 SN+ 0:00 | | | \_ /usr/bin/gmake -C dom/med 3041 pts/12 RN+ 0:00 | | | \_ /usr/lib/llvm/15/bin/ emerge --info: Portage 3.0.49 (python 3.11.5-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-12, glibc-2.37-r3, 6.1.41-gentoo-x86_64 x86_64) ================================================================= System uname: Linux-6.1.41-gentoo-x86_64-x86_64-Intel-R-_Core-TM-_i5-6600K_CPU_@_3.50GHz-with-glibc2.37 KiB Mem: 16360272 total, 736864 free KiB Swap: 12582900 total, 8123460 free Timestamp of repository gentoo: Sat, 02 Sep 2023 01:15:01 +0000 Head commit of repository gentoo: c7ca8cbd381230bf211d610008e271442e41ed99 sh bash 5.1_p16-r6 ld GNU ld (Gentoo 2.40 p5) 2.40.0 distcc 3.4 x86_64-pc-linux-gnu [disabled] app-misc/pax-utils: 1.3.5::gentoo app-shells/bash: 5.1_p16-r6::gentoo dev-java/java-config: 2.3.1-r1::gentoo dev-lang/perl: 5.38.0-r1::gentoo dev-lang/python: 3.10.13::gentoo, 3.11.5::gentoo dev-lang/rust: 1.69.0-r1::gentoo dev-util/cmake: 3.26.5-r2::gentoo dev-util/meson: 1.1.1::gentoo sys-apps/baselayout: 2.14::gentoo sys-apps/openrc: 0.48::gentoo sys-apps/sandbox: 2.37::gentoo sys-devel/autoconf: 2.13-r7::gentoo, 2.71-r6::gentoo sys-devel/automake: 1.15.1-r2::gentoo, 1.16.5-r1::gentoo sys-devel/binutils: 2.40-r5::gentoo sys-devel/binutils-config: 5.5::gentoo sys-devel/clang: 15.0.7-r3::gentoo, 16.0.6::gentoo sys-devel/gcc: 12.3.1_p20230526::gentoo sys-devel/gcc-config: 2.11::gentoo sys-devel/libtool: 2.4.7-r1::gentoo sys-devel/lld: 15.0.7::gentoo sys-devel/llvm: 15.0.7-r3::gentoo, 16.0.6::gentoo sys-devel/make: 4.4.1-r1::gentoo sys-kernel/linux-headers: 6.1::gentoo (virtual/os-headers) sys-libs/glibc: 2.37-r3::gentoo Repositories: gentoo location: /var/lib/portage/repo sync-type: rsync sync-uri: rsync://*******.*********.lan/gentoo-portage priority: -1000 volatile: True sync-rsync-verify-max-age: 24 sync-rsync-verify-jobs: 1 sync-rsync-extra-opts: sync-rsync-verify-metamanifest: yes x-portage location: /usr/local/portage masters: gentoo priority: 0 volatile: True LAN-spezifische-ebuild-erweiterungen location: /usr/local/portage-domain-overlay masters: gentoo priority: 1 volatile: True ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="@FREE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=native" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/easy-rsa /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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -pipe -march=native" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--color=y --nospinner" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org/distfiles/ http://mirror.netcologne.de/gentoo/ http://ftp.halifax.rwth-aachen.de/gentoo/ http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.cs.uni-frankfurt.de/pub/Mirrors2/gentoo.org/ http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/" LANG="de_DE.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LEX="flex" LINGUAS="de" MAKEOPTS="-j5 -l6" PKGDIR="/var/cache/binpkgs" 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" SHELL="/bin/bash" USE="X a52 aac acl acpi activities aes alsa amd64 avx avx2 bluetooth branding bzip2 cacert cairo cdda cdr cli crypt cups dbus declarative dri dts dvd dvdr elogind encode exif f16c flac fma3 fortran gdbm gif gpm gtk gui iconv icu ipv6 jpeg kde kwallet lcms libnotify libtirpc mad matroska mmx mmxext mng mp3 mp4 mpeg mtp multilib ncurses nls nptl ogg opencl opengl openmax openmp osmesa pam pango pclmul pcre pdf pipewire plasma png policykit popcnt ppds pulseaudio qml qt5 readline screencast sdl seccomp semantic-desktop sound spell split-usr sqlite sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification svg test-rust tiff truetype udev udisks unicode upower usb vaapi vdpau vnc vorbis vulkan wayland widgets wxwidgets x264 x265 xattr xcb xft xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2021" 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="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="de" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="AMDGPU X86" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" QEMU_USER_TARGETS="arm" RUBY_TARGETS="ruby31" SANE_BACKENDS="hp5590" VIDEO_CARDS="amdgpu radeonsi modesetting intel i965 iris" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
There is something weird going on with parallelization on mozilla products, but did it just finish the one heavy process and stop after perhaps? So it didn't start new processes, but finished the active ones?
Hey Joonas, thanks for asking The process list shows only one process (emerge world, pid 8894) in stopped state. All the other processes are allowed to continue. So it seems, the emerge process does not propagate the signal to its child processes. But yes, you are right. I only tested Ctrl-Z twice and looked about 10 seconds to the result. I did not check, if the make process stopped spawning new processes. Judging from the process state I'd say it does spawn new processes.
Just a minor note: In previous build systems consisting of ebuild, configure, make and gcc typing Ctrl-z has been enough to stop the entire build immediately. With all (sub-)processes waiting in stopped state (T). I thought this should be the same over here? all the best
I don't think this is Mozilla specific, I can reproduce it with e.g. Emacs.
*** This bug has been marked as a duplicate of bug 704498 ***