Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 664632 - sys-devel/make-4.2.1-r3: parallel make jobs getting stuck
Summary: sys-devel/make-4.2.1-r3: parallel make jobs getting stuck
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-26 10:47 UTC by and
Modified: 2020-02-10 15:51 UTC (History)
1 user (show)

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 and 2018-08-26 10:47:13 UTC
When running make with parallel jobs option (make -jN) 
<defunct> make process can occur.

Result can be non-optimal/slow compile run.

references:
https://bugzilla.opensuse.org/show_bug.cgi?id=1100504
https://bugzilla.redhat.com/show_bug.cgi?id=1556839
https://bugs.archlinux.org/task/58320
https://lists.gnu.org/archive/html/help-make/2018-07/msg00004.html

possible fix by
https://git.savannah.gnu.org/cgit/make.git/commit/?id=b552b05251980f693c729e251f93f5225b400714



Reproducible: Always

Steps to Reproduce:
1. cd /usr/src/linux 
2. make clean && make -jN
3. watch out for make <defunct>
Comment 1 Larry the Git Cow gentoo-dev 2018-08-27 19:48:41 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b44bbe136afc2747df3f213467dd930c44454408

commit b44bbe136afc2747df3f213467dd930c44454408
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2018-08-27 19:48:25 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2018-08-27 19:48:25 +0000

    sys-devel/make: Use a non-blocking read with pselect to avoid hangs
    
    Closes: https://bugs.gentoo.org/664632
    Package-Manager: Portage-2.3.48, Repoman-2.3.10

 .../files/make-4.2.1-pselect-non-blocking.patch    | 172 +++++++++++++++++++++
 sys-devel/make/make-4.2.1-r4.ebuild                |  59 +++++++
 2 files changed, 231 insertions(+)
Comment 2 Thomas Deutschmann (RETIRED) gentoo-dev 2018-08-27 19:49:02 UTC
Thanks for the report!