From: Ewan Mellor Subject: Re: "xm save" trouble -- deadlock? Date: Wed, 2 Nov 2005 10:04:29 +0000 Message-ID: <20051102100429.GA408@leeni.uk.xensource.com> References: <43679B4C.3030804@suse.de> <4367A2AF.2090707@suse.de> <20051101185456.GA21507@leeni.uk.xensource.com> <43688610.2010601@suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <43688610.2010601@suse.de> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Gerd Knorr Cc: xen-devel List-Id: xen-devel@lists.xenproject.org On Wed, Nov 02, 2005 at 10:25:36AM +0100, Gerd Knorr wrote: > Hi, > > >The code that does this is in XendCheckpoint.py:forkHelper. It's using > >select.poll() and file.readline() to read from both the stdout and the > >stderr. This is a pretty daft thing to do -- there's definitely potential > >for > >deadlock here. > > > >I'll rewrite this to use a separate thread to pull the data from stderr, > >which > >should solve the problem. > > Should be fixable without a new thread, I'll have a look. I've done a threaded fix already. You're welcome to have a go at doing it without a thread if you want, but I think it'll be messy. > log.debug("stuff") ends up in /var/log/xend.log I guess? Yes, it does. I've assigned this bug #378. Ewan.