From nobody Wed Mar 30 00:15:36 2022 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id EBE8E1A4A66A for ; Wed, 30 Mar 2022 00:15:36 +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 4KSn5N46v2z4nb0 for ; Wed, 30 Mar 2022 00:15:36 +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 6E4506CD for ; Wed, 30 Mar 2022 00:15:36 +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 22U0FapY060916 for ; Wed, 30 Mar 2022 00:15:36 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 22U0FaG1060915 for bugs@FreeBSD.org; Wed, 30 Mar 2022 00:15:36 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 262914] Segfault in libunwind when cargo (from lang/rust) is ran with RUST_BACKTRACE=1 Date: Wed, 30 Mar 2022 00:15:36 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 13.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: pkubaj@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 List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648599336; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=h7jg0ar5qNZSEyf/NctBbg5gO6ty9DCgBuHVR1XXB5A=; b=b/o8pqeRTb3gTTRMrO3XsKLwxDu76AAoSz+4sCFL/rZ4VssO/qiro9T63oq7rU+LQ3TphV pllpRtuEG5nNUUJFZJ7f4kkYkhihGQVP4Wzbvb/yDSouDKe26eY3E02i4EgGKRPbkG2Wlj x2Kq0ditcf7r/rhS5gXIwUtk2a77sPAGnJVIWEPM4n+WN5T/OyD8iDfWKrE54lD8eXDISH xwt48Mg8bkwfT6EK172k4tb/gCc9vDW6DErd+j4NniSnOu1et487VUL7Ldr9rbhw09kXGF qSLz80PQ4NziZGtUGv4gOI7iSqcDFoftUVNNfqXFRzMz/FpTR6ZDyq6I+eE93A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1648599336; a=rsa-sha256; cv=none; b=Dg/w8AKfIyUqxfEECO/eJpaTYbmZbPjP1dcCI2jRav5Q8TqtNKN8skXCdvtPMOEQGm/Elk C4FSlxwznZBQPnMrvNHoAPF6ENErilzD5wp8H66YMUNInNvC4dQfImMl5tBHdgnPuLhkvq pXpGrfAAEwqwI26qebSRZ1M6jjPMaxQ4VxvX2XOrSiQW2Mh/xWUhgGfbjnOb1YWScxaNNB wijvX4wtUFzu3uQMPeuHY0VYax3A22pPEY1mNRl1a6ey7ub9vOL1J48L2P8dYtB77cv0In mxstMUStN2t+vwKRDpq6J5DSASFxPjpirbEX8FmVFjMAkb0eXnQOND7zNblvQg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262914 Bug ID: 262914 Summary: Segfault in libunwind when cargo (from lang/rust) is ran with RUST_BACKTRACE=3D1 Product: Base System Version: 13.1-RELEASE Hardware: powerpc OS: Any Status: New Severity: Affects Many People Priority: --- Component: misc Assignee: bugs@FreeBSD.org Reporter: pkubaj@FreeBSD.org How to reproduce: cargo new hello_cargo cd hello_cargo env RUST_BACKTRACE=3D1 cargo build Backtrace: Program terminated with signal SIGSEGV, Segmentation fault. Address not mapped to object. #0 libunwind::LocalAddressSpace::get32 (addr=3D431585656, this=3D) at /usr/src/contrib/llvm-project/libunwind/src/AddressSpace.hpp:164 164 memcpy(&val, (void *)addr, sizeof(val)); (gdb) bt #0 libunwind::LocalAddressSpace::get32 (addr=3D431585656, this=3D) at /usr/src/contrib/llvm-project/libunwind/src/AddressSpace.hpp:164 #1 libunwind::CFI_Parser::parseCIE (addressSpace=3D..., cie=3D431585656, cieInfo=3D0xffff82e8) at /usr/src/contrib/llvm-project/libunwind/src/DwarfParser.hpp:319 #2 0x421bf76c in libunwind::CFI_Parser::find= FDE (addressSpace=3D..., pc=3D18016363, ehSectionStart=3D28326632, sectionLength=3D, fdeHint=3D, fdeInfo=3D0= xffff8308, cieInfo=3D0xffff82e8) at /usr/src/contrib/llvm-project/libunwind/src/DwarfParser.hpp:252 #3 0x421bf458 in libunwind::UnwindCursor::getInfoFromDwarfSection (this=3D0xffff9848, pc=3D18016363, sects=3D..., fdeSectionOffsetHint=3D0) at /usr/src/contrib/llvm-project/libunwind/src/UnwindCursor.hpp:1566 #4 0x421bb658 in libunwind::UnwindCursor::setInfoBasedOnIPRegister (this=3D0xffff9848, isReturnAddress=3D) at /usr/src/contrib/llvm-project/libunwind/src/UnwindCursor.hpp:1960 #5 0x421bb418 in libunwind::UnwindCursor::step (this=3D0xffff9848) at /usr/src/contrib/llvm-project/libunwind/src/UnwindCursor.hpp:2105 #6 0x421ba108 in __unw_step (cursor=3D0xffff9848) at /usr/src/contrib/llvm-project/libunwind/src/libunwind.cpp:176 #7 0x421b8134 in _Unwind_Backtrace (callback=3D0x1977e74, ref=3D0xffff9c88= ) at /usr/src/contrib/llvm-project/libunwind/src/UnwindLevel1-gcc-ext.c:131 --=20 You are receiving this mail because: You are the assignee for the bug.=