Received: from eggs.gnu.org ([140.186.70.92]:53367) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNNJ1-0000IZ-Bd for qemu-devel@nongnu.org; Mon, 07 Nov 2011 06:24:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RNNIw-0008Kp-GO for qemu-devel@nongnu.org; Mon, 07 Nov 2011 06:23:59 -0500 Received: from mx1.redhat.com ([209.132.183.28]:62028) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNNIw-0008KU-93 for qemu-devel@nongnu.org; Mon, 07 Nov 2011 06:23:54 -0500 From: Juan Quintela In-Reply-To: <4EB743CB.10403@cn.fujitsu.com> (Wen Congyang's message of "Mon, 07 Nov 2011 10:34:51 +0800") References: <4EB743CB.10403@cn.fujitsu.com> Date: Mon, 07 Nov 2011 12:22:30 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [Qemu-devel] [PATCH] fix segfault on fd-migration starting Reply-To: quintela@redhat.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Wen Congyang Cc: qemu-devel Wen Congyang wrote: > We set s->mon to NULL in migrate_init. But we will use it > to search fd when do fd-migration, and it will cause qemu > crashed. > > Signed-off-by: Wen Congyang > > --- > migration.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/migration.c b/migration.c > index 4b17566..d094381 100644 > --- a/migration.c > +++ b/migration.c > @@ -383,7 +383,7 @@ static MigrationState *migrate_init(Monitor *mon, int detach, int blk, int inc) > s->bandwidth_limit = bandwidth_limit; > s->blk = blk; > s->shared = inc; > - s->mon = NULL; > + s->mon = mon; > s->bandwidth_limit = bandwidth_limit; > s->state = MIG_STATE_SETUP; Problem is real. Patch is wrong, because now we "resume" the monitor even when we are doing detached migration. Looking into it. Thanks, Juan.