<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 - libcxxabi incompatible with libsupc++"
   href="https://bugs.llvm.org/show_bug.cgi?id=39744">39744</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>libcxxabi incompatible with libsupc++
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libc++abi
          </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>enhancement
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>All Bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>stsp@list.ru
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org, mclow.lists@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=21139" name="attach_21139" title="test case">attachment 21139</a> <a href="attachment.cgi?id=21139&action=edit" title="test case">[details]</a></span>
test case

When you dlopen the lib that depends on libstdc++/libsupc++
and use RTLD_GLOBAL, libc++abi will crash.
I already filled the mesa bug to stop using RTLD_GLOBAL for that:
<a href="https://bugs.freedesktop.org/show_bug.cgi?id=108669">https://bugs.freedesktop.org/show_bug.cgi?id=108669</a>
But I think libc++abi should be binary compatible with
libsupc++, so I suppose there should be no crash even in that case.

Attached is a test-case.
Run "make" then "./main".
Will crash.</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>