From nobody Sat Jul 10 10:40:29 2021 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 DC53D12457DE for ; Sat, 10 Jul 2021 10:40:28 +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 4GMRPm5qv9z4chC for ; Sat, 10 Jul 2021 10:40:28 +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 B15FE2655F for ; Sat, 10 Jul 2021 10:40:28 +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 16AAeSUK008884 for ; Sat, 10 Jul 2021 10:40:28 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 16AAeSsR008883 for bugs@FreeBSD.org; Sat, 10 Jul 2021 10:40:28 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 257081] libunwind fails in Ceph test unittest_back_trace Date: Sat, 10 Jul 2021 10:40:29 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: wjw@digiware.nl X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@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 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 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D257081 --- Comment #1 from Willem Jan Withagen --- This is on: FreeBSD quad-b.digiware.nl 14.0-CURRENT FreeBSD 14.0-CURRENT #3 main-n247810-28f47a199cf: Thu Jul 8 20:47:10 CEST 2021=20=20=20=20 root@quad-b.digiware.nl:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG a= md64 Tested it on the very basic program: #include int main() { void *addrlist[100]; backtrace(addrlist, 100); } And got: Starting program: /tmp/a.out Program received signal SIGSEGV, Segmentation fault. libunwind::CFI_Parser::findFDE (addressSpace= =3D..., pc=3Dpc@entry=3D4195759, ehSectionStart=3D4196392, sectionLength=3D, fdeHint=3D, fdeHint@ent= ry=3D0, fdeInfo=3DfdeInfo@entry=3D0x7fffffffddc0, cieInfo=3D0x7fffffffdd88) at /usr/src/contrib/llvm-project/libunwind/src/DwarfParser.hpp:232 232 pint_t cfiLength =3D addressSpace.get32(p); (gdb) l 227 ? static_cast(-1) 228 : (ehSectionStart + sectionLength= ); 229 while (p < ehSectionEnd) { 230 pint_t currentCFI =3D p; 231 //fprintf(stderr, "findFDE() CFI at 0x%llX\n", (long long)p); 232 pint_t cfiLength =3D addressSpace.get32(p); 233 p +=3D 4; 234 if (cfiLength =3D=3D 0xffffffff) { 235 // 0xffffffff means length is really next 8 bytes 236 cfiLength =3D (pint_t)addressSpace.get64(p); (gdb) p /x *p Cannot access memory at address 0x800ffc (gdb) bt #0 libunwind::CFI_Parser::findFDE (addressSpace=3D..., pc=3Dpc@entry=3D4195759, ehSectionStart=3D4196392, sectionLength=3D, fdeHint=3D, fdeHint@ent= ry=3D0, fdeInfo=3DfdeInfo@entry=3D0x7fffffffddc0, cieInfo=3D0x7fffffffdd88) at /usr/src/contrib/llvm-project/libunwind/src/DwarfParser.hpp:232 #1 0x0000000800a9bef1 in libunwind::UnwindCursor::getInfoFromDwarfSection ( this=3Dthis@entry=3D0x7fffffffe400, pc=3Dpc@entry=3D4195759, sects=3D..= ., fdeSectionOffsetHint=3DfdeSectionOffsetHint@entry=3D0) at /usr/src/contrib/llvm-project/libunwind/src/UnwindCursor.hpp:1566 #2 0x0000000800a98b00 in libunwind::UnwindCursor::setInfoBasedOnIPRegister ( this=3D0x7fffffffe400, isReturnAddress=3Dtrue) at /usr/src/contrib/llvm-project/libunwind/src/UnwindCursor.hpp:1958 #3 0x0000000800a9895b in libunwind::UnwindCursor::step (this=3D0x7fffffffe400) at /usr/src/contrib/llvm-project/libunwind/src/UnwindCursor.hpp:2103 #4 0x0000000800a96305 in _Unwind_Backtrace (callback=3D0x800644fe0 , ref=3D0x7fffffffe598) at /usr/src/contrib/llvm-project/libunwind/src/UnwindLevel1-gcc-ext.c:1= 31 #5 0x0000000800644fa7 in backtrace (arr=3D, len=3D) at /usr/src/contrib/libexecinfo/unwind.c:69 #6 0x00000000004007bc in main () (gdb) --=20 You are receiving this mail because: You are the assignee for the bug.=