From owner-freebsd-toolchain@freebsd.org Tue Nov 3 00:39:00 2020 Return-Path: Delivered-To: freebsd-toolchain@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 AAB4545F628 for ; Tue, 3 Nov 2020 00:39:00 +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 4CQ9rh3zYpz4FyD for ; Tue, 3 Nov 2020 00:39:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 8895C45F353; Tue, 3 Nov 2020 00:39:00 +0000 (UTC) Delivered-To: toolchain@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 885B945F3B3 for ; Tue, 3 Nov 2020 00:39:00 +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 4CQ9rh38lzz4FyC for ; Tue, 3 Nov 2020 00:39:00 +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 481EE11BB8 for ; Tue, 3 Nov 2020 00:39:00 +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 0A30d0t4019513 for ; Tue, 3 Nov 2020 00:39:00 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 0A30d0Eg019512 for toolchain@FreeBSD.org; Tue, 3 Nov 2020 00:39:00 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: toolchain@FreeBSD.org Subject: [Bug 241773] lldb does not display external variables properly. Date: Tue, 03 Nov 2020 00:39:00 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 12.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: bc979@lafn.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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-toolchain@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Nov 2020 00:39:00 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D241773 --- Comment #8 from bc979@lafn.org --- Having upgraded to 12.2, I ran the lldb session again. Lldb had degraded significantly. Stepping through the call to testfunc yields the following: 6=20=20=20=20 7 void testfunc(void); 8 int main(int argc, char **argv) { -> 9 testfunc(); 10 unknown =3D 9; 11 printf ("id (%x) =3D %s\n", (int)&id, id); 12 printf ("sock(%x) =3D %d\n", (int)&sock, sock); (lldb) n Size of testlib.c is 262 bytes. id (203d74) =3D aa sock(203d78) =3D 5 unknown (203d70) =3D 9 Process 26735 exited with status =3D 0 (0x00000000)=20 lldb no longer stops on the next statement but runs to completion. The out= put is correct as always. Stepping into testfunc works however a print inside testfunc yields the following: Process 26847 stopped * thread #1, name =3D 'testprog', stop reason =3D step over frame #0: 0x000000080024d6e2 testlib.so`testfunc at testlib.c:14:53 11 stat("testlib.c", &sb); 12 strcpy (id, "aa"); 13 sock =3D 5; -> 14 printf("Size of testlib.c is %i bytes.\n", (int)sb.st_size); 15 } 16=20=20=20 (lldb) p sock Program aborted due to an unhandled Error: Error value was Success. (Note: Success values must still be checked prior = to being destroyed). Stack dump: 0. Program arguments: lldb testprog=20 1. HandleCommand(command =3D "p sock") #0 0x0000000003b15cae (/usr/bin/lldb+0x3b15cae) #1 0x0000000003b13f25 (/usr/bin/lldb+0x3b13f25) #2 0x0000000003b165b0 (/usr/bin/lldb+0x3b165b0) #3 0x00000008046c9b70 (/lib/libthr.so.3+0x14b70) Abort (core dumped) Basically, 12.2 lldb is not suitable for development work. It looks like I= am going to have to revert back to 12.1. --=20 You are receiving this mail because: You are the assignee for the bug.=