From owner-freebsd-bugs@freebsd.org Tue Aug 18 22:47:47 2020 Return-Path: Delivered-To: freebsd-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 C03653A9DB9 for ; Tue, 18 Aug 2020 22:47:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4BWQzR4lWZz3YCG for ; Tue, 18 Aug 2020 22:47:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id A2EAC3AA006; Tue, 18 Aug 2020 22:47:47 +0000 (UTC) Delivered-To: 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 A2B303A9F55 for ; Tue, 18 Aug 2020 22:47:47 +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 4BWQzR3v0Bz3YSt for ; Tue, 18 Aug 2020 22:47:47 +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 64E9D19399 for ; Tue, 18 Aug 2020 22:47:47 +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 07IMlliw010120 for ; Tue, 18 Aug 2020 22:47:47 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 07IMllR4010119 for bugs@FreeBSD.org; Tue, 18 Aug 2020 22:47:47 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 248745] /usr/bin/lldb dumps core when attempting to print variable with `p`, `fr v` works Date: Tue, 18 Aug 2020 22:47:47 +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: 12.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dmgk@freebsd.org 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.33 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Aug 2020 22:47:47 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D248745 Bug ID: 248745 Summary: /usr/bin/lldb dumps core when attempting to print variable with `p`, `fr v` works Product: Base System Version: 12.1-STABLE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: dmgk@freebsd.org $ uname -v FreeBSD 12.1-STABLE r364355 $ /usr/bin/lldb -v lldb version 10.0.1 (git@github.com:llvm/llvm-project.git revision llvmorg-10.0.1-0-gef32c611aa2) clang revision llvmorg-10.0.1-0-gef32c611aa2 llvm revision llvmorg-10.0.1-0-gef32c611aa2 $ cat < testcase.c int main(int argc, char *argv[]) { return 0; } EOD $ cc -O0 -g testcase.c $ /usr/bin/lldb a.out ... (lldb) b main Breakpoint 1: where =3D a.out`main + 20 at testcase.c:5:5, address =3D 0x00000000002018d4 (lldb) r Process 27744 launching Process 27744 launched: '/home/dg/tmp/a.out' (x86_64) Process 27744 stopped * thread #1, name =3D 'a.out', stop reason =3D breakpoint 1.1 frame #0: 0x00000000002018d4 a.out`main(argc=3D1, argv=3D0x00007fffffff= e480) at testcase.c:5:5 2 3 int main(int argc, char *argv[]) 4 { -> 5 return 0; 6 } (lldb) p argc 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: /usr/bin/lldb a.out 1. HandleCommand(command =3D "p argc") #0 0x0000000003b848de PrintStackTrace /usr/src/contrib/llvm-project/llvm/lib/Support/Unix/Signals.inc:564:13 #1 0x0000000003b82b37 RunSignalHandlers /usr/src/contrib/llvm-project/llvm/lib/Support/Signals.cpp:69:18 #2 0x0000000003b851d0 SignalHandler /usr/src/contrib/llvm-project/llvm/lib/Support/Unix/Signals.inc:0:3 #3 0x000000080477dd22 handle_signal /usr/src/lib/libthr/thread/thr_sig.c:0:3 Abort trap (core dumped) What's interesting is that `fr v` works fine: ... (lldb) b main Breakpoint 1: where =3D a.out`main + 20 at testcase.c:5:5, address =3D 0x00000000002018d4 (lldb) r Process 28540 launching Process 28540 launched: '/home/dg/tmp/a.out' (x86_64) Process 28540 stopped * thread #1, name =3D 'a.out', stop reason =3D breakpoint 1.1 frame #0: 0x00000000002018d4 a.out`main(argc=3D1, argv=3D0x00007fffffff= e480) at testcase.c:5:5 2 3 int main(int argc, char *argv[]) 4 { -> 5 return 0; 6 } (lldb) fr v argc (int) argc =3D 1 (lldb) --=20 You are receiving this mail because: You are the assignee for the bug.=