From owner-freebsd-ports-bugs@freebsd.org Tue Feb 16 14:53:07 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 54CDD53B3FD for ; Tue, 16 Feb 2021 14:53:07 +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 4Dg3ql1lkDz4X0V for ; Tue, 16 Feb 2021 14:53:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 3C15553B373; Tue, 16 Feb 2021 14:53:07 +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 3BE1A53B3FB for ; Tue, 16 Feb 2021 14:53:07 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Dg3ql14Snz4WxJ for ; Tue, 16 Feb 2021 14:53:07 +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 17EB212CEA for ; Tue, 16 Feb 2021 14:53:07 +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 11GEr7pa033220 for ; Tue, 16 Feb 2021 14:53:07 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 11GEr7Ke033219 for ports-bugs@FreeBSD.org; Tue, 16 Feb 2021 14:53:07 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 253557] lang/rust: unbreak RUST_BACKTRACE Date: Tue, 16 Feb 2021 14:53:07 +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: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jbeich@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: rust@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform bug_file_loc op_sys bug_status keywords bug_severity priority component assigned_to reporter cc flagtypes.name attachments.created 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: Tue, 16 Feb 2021 14:53:07 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D253557 Bug ID: 253557 Summary: lang/rust: unbreak RUST_BACKTRACE Product: Ports & Packages Version: Latest Hardware: Any URL: https://github.com/rust-lang/rust/issues/78184 OS: Any Status: New Keywords: patch Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: rust@FreeBSD.org Reporter: jbeich@FreeBSD.org CC: cem@freebsd.org Flags: maintainer-feedback?(rust@FreeBSD.org) Assignee: rust@FreeBSD.org Created attachment 222489 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D222489&action= =3Dedit v1 Let's backport upstream fixes to improve debugging experience outside of lldb/gdb. I didn't try hard to figure out which rust-libc copy (out of 3) is actually used by gimli. $ rustc foo.rs $ cat foo.rs fn main() { panic!("test"); } Before: $ RUST_BACKTRACE=3D1 ./foo thread 'main' panicked at 'test', foo.rs:2:5 stack backtrace: note: Some details are omitted, run with `RUST_BACKTRACE=3Dfull` for a ve= rbose backtrace. $ RUST_BACKTRACE=3Dfull ./foo thread 'main' panicked at 'test', foo.rs:2:5 stack backtrace: 0: 0x103b88c - 1: 0x106482e - 2: 0x103e0d3 - 3: 0x105142d - 4: 0x1051109 - 5: 0x1051a55 - 6: 0x1037067 - 7: 0x1036c88 - 8: 0x1036faf - 9: 0x1036dac - 10: 0x1036e5a - 11: 0x1036cbd - 12: 0x1037810 - 13: 0x1053897 - 14: 0x10377e6 - 15: 0x1036dd2 - 16: 0x1036152 - After: $ RUST_BACKTRACE=3D1 ./foo thread 'main' panicked at 'test', foo.rs:2:5 stack backtrace: 0: std::panicking::begin_panic 1: foo::main 2: core::ops::function::FnOnce::call_once note: Some details are omitted, run with `RUST_BACKTRACE=3Dfull` for a ve= rbose backtrace. $ RUST_BACKTRACE=3Dfull ./foo thread 'main' panicked at 'test', foo.rs:2:5 stack backtrace: 0: 0x103922c - ::fmt::hfae40981c683065e 1: 0x106755e - core::fmt::write::h0001cddca5707f2f 2: 0x103fc13 - std::io::Write::write_fmt::h5065311bc325393f 3: 0x105388d - std::panicking::default_hook::{{closure}}::h46488dcc7f63ea2a 4: 0x1053442 - std::panicking::default_hook::hab86e3010cd23dc8 5: 0x1053f33 - std::panicking::rust_panic_with_hook::h7e1eec77b252f630 6: 0x1036e77 - std::panicking::begin_panic::{{closure}}::h48d3e795edb17de3 7: 0x1036a98 - std::sys_common::backtrace::__rust_end_short_backtrace::h037ac64f2211a0e4 8: 0x1036dbf - std::panicking::begin_panic::h8dc7b9a5c0a89bc8 9: 0x1036bbc - foo::main::h2db1313a64510850 10: 0x1036c5a - core::ops::function::FnOnce::call_once::hdcf13a72d77bd803 11: 0x1036acd - std::sys_common::backtrace::__rust_begin_short_backtrace::h2e16a820ba2cd26c 12: 0x1037620 - std::rt::lang_start::{{closure}}::h0031a264716041f7 13: 0x105431b - std::rt::lang_start_internal::h6b2b475d129f0fdf 14: 0x10375f6 - std::rt::lang_start::h998db6b74ebc2b8f 15: 0x1036be2 - main 16: 0x1035fa2 - _start at /usr/src/lib/csu/amd64/crt1.c:76:7 --=20 You are receiving this mail because: You are the assignee for the bug.=