From owner-freebsd-bugs@freebsd.org Tue Jan 19 20:14:25 2016 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 10B8FA88C19 for ; Tue, 19 Jan 2016 20:14:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DCBDE121E for ; Tue, 19 Jan 2016 20:14:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u0JKEOkK021050 for ; Tue, 19 Jan 2016 20:14:24 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 206384] llvm libunwind segfaults while building lang/polyml Date: Tue, 19 Jan 2016 20:14:25 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 11.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: emaste@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-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 MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jan 2016 20:14:25 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206384 --- Comment #2 from Ed Maste --- The large stack usage comes from this function -- note sub $0x878,%rsp: template void UnwindCursor::setInfoBasedOnIPRegister(bool isReturnAddress) { 92d0: 55 push %rbp 92d1: 48 89 e5 mov %rsp,%rbp 92d4: 41 57 push %r15 92d6: 41 56 push %r14 92d8: 41 55 push %r13 92da: 41 54 push %r12 92dc: 53 push %rbx 92dd: 48 81 ec 78 08 00 00 sub $0x878,%rsp from the stack-allocated typename CFI_Parser::PrologInfo prolog 1229 #if _LIBUNWIND_SUPPORT_DWARF_UNWIND 1230 // There is no static unwind info for this pc. Look to see if an = FDE was 1231 // dynamically registered for it. 1232 pint_t cachedFDE =3D DwarfFDECache::findFDE(0, pc); 1233 if (cachedFDE !=3D 0) { 1234 CFI_Parser::FDE_Info fdeInfo; 1235 CFI_Parser::CIE_Info cieInfo; 1236 const char *msg =3D CFI_Parser::decodeFDE(_addressSpace, 1237 cachedFDE, &fdeInfo, &cieInfo); 1238 if (msg =3D=3D NULL) { 1239 typename CFI_Parser::PrologInfo prolog; 1240 if (CFI_Parser::parseFDEInstructions(_addressSpace, fdeInf= o, cieInfo, 1241 pc, &prolog)) { (lldb) p sizeof(PrologInfo) (unsigned long) $10 =3D 1952 --=20 You are receiving this mail because: You are the assignee for the bug.=