From owner-freebsd-ports-bugs@freebsd.org Fri Jan 8 22:11:22 2021 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D90B94D8A6C for ; Fri, 8 Jan 2021 22:11:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4DCHPQ5PR3z3Lj8 for ; Fri, 8 Jan 2021 22:11:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id B76674D8A6B; Fri, 8 Jan 2021 22:11:22 +0000 (UTC) Delivered-To: ports-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B729B4D8818 for ; Fri, 8 Jan 2021 22:11:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DCHPQ4fd9z3M53 for ; Fri, 8 Jan 2021 22:11:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 9284C277E for ; Fri, 8 Jan 2021 22:11:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 108MBMIt095616 for ; Fri, 8 Jan 2021 22:11:22 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 108MBMJ4095615 for ports-bugs@FreeBSD.org; Fri, 8 Jan 2021 22:11:22 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: ports-bugs@FreeBSD.org Subject: [Bug 252534] net/libvncserver - 0.9.12_2 - SIGBUS in rfbClientDesKey with example program Date: Fri, 08 Jan 2021 22:11:22 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: will.brokenbourgh2877@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: nc@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name 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-ports-bugs@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jan 2021 22:11:22 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D252534 Bug ID: 252534 Summary: net/libvncserver - 0.9.12_2 - SIGBUS in rfbClientDesKey with example program Product: Ports & Packages Version: Latest Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: nc@FreeBSD.org Reporter: will.brokenbourgh2877@gmail.com Flags: maintainer-feedback?(nc@FreeBSD.org) Assignee: nc@FreeBSD.org - FreeBSD 12.2-RELEASE-p1 running on amd64 architecture - libvncserver 0.9.12_2 - binary package installed from 'pkg install' After building and running the SDLvncviewer.c example program at: https://libvnc.github.io/doc/html/_s_d_lvncviewer_8c-example.html I attempted to connect to any TightVNC server running on Windows 7 or 10 and receive the following error (gdb output): (gdb) r Starting program: /usr/home/will/Projects/sdl-vnc-viewer/sdlvncviewer 192.168.0.128 08/01/2021 13:52:51 VNC server supports protocol version 3.8 (viewer 3.8) 08/01/2021 13:52:51 We have 2 security types to read 08/01/2021 13:52:51 0) Received security type 2 08/01/2021 13:52:51 Selecting security type 2 (0/2 in the list) 08/01/2021 13:52:51 1) Received security type 16 08/01/2021 13:52:51 Selected Security Scheme 2 Password:=20 Program received signal SIGBUS, Bus error. 0x000000080026b3e5 in rfbClientDesKey () from /usr/local/lib/libvncclient.s= o.1 (gdb) bt=20=20=20=20=20 #0 0x000000080026b3e5 in rfbClientDesKey () from /usr/local/lib/libvncclient.so.1 #1 0x000000080026afba in rfbClientEncryptBytes () from /usr/local/lib/libvncclient.so.1 #2 0x000000080025c9d9 in ?? () from /usr/local/lib/libvncclient.so.1 #3 0x000000080025b4e8 in InitialiseRFBConnection () from /usr/local/lib/libvncclient.so.1 #4 0x0000000800272bee in rfbInitClient () from /usr/local/lib/libvncclient.so.1 #5 0x0000000000202de1 in main (argc=3D2, argv=3D0x7fffffffda48) at sdlvncviewer.c:446 This appears to be an issue only on FreeBSD as building and running this wo= rks fine on Linux. Build command line was: $ cc -Wall -o sdlvncviewer sdlvncviewer.c -I/usr/local/include -I/usr/inclu= de -I/usr/local/include/SDL2 -L/usr/local/lib -lvncclient -lSDL2 -O0 -g $ cc --version FreeBSD clang version 10.0.1 (git@github.com:llvm/llvm-project.git llvmorg-10.0.1-0-gef32c611aa2) Target: x86_64-unknown-freebsd12.2 Thread model: posix InstalledDir: /usr/bin Thank you! :-) --=20 You are receiving this mail because: You are the assignee for the bug.=