<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - lld crashes in GlobalTypeTableBuilder::getType"
href="https://bugs.llvm.org/show_bug.cgi?id=36455">36455</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>lld crashes in GlobalTypeTableBuilder::getType
</td>
</tr>
<tr>
<th>Product</th>
<td>lld
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>COFF
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>trass3r@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Tried building llvm with clang-cl and lld-link (and -mllvm
-emit-codeview-ghash-section / -DEBUG:GHASH).
$ "C:\Program Files\LLVM\msbuild-bin\link.exe" /nologo
tools\llvm-symbolizer\CMakeFiles\llvm-symbolizer.dir\llvm-symbolizer.cpp.obj
tools\llvm-symbolizer\CMakeFiles\llvm-symbolizer.dir\__\__\resources\windows_version_resource.rc.res
/out:bin\llvm-symbolizer.exe /implib:lib\llvm-symbolizer.lib
/pdb:bin\llvm-symbolizer.pdb /version:0.0 /machine:x64 /DEBUG:GHASH /OPT:REF
/OPT:ICF /STACK:10000000 /INCREMENTAL:NO /subsystem:console
lib\LLVMDebugInfoDWARF.lib lib\LLVMDebugInfoPDB.lib lib\LLVMObject.lib
lib\LLVMSupport.lib lib\LLVMSymbolize.lib lib\LLVMDebugInfoDWARF.lib
lib\LLVMDebugInfoPDB.lib lib\LLVMDebugInfoCodeView.lib lib\LLVMDebugInfoMSF.lib
"C:\PROGRA~2\MICROS~2\2017\Professional\DIA SDK\lib\amd64\diaguids.lib"
lib\LLVMObject.lib lib\LLVMBitReader.lib lib\LLVMCore.lib
lib\LLVMBinaryFormat.lib lib\LLVMMCParser.lib lib\LLVMMC.lib
lib\LLVMSupport.lib psapi.lib shell32.lib ole32.lib uuid.lib
lib\LLVMDemangle.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib
ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST
/MANIFESTFILE:bin\llvm-symbolizer.exe.manifest
0xC0000005: Access violation reading location 0x0000020239B71DC:
llvm::codeview::GlobalTypeTableBuilder::getType(llvm::codeview::TypeIndex
Index={...}) Line 62
=> Type.Type = static_cast<TypeLeafKind>(uint16_t(P->RecordKind));
[Inline Frame]
llvm::codeview::TypeCollection::ForEachRecord(addTypeInfo::__l2::void
<lambda>(llvm::codeview::TypeIndex, const llvm::codeview::CVRecord<enum
llvm::codeview::TypeLeafKind> &) Func=void <lambda>(llvm::codeview::TypeIndex
TI, const llvm::codeview::CVRecord<enum llvm::codeview::TypeLeafKind> &
Type){...}) Line 40
addTypeInfo(llvm::pdb::TpiStreamBuilder & TpiBuilder,
llvm::codeview::TypeCollection & TypeTable={...}) Line 227
PDBLinker::addObjectsToPDB() Line 929
lld::coff::createPDB(lld::coff::SymbolTable * Symtab=0x0000020224e962a0,
llvm::ArrayRef<lld::coff::OutputSection *> OutputSections={...},
llvm::ArrayRef<unsigned char> SectionTable={...}, const
llvm::codeview::DebugInfo & BuildId) Line 1032
Writer::run() Line 340
lld::coff::writeResult() Line 179
lld::coff::LinkerDriver::link(llvm::ArrayRef<char const *> ArgsArr) Line 1449
lld::coff::link(llvm::ArrayRef<char const *> Args={...}, bool
CanExitEarly=true, llvm::raw_ostream & Diag) Line 74
main(int Argc, const char * * Argv=0x0000020224e61af0) Line 120</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>