[llvm-bugs] [Bug 37020] New: lld sometimes fails with VC++ /Zi builds

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Apr 5 13:55:07 PDT 2018


            Bug ID: 37020
           Summary: lld sometimes fails with VC++ /Zi builds
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: COFF
          Assignee: unassignedbugs at nondot.org
          Reporter: brucedawson at chromium.org
                CC: llvm-bugs at lists.llvm.org

Sometimes when linking VC++ builds of Chrome with lld there is a fatal
assertion failure. The repro is fairly simple:

> gn gen out\test --args="use_lld=true is_clang=false is_component_build=true"
> ninja.exe -C out\test base
../../build/toolchain/win/tool_wrapper.py link-wrapper environment.x64 False
../../third_party/llvm-build/Release+Asserts/bin/lld-link.exe /nologo
/IMPLIB:./base.dll.lib /DLL /OUT:./base.dll /PDB:./base.dll.pdb @./base.dll.rsp
Assertion failed: Indices.size() == 2, file
C:\b\rr\tmp7g7qqx\w\src\third_party\llvm\tools\lld\COFF\PDB.cpp, line 536
Wrote crash dump file "d:\dumps\lld-link.exe.153776.dmp"

This was tested from Chromium commit hash
e4518558818681e014f819330f8cc9655a616769. This bug is a 100% repro. The call
stack is:

00 lld_link!HandleAbort
01 lld_link!raise
02 lld_link!abort
03 lld_link!common_assert_to_stderr<wchar_t>
04 lld_link!common_assert
05 lld_link!_wassert
06 lld_link!translateIdSymbols
07 lld_link!mergeSymbolRecords::<unnamed-tag>::operator()
08 lld_link!llvm::codeview::forEachCodeViewRecord
09 lld_link!mergeSymbolRecords
0a lld_link!`anonymous namespace'::PDBLinker::addObjFile
0b lld_link!`anonymous namespace'::PDBLinker::addObjectsToPDB
0c lld_link!lld::coff::createPDB
0d lld_link!`anonymous namespace'::Writer::run
0e lld_link!lld::coff::writeResult
0f lld_link!lld::coff::LinkerDriver::link
10 lld_link!lld::coff::link
11 lld_link!main
12 lld_link!invoke_main
13 lld_link!__scrt_common_main_seh
14 kernel32!BaseThreadInitThunk
15 ntdll!RtlUserThreadStart

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180405/ff9569af/attachment.html>

More information about the llvm-bugs mailing list