Received: from eggs.gnu.org ([2001:4830:134:3::10]:43722) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XNI79-000351-Iu for qemu-devel@nongnu.org; Fri, 29 Aug 2014 05:05:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XNI75-000739-1P for qemu-devel@nongnu.org; Fri, 29 Aug 2014 05:04:59 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52726) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XNI74-000735-OE for qemu-devel@nongnu.org; Fri, 29 Aug 2014 05:04:54 -0400 Date: Fri, 29 Aug 2014 10:04:48 +0100 From: Stefan Hajnoczi Message-ID: <20140829090448.GB32448@stefanha-thinkpad.redhat.com> References: <1409221675-21916-1-git-send-email-namei.unix@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="oC1+HKm2/end4ao3" Content-Disposition: inline In-Reply-To: <1409221675-21916-1-git-send-email-namei.unix@gmail.com> Subject: Re: [Qemu-devel] [PATCH v2] sheepdog: fix a core dump while do auto-reconnecting List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Liu Yuan Cc: Kevin Wolf , sheepdog@lists.wpkg.org, qemu-devel@nongnu.org, Markus Armbruster --oC1+HKm2/end4ao3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Aug 28, 2014 at 06:27:55PM +0800, Liu Yuan wrote: > We should reinit local_err as NULL inside the while loop or g_free() will= report > corrupption and abort the QEMU when sheepdog driver tries reconnecting. >=20 > This was broken in commit 356b4ca. >=20 > qemu-system-x86_64: failed to get the header, Resource temporarily unavai= lable > qemu-system-x86_64: Failed to connect to socket: Connection refused > qemu-system-x86_64: (null) > [xcb] Unknown sequence number while awaiting reply > [xcb] Most likely this is a multi-threaded client and XInitThreads has no= t been called > [xcb] Aborting, sorry about that. > qemu-system-x86_64: ../../src/xcb_io.c:298: poll_for_response: Assertion = `!xcb_xlib_threads_sequence_lost' failed. > Aborted (core dumped) >=20 > Cc: qemu-devel@nongnu.org > Cc: Markus Armbruster > Cc: Kevin Wolf > Cc: Stefan Hajnoczi > Reviewed-by: Markus Armbruster > Signed-off-by: Liu Yuan > --- > block/sheepdog.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Thanks, applied to my block tree: https://github.com/stefanha/qemu/commits/block Stefan --oC1+HKm2/end4ao3 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJUAEIwAAoJEJykq7OBq3PIK3sH/2ule1Ff2wCo8lD/UO8g0vLJ 6OWd4oZNy0gfDhqt0kxJtfyez4ChYgEFuW0iLPce42CN4BnzccBokrJcj1HIhDYI i3uUEdlCOyVTkPEA8jAS0kKO+lxWFANOg8C1MWUVUiFIeOeYEt1HvzTUzRJ1DjJ1 kOzxPgOb0fyMItlwIeuL2UghvaUtcf8mooenDxnv2rgWxLtCnK5AkaKOKxA8eP9o m7l7qPSKubs7gbPaN9TriSHWC88n/bYPIkpQr0WIffzVM8DyNWMJSEHwjT5hHEka YSMI6k2PzqNe9cRy2gRYUGNm2oCwKaadBbK64UIvQSpS8fXcrIcU6QOWGhoZues= =AjL4 -----END PGP SIGNATURE----- --oC1+HKm2/end4ao3--