<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 - ModuleSummaryIndex::print() crashes on a thinlto summary"
   href="https://bugs.llvm.org/show_bug.cgi?id=43048">43048</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>ModuleSummaryIndex::print() crashes on a thinlto summary
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>MacOS X
          </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>Linker
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>karthikeyan.m@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Repro: 

Run llvm-as -d on /llvm/test/Assembler/thinlto-summary.ll

Reproduced on master at commit ee6700f69766b57849f483f471387229e495e311

kmanivannan@kmanivannan-mbp:~/local/llvm-project-master/build$ bin/llvm-as  -d
../llvm/test/Assembler/thinlto-summary.ll

Here's the assembly:
; ModuleID = '../llvm/test/Assembler/thinlto-summary.ll'
source_filename = "../llvm/test/Assembler/thinlto-summary.ll"

^0 = module: (path: "thinlto-summary1.o", hash: (1369602428, 2747878711,
259090915, 2507395659, 1141468049))
^1 = module: (path: "thinlto-summary2.o", hash: (2998369023, 4283347029,
1195487472, 2757298015, 1852134156))
^2 = gv: (Stack dump:
0.      Program arguments: bin/llvm-as -d
../llvm/test/Assembler/thinlto-summary.ll
0  llvm-as                  0x0000000106b4afbc
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 60
1  llvm-as                  0x0000000106b4b579
PrintStackTraceSignalHandler(void*) + 25
2  llvm-as                  0x0000000106b49116 llvm::sys::RunSignalHandlers() +
118
3  llvm-as                  0x0000000106b4f572 SignalHandler(int) + 210
4  libsystem_platform.dylib 0x00007fff66542b5d _sigtramp + 29
5  libsystem_platform.dylib 000000000000000000 _sigtramp + 18446603338799371456
6  llvm-as                  0x0000000106955a89 llvm::Value::getName() const +
25
7  llvm-as                  0x000000010666300b llvm::ValueInfo::name() const +
59
8  llvm-as                  0x000000010666049a (anonymous
namespace)::AssemblyWriter::printSummaryInfo(unsigned int, llvm::ValueInfo
const&) + 90
9  llvm-as                  0x000000010663c550 (anonymous
namespace)::AssemblyWriter::printModuleSummaryIndex() + 1664
10 llvm-as                  0x000000010663be47
llvm::ModuleSummaryIndex::print(llvm::raw_ostream&, bool) const + 119
11 llvm-as                  0x00000001064feac1 main + 1121
12 libdyld.dylib            0x00007fff663573d5 start + 1
13 libdyld.dylib            0x0000000000000003 start + 18446603338801384495
Segmentation fault: 11</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>