Date: Thu, 06 Jun 2019 20:50:19 +0000 From: bugzilla-noreply@freebsd.org To: virtualization@FreeBSD.org Subject: [Bug 238333] bhyve random crash in rfb.c on FreeBSD current (after r346011) Message-ID: <bug-238333-27103-KVFX4gMSrF@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-238333-27103@https.bugs.freebsd.org/bugzilla/> References: <bug-238333-27103@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D238333 --- Comment #12 from Mark Johnston <markj@FreeBSD.org> --- I think the rfb and rfbout threads are insufficiently synchronized. As a q= uick hack, see if this fixes the problem: diff --git a/usr.sbin/bhyve/rfb.c b/usr.sbin/bhyve/rfb.c index d572037b25fe..8992995204be 100644 --- a/usr.sbin/bhyve/rfb.c +++ b/usr.sbin/bhyve/rfb.c @@ -273,8 +273,8 @@ rfb_recv_set_encodings_msg(struct rfb_softc *rc, int cf= d) rc->enc_raw_ok =3D true; break; case RFB_ENCODING_ZLIB: - rc->enc_zlib_ok =3D true; deflateInit(&rc->zstream, Z_BEST_SPEED); + rc->enc_zlib_ok =3D true; break; case RFB_ENCODING_RESIZE: rc->enc_resize_ok =3D true; --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-238333-27103-KVFX4gMSrF>