From owner-freebsd-bugs@freebsd.org Wed Jun 5 09:02:46 2019 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C5BA015A6334 for ; Wed, 5 Jun 2019 09:02:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 5795A726B5 for ; Wed, 5 Jun 2019 09:02:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 1831915A6333; Wed, 5 Jun 2019 09:02:46 +0000 (UTC) Delivered-To: bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E9DFC15A6332 for ; Wed, 5 Jun 2019 09:02:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6C15E726B3 for ; Wed, 5 Jun 2019 09:02:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 8E3B1851A for ; Wed, 5 Jun 2019 09:02:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x5592iX3034303 for ; Wed, 5 Jun 2019 09:02:44 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x5592i9w034296 for bugs@FreeBSD.org; Wed, 5 Jun 2019 09:02:44 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 238333] bhyve random crash in rfb.c on FreeBSD current (after r346011) Date: Wed, 05 Jun 2019 09:02:44 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: olevole@olevole.ru X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Jun 2019 09:02:47 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D238333 Bug ID: 238333 Summary: bhyve random crash in rfb.c on FreeBSD current (after r346011) Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: olevole@olevole.ru After -O0 flag removal ( https://svnweb.freebsd.org/base?view=3Drevision&revision=3Dr346011 ) bhyve = process begins to crash with an active VNC session. Not all VNC clients can crash. It seems that it depends on the default sett= ings (some use the default compression by default, some do not), for example, it does not cause problems when using vncviewer (without any arguments) from tigervnc-viewer, but is well reproduced using KDE's KRDC: net/krdc ). When you connect to VNC console via KRDC bhyve process crashed with SIGBUS: pid 88831 (bhyve), jid 0, uid 0: exited on signal 10 (core dumped) Backtrace: Thread 29 "rfbout" received signal SIGBUS, Bus error. [Switching to LWP 101756 of process 93578] memcpy () at /usr/src/lib/libc/amd64/string/memmove.S:306 306 MEMMOVE erms=3D0 overlap=3D1 begin=3DMEMMOVE_BEGIN end=3DME= MMOVE_END (gdb) bt #0 memcpy () at /usr/src/lib/libc/amd64/string/memmove.S:306 #1 0x00000008002c85dc in flush_pending (strm=3D) at /usr/src/sys/contrib/zlib/deflate.c:741 #2 deflate (strm=3D0x800bb1030, flush=3D2) at /usr/src/sys/contrib/zlib/deflate.c:787 #3 0x000000000023f141 in rfb_send_rect (rc=3D, cfd=3D, gc=3D, x=3D0, y=3D0, w=3D128, h=3D32) at /usr/src/usr.sbin/bhyve/rfb.c:355 #4 rfb_send_screen (rc=3D, cfd=3D6, all=3D) = at /usr/src/usr.sbin/bhyve/rfb.c:600 #5 0x000000000023f5c7 in rfb_wr_thr (arg=3D0x800bb1000) at /usr/src/usr.sbin/bhyve/rfb.c:730 #6 0x000000080064b726 in thread_start (curthread=3D0x800be1000) at /usr/src/lib/libthr/thread/thr_create.c:291 #7 0x0000000000000000 in ?? () Backtrace stopped: Cannot access memory at address 0x7fffdc9e3000 (gdb) p len $1 =3D 9600016 print sizeof(strm) $2 =3D 8 (gdb) print sizeof(s) $3 =3D 8 There are no problems when bhyve is compiled without optimization (-O0), so= we do not see this problem in FreeBSD <=3D 12.0, but the problem occurs in FreeBSD-current --=20 You are receiving this mail because: You are the assignee for the bug.=