<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 - Crash with debug entries not fitting into 2^16 bytes (dwarf < 5)"
   href="https://bugs.llvm.org/show_bug.cgi?id=41038">41038</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Crash with debug entries not fitting into 2^16 bytes (dwarf < 5)
          </td>
        </tr>

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

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

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>DebugInfo
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>florian_hahn@apple.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>jdevlieghere@apple.com, keith.walker@arm.com, llvm-bugs@lists.llvm.org, paul_robinson@playstation.sony.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=21584" name="attach_21584" title="exceeds size limit with dwarf < 5">attachment 21584</a> <a href="attachment.cgi?id=21584&action=edit" title="exceeds size limit with dwarf < 5">[details]</a></span>
exceeds size limit with dwarf < 5

Currently LLVM crashes when we have too many debug values and exceed the 2^16
byte size in DwarfDebug::emitDebugLocEntryLocation.

Attached is a reduced example (still has around 16k llvm.dbg.value calls),
which crashes with `clang -Os`.

I am happy to look into the issue, but I would appreciate your thoughts on what
to do if we have too many debug entries.</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>