From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id B8359138206 for ; Sun, 24 Apr 2016 23:50:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CC7F9E0863; Sun, 24 Apr 2016 23:50:45 +0000 (UTC) Received: from resqmta-ch2-06v.sys.comcast.net (resqmta-ch2-06v.sys.comcast.net [69.252.207.38]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4D331E0853 for ; Sun, 24 Apr 2016 23:50:45 +0000 (UTC) Received: from resomta-ch2-02v.sys.comcast.net ([69.252.207.98]) by comcast with SMTP id uTnGaMONs2R4wuTnYaclHq; Sun, 24 Apr 2016 23:50:44 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1461541844; bh=eX23nNw1XETRnhGf1b6EoUvQnbxAKs6SgHZLoCsedxU=; h=Received:Received:Subject:To:From:Message-ID:Date:MIME-Version: Content-Type; b=mfstdtL/c4M8ve7z7tkrE2TuMtL2WLqmhsxZnNnojsqCFGx38iF89OU8NWtiwzNhT +aFXQpSLCDDfnBIfDMyIWLonxy5a2ZXO9xNxk6DXKS//j4AlOz5R9UOQUHdE5oeRyJ WHVB04i3GyDq6/O0Q3v2JVcSnwBfWBoyrmvT168vde8QmyOE7tLfU0PGAyRFVRtUWr ygbFyT7hGVPGF++TP/7oFKqJQcYjGGdb8oGldKmloKVbDmL/HXmKoVG2D6MZ7+dtfX yxDrgtdeRO8UOgUXUE80HKgke4HYJduqvBV2mQXsoFpOlIi/JBJhwgafXr34I61Rnj eAc5dQRyUcOxA== Received: from [192.168.1.13] ([76.106.83.43]) by resomta-ch2-02v.sys.comcast.net with comcast id mPqj1s0010w5D3801PqjXY; Sun, 24 Apr 2016 23:50:44 +0000 Subject: Re: [gentoo-portage-dev] dead emerge processes and/or lockfiles To: gentoo-portage-dev@lists.gentoo.org References: <20160117090635.6b77890d.dolsen@gentoo.org> <569BF303.3060408@gentoo.org> <569CDC87.9000902@gentoo.org> From: Joshua Kinard Message-ID: <571D5BCE.6070304@gentoo.org> Date: Sun, 24 Apr 2016 19:50:38 -0400 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:44.0) Gecko/20100101 Thunderbird/44.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-portage-dev@lists.gentoo.org Reply-to: gentoo-portage-dev@lists.gentoo.org MIME-Version: 1.0 In-Reply-To: <569CDC87.9000902@gentoo.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Archives-Salt: 4d2b01ba-dff9-4f52-b70b-16f610f9f8c5 X-Archives-Hash: c87d638478693220d11e52f88c2dc770 On 01/18/2016 07:37, Joshua Kinard wrote: > On 01/17/2016 15:01, Zac Medico wrote: >> On 01/17/2016 09:06 AM, Brian Dolbec wrote: >>> >>> I've read in several forum posts lately about emerge not running and >>> the problem comes down to dead emerge processes and remaining lockfiles. >>> >>> Perhaps we should make an emaint module to search for and fix these. >>> It should be easy enough. >> >> It would be nicer if we fixed whatever issue(s) cause the emerge >> processes to hang up. How would the emaint module distinguish a "good" >> emerge process from a "bad" one? I suppose you could strace it to see if >> it has any activity. >> > > I've been playing around with Gentoo/FreeBSD and have been noticing that emerge > is leaving orphaned processes behind on that platform. Seems to be > ecompressdir getting hung up. emerge itself just moves on, but after I > accumulated ~5 of those stuck ecompressdir processes in a single run, I kill > -9'ed them all. Didn't see side-effects similar to what's described in the > original post, but the way to detect this issue might be to look for orphaned > children processes lacking a parent PID, then reap them. Updating my FreeBSD VM again, I captured one of the error messages that's leading to these orphaned ecompressdir processes: /usr/lib/portage/python3.5/ebuild-helpers/ecompressdir: cannot make pipe for process substitution: File exists /usr/lib/portage/python3.5/ebuild-helpers/ecompressdir: line 72: /ramfs/portage/sys-freebsd/boot0-10.3/temp/sh-np-1865519000: ambiguous redirect ecompressdir: bzip2 -9 /usr/share/man * The ebuild phase 'install' with pid 32075 appears to have left an orphan * process running in the background. And a second one: /ramfs/portage/._portage_reinstall_.pesqhjhn/bin/ebuild-helpers/ecompressdir: cannot make pipe for process substitution: File exists /ramfs/portage/._portage_reinstall_.pesqhjhn/bin/ebuild-helpers/ecompressdir: line 72: /ramfs/portage/sys-apps/grep-2.25/temp/sh-np-474708936: ambiguous redirect ecompressdir: bzip2 -9 /usr/share/man ecompressdir: bzip2 -9 /usr/share/info ecompressdir: bzip2 -9 /usr/share/doc * The ebuild phase 'install' with pid 60185 appears to have left an orphan * process running in the background. Not sure the exact cause. Any additional info I can provide? --J