Received: from eggs.gnu.org ([2001:4830:134:3::10]:39747) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bUBK5-0004GP-8L for qemu-devel@nongnu.org; Mon, 01 Aug 2016 07:23:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bUBK0-0001av-83 for qemu-devel@nongnu.org; Mon, 01 Aug 2016 07:23:53 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39884) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bUBK0-0001ao-2K for qemu-devel@nongnu.org; Mon, 01 Aug 2016 07:23:48 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id F30C4C04D2AC for ; Mon, 1 Aug 2016 11:23:46 +0000 (UTC) From: marcandre.lureau@redhat.com Date: Mon, 1 Aug 2016 15:23:41 +0400 Message-Id: <20160801112343.29082-1-marcandre.lureau@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH for-2.7 0/2] Fix spice audio crash regression List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: pbonzini@redhat.com, =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= From: Marc-Andr=C3=A9 Lureau Hi, The monitor is being used atexit, during spice audio clean up, and this leads to a crash since the chardev are now being cleaned up at the end of main, before atexit handlers. Fix the crash by cleaning up the monitor when leaving, and restore the original event behaviour when leaving by cleaning up audio before that. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=3D1355704 Marc-Andr=C3=A9 Lureau (2): monitor: fix crash when leaving qemu with spice audio audio: clean up before monitor clean up monitor.c | 20 ++++++++++++++++++++ audio/audio.c | 26 ++++++++++++++++++-------- audio/audio.h | 3 +++ audio/coreaudio.c | 12 ++---------- include/monitor/monitor.h | 1 + vl.c | 2 ++ 6 files changed, 46 insertions(+), 18 deletions(-) --=20 2.9.0