<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 - clang crashed with SIGSEGV in llvm:ManagedStaticBase::destroy()"
   href="https://bugs.llvm.org/show_bug.cgi?id=39211">39211</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang crashed with SIGSEGV in llvm:ManagedStaticBase::destroy()
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>6.0
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>Linux
          </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>-New Bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>doublemice@qq.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=20975" name="attach_20975" title="compile file,dmesg.txt,file created by ltrace and strace.">attachment 20975</a> <a href="attachment.cgi?id=20975&action=edit" title="compile file,dmesg.txt,file created by ltrace and strace.">[details]</a></span>
compile file,dmesg.txt,file created by ltrace and strace.

System details:
  ubuntu 18.04 linux 4.15.0-34.37-generic 4.15.18
  clang 6.0

Bug details:
  when compile one c file with "-Xclang -load -Xclang" option to load a custom
llvm-pass.so, clang crash with eip point to an unexpected address.

StackTrace
  ??()
  ??() from /usr/lib/llvm-6.0/bin/../lib/libLLVM-6.0.so.1
  llvm::ManagedStaticBase:destroy() const() from
/usr/lib/llvm-6.0/bin/../lib/libLLVM-6.0.so.1
  llvm::llvm_shutdown() () from /usr/lib/llvm-6.0/bin/../lib/libLLVM-6.0.s0.1
  main()

Compile cmd:
  clang -Xclang -load -Xclang llvm-pass.so test-instr.c -o test-instr


Check the attachment with trace log and compiled file.</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>