Gentoo Archives: gentoo-portage-dev

From: Joshua Kinard <kumba@g.o>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] dead emerge processes and/or lockfiles
Date: Sun, 24 Apr 2016 23:50:47
Message-Id: 571D5BCE.6070304@gentoo.org
In Reply to: Re: [gentoo-portage-dev] dead emerge processes and/or lockfiles by Joshua Kinard
1 On 01/18/2016 07:37, Joshua Kinard wrote:
2 > On 01/17/2016 15:01, Zac Medico wrote:
3 >> On 01/17/2016 09:06 AM, Brian Dolbec wrote:
4 >>>
5 >>> I've read in several forum posts lately about emerge not running and
6 >>> the problem comes down to dead emerge processes and remaining lockfiles.
7 >>>
8 >>> Perhaps we should make an emaint module to search for and fix these.
9 >>> It should be easy enough.
10 >>
11 >> It would be nicer if we fixed whatever issue(s) cause the emerge
12 >> processes to hang up. How would the emaint module distinguish a "good"
13 >> emerge process from a "bad" one? I suppose you could strace it to see if
14 >> it has any activity.
15 >>
16 >
17 > I've been playing around with Gentoo/FreeBSD and have been noticing that emerge
18 > is leaving orphaned processes behind on that platform. Seems to be
19 > ecompressdir getting hung up. emerge itself just moves on, but after I
20 > accumulated ~5 of those stuck ecompressdir processes in a single run, I kill
21 > -9'ed them all. Didn't see side-effects similar to what's described in the
22 > original post, but the way to detect this issue might be to look for orphaned
23 > children processes lacking a parent PID, then reap them.
24
25
26 Updating my FreeBSD VM again, I captured one of the error messages that's
27 leading to these orphaned ecompressdir processes:
28
29 /usr/lib/portage/python3.5/ebuild-helpers/ecompressdir: cannot make pipe for
30 process substitution: File exists
31 /usr/lib/portage/python3.5/ebuild-helpers/ecompressdir: line 72:
32 /ramfs/portage/sys-freebsd/boot0-10.3/temp/sh-np-1865519000: ambiguous redirect
33 ecompressdir: bzip2 -9 /usr/share/man
34 * The ebuild phase 'install' with pid 32075 appears to have left an orphan
35 * process running in the background.
36
37
38 And a second one:
39 /ramfs/portage/._portage_reinstall_.pesqhjhn/bin/ebuild-helpers/ecompressdir:
40 cannot make pipe for process substitution: File exists
41 /ramfs/portage/._portage_reinstall_.pesqhjhn/bin/ebuild-helpers/ecompressdir:
42 line 72: /ramfs/portage/sys-apps/grep-2.25/temp/sh-np-474708936: ambiguous redirect
43 ecompressdir: bzip2 -9 /usr/share/man
44 ecompressdir: bzip2 -9 /usr/share/info
45 ecompressdir: bzip2 -9 /usr/share/doc
46 * The ebuild phase 'install' with pid 60185 appears to have left an orphan
47 * process running in the background.
48
49 Not sure the exact cause. Any additional info I can provide?
50
51 --J

Replies

Subject Author
Re: [gentoo-portage-dev] dead emerge processes and/or lockfiles Zac Medico <zmedico@g.o>