<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:vince.a.bridgers@gmail.com" title="Vince Bridgers <vince.a.bridgers@gmail.com>"> <span class="fn">Vince Bridgers</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED WORKSFORME - Segmentation fault when running check-clang-python with UBSan"
   href="https://bugs.llvm.org/show_bug.cgi?id=39559">bug 39559</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>vince.a.bridgers@gmail.com
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>WORKSFORME
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED WORKSFORME - Segmentation fault when running check-clang-python with UBSan"
   href="https://bugs.llvm.org/show_bug.cgi?id=39559#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED WORKSFORME - Segmentation fault when running check-clang-python with UBSan"
   href="https://bugs.llvm.org/show_bug.cgi?id=39559">bug 39559</a>
              from <span class="vcard"><a class="email" href="mailto:vince.a.bridgers@gmail.com" title="Vince Bridgers <vince.a.bridgers@gmail.com>"> <span class="fn">Vince Bridgers</span></a>
</span></b>
        <pre>I looked into this, and am not able to repro under currently documented build
environment. I was able to repro under very particular build/run environments,
so I suspect David encountered one or the other issue that leads to this
segfault. This problem can occur due to 1 of the following reasons:

1) LLVM compiler built with LLVM_ENABLE_PIC=on. There was a patch created to
disable Python bindings under these conditions at some point. Perhaps this was
the problem at the time. 
2) Perhaps a problem with the Python version used - I'm guessing this was the
problem in the original report.

This problem has been reported a few times, and there have been different
approaches to addressing this. If a reader comes across this issue looking for
a solution, please look at those and also check out the following references. 

References … 

Python binding tests disabled when LLVM_ENABLE_PIC=OFF
<a href="https://lists.llvm.org/pipermail/cfe-commits/Week-of-Mon-20190114/257720.html">https://lists.llvm.org/pipermail/cfe-commits/Week-of-Mon-20190114/257720.html</a> 

Appears to be caused by a regression in Python. See
<a href="https://bugs.python.org/issue37140">https://bugs.python.org/issue37140</a></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>