From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jim Paris Subject: Re: migration with exec giving truncated images Date: Wed, 8 Aug 2007 16:22:46 -0400 Message-ID: <1186604569626-git-send-email-jim@jtan.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Uri Lublin , kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Return-path: In-Reply-To: 46B9896D.3030506-atKUWr5tajBWk0Htik3J/w@public.gmane.org References: 46B9896D.3030506-atKUWr5tajBWk0Htik3J/w@public.gmane.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org I think I've (finally!) tracked it down. See the attached patches. The main problem is this: when using "-monitor pty", all incoming commands are terminated with CRLF even though they were sent with just LF, probably because of the pty layer somewhere. When qemu's readline gets CR and LF without calling readline_start() in between, it executes the same command twice in a row, which meant that _two_ migrations were running concurrently. -jim ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/