[sheepdog] [PATCH v2] sheepdog: fix a core dump while do auto-reconnecting
Stefan Hajnoczi
stefanha at redhat.com
Fri Aug 29 11:04:48 CEST 2014
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.
>
> This was broken in commit 356b4ca.
>
> qemu-system-x86_64: failed to get the header, Resource temporarily unavailable
> 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 not 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)
>
> Cc: qemu-devel at nongnu.org
> Cc: Markus Armbruster <armbru at redhat.com>
> Cc: Kevin Wolf <kwolf at redhat.com>
> Cc: Stefan Hajnoczi <stefanha at redhat.com>
> Reviewed-by: Markus Armbruster <armbru at redhat.com>
> Signed-off-by: Liu Yuan <namei.unix at gmail.com>
> ---
> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://lists.wpkg.org/pipermail/sheepdog/attachments/20140829/2c909708/attachment-0002.sig>
More information about the sheepdog
mailing list