Date: Sun, 15 Jan 2017 18:34:16 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 216117] clang 4.0.0 crashes trying to build lld on i386 Message-ID: <bug-216117-29464-dobxn16LDp@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-216117-29464@https.bugs.freebsd.org/bugzilla/> References: <bug-216117-29464@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D216117 Dimitry Andric <dim@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dim@FreeBSD.org --- Comment #4 from Dimitry Andric <dim@FreeBSD.org> --- Hm, yes, I'm seeing this too, while building llvm38 even. Something is rot= ten, but it's hard to figure out what. For some reason, a cleanly built release= _40 r292009 on universe12a.f.o works fine, but on my local system, it doesn't. I'm trying valgrind to figure out what is going wrong, and it gives me: =3D=3D1793=3D=3D Invalid read of size 8 =3D=3D1793=3D=3D at 0x227C9BE: llvm::ValueHandleBase::AddToUseList() (in /usr/obj/share/dim/src/freebsd/base/projects/clang400-import/usr.bin/clang/= clang/clang.full) =3D=3D1793=3D=3D by 0x29A3F2D: llvm::AssumptionCache::AffectedValueCallbackVH::allUsesReplacedWith(llvm::V= alue*) (in /usr/obj/share/dim/src/freebsd/base/projects/clang400-import/usr.bin/clang/= clang/clang.full) =3D=3D1793=3D=3D by 0x227A884: llvm::ValueHandleBase::ValueIsRAUWd(llvm:= :Value*, llvm::Value*) (in /usr/obj/share/dim/src/freebsd/base/projects/clang400-import/usr.bin/clang/= clang/clang.full) =3D=3D1793=3D=3D by 0x227A504: llvm::Value::doRAUW(llvm::Value*, bool) (= in /usr/obj/share/dim/src/freebsd/base/projects/clang400-import/usr.bin/clang/= clang/clang.full) =3D=3D1793=3D=3D by 0x1C9791E: llvm::sroa::AllocaSliceRewriter::visitLoadInst(llvm::LoadInst&) (in /usr/obj/share/dim/src/freebsd/base/projects/clang400-import/usr.bin/clang/= clang/clang.full) =3D=3D1793=3D=3D by 0x1C880FD: llvm::sroa::AllocaSliceRewriter::visit((a= nonymous namespace)::Slice const*) (in /usr/obj/share/dim/src/freebsd/base/projects/clang400-import/usr.bin/clang/= clang/clang.full) =3D=3D1793=3D=3D by 0x1C86C9A: llvm::SROA::rewritePartition(llvm::Alloca= Inst&, llvm::sroa::AllocaSlices&, llvm::sroa::Partition&) (in /usr/obj/share/dim/src/freebsd/base/projects/clang400-import/usr.bin/clang/= clang/clang.full) =3D=3D1793=3D=3D by 0x1C88584: llvm::SROA::splitAlloca(llvm::AllocaInst&, llvm::sroa::AllocaSlices&) (in /usr/obj/share/dim/src/freebsd/base/projects/clang400-import/usr.bin/clang/= clang/clang.full) =3D=3D1793=3D=3D by 0x1C89A1D: llvm::SROA::runOnAlloca(llvm::AllocaInst&= ) (in /usr/obj/share/dim/src/freebsd/base/projects/clang400-import/usr.bin/clang/= clang/clang.full) =3D=3D1793=3D=3D by 0x1C8B309: llvm::SROA::runImpl(llvm::Function&, llvm::DominatorTree&, llvm::AssumptionCache&) (in /usr/obj/share/dim/src/freebsd/base/projects/clang400-import/usr.bin/clang/= clang/clang.full) =3D=3D1793=3D=3D by 0x1C9C239: llvm::sroa::SROALegacyPass::runOnFunction(llvm::Function&) (in /usr/obj/share/dim/src/freebsd/base/projects/clang400-import/usr.bin/clang/= clang/clang.full) =3D=3D1793=3D=3D by 0x22B78D9: llvm::FPPassManager::runOnFunction(llvm::= Function&) (in /usr/obj/share/dim/src/freebsd/base/projects/clang400-import/usr.bin/clang/= clang/clang.full) =3D=3D1793=3D=3D Address 0x5a5a5a5a5a5a5a62 is not stack'd, malloc'd or (r= ecently) free'd =3D=3D1793=3D=3D pid 1793 (memcheck-amd64-free): sigreturn rflags =3D 0x4 =3D=3D1793=3D=3D =3D=3D1793=3D=3D Process terminating with default action of signal 10 (SIGB= US): dumping core =3D=3D1793=3D=3D Hardware error at address 0x40F7A495F =3D=3D1793=3D=3D at 0x227C9BE: llvm::ValueHandleBase::AddToUseList() (in /usr/obj/share/dim/src/freebsd/base/projects/clang400-import/usr.bin/clang/= clang/clang.full) =3D=3D1793=3D=3D by 0x29A3F2D: llvm::AssumptionCache::AffectedValueCallbackVH::allUsesReplacedWith(llvm::V= alue*) (in /usr/obj/share/dim/src/freebsd/base/projects/clang400-import/usr.bin/clang/= clang/clang.full) =3D=3D1793=3D=3D by 0x227A884: llvm::ValueHandleBase::ValueIsRAUWd(llvm:= :Value*, llvm::Value*) (in /usr/obj/share/dim/src/freebsd/base/projects/clang400-import/usr.bin/clang/= clang/clang.full) =3D=3D1793=3D=3D by 0x227A504: llvm::Value::doRAUW(llvm::Value*, bool) (= in /usr/obj/share/dim/src/freebsd/base/projects/clang400-import/usr.bin/clang/= clang/clang.full) =3D=3D1793=3D=3D by 0x1C9791E: llvm::sroa::AllocaSliceRewriter::visitLoadInst(llvm::LoadInst&) (in /usr/obj/share/dim/src/freebsd/base/projects/clang400-import/usr.bin/clang/= clang/clang.full) =3D=3D1793=3D=3D by 0x1C880FD: llvm::sroa::AllocaSliceRewriter::visit((a= nonymous namespace)::Slice const*) (in /usr/obj/share/dim/src/freebsd/base/projects/clang400-import/usr.bin/clang/= clang/clang.full) =3D=3D1793=3D=3D by 0x1C86C9A: llvm::SROA::rewritePartition(llvm::Alloca= Inst&, llvm::sroa::AllocaSlices&, llvm::sroa::Partition&) (in /usr/obj/share/dim/src/freebsd/base/projects/clang400-import/usr.bin/clang/= clang/clang.full) =3D=3D1793=3D=3D by 0x1C88584: llvm::SROA::splitAlloca(llvm::AllocaInst&, llvm::sroa::AllocaSlices&) (in /usr/obj/share/dim/src/freebsd/base/projects/clang400-import/usr.bin/clang/= clang/clang.full) =3D=3D1793=3D=3D by 0x1C89A1D: llvm::SROA::runOnAlloca(llvm::AllocaInst&= ) (in /usr/obj/share/dim/src/freebsd/base/projects/clang400-import/usr.bin/clang/= clang/clang.full) =3D=3D1793=3D=3D by 0x1C8B309: llvm::SROA::runImpl(llvm::Function&, llvm::DominatorTree&, llvm::AssumptionCache&) (in /usr/obj/share/dim/src/freebsd/base/projects/clang400-import/usr.bin/clang/= clang/clang.full) =3D=3D1793=3D=3D by 0x1C9C239: llvm::sroa::SROALegacyPass::runOnFunction(llvm::Function&) (in /usr/obj/share/dim/src/freebsd/base/projects/clang400-import/usr.bin/clang/= clang/clang.full) =3D=3D1793=3D=3D by 0x22B78D9: llvm::FPPassManager::runOnFunction(llvm::= Function&) (in /usr/obj/share/dim/src/freebsd/base/projects/clang400-import/usr.bin/clang/= clang/clang.full) --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-216117-29464-dobxn16LDp>