<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/105547>105547</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            `double free or corruption (!prev)` in `llvm::PassRegistry::registerPass`
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          torokati44
      </td>
    </tr>
</table>

<pre>
    We have this crash triggered fairly often in Mesa lavapipe, by two specific visual tests: https://github.com/ruffle-rs/ruffle/pull/17574#issuecomment-2301759315

It has happened much more frequently with the `ubuntu-22.04` GirHub Actions runner, but updating the `mesa-vulkan-drivers` package from the `kisak/mesa` PPA on Launchpad has helped a lot then. Now it makes no difference on `ubuntu-24.04`, and while it's a lot less frequent overall, it's not fixed entirely.

I'm not sure whether this is more of a Mesa or an LLVM bug, but let's start the investigation here.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8U8GyozYQ_BpxmbJLFmDgwMHZLSepept6lUNyHmAAxUIi0gjHf58S7HtJLrnYAk231E03hqAnS9SK8gdRfs0w8ux8y867B7Iuiqxzw6v9nWDGjYBnHaD3GGZgr6eJPA0wovbmBW5ksqAtfKOAYHDDVa8k1BfoXsBPB2GlXo-6h02HiAaYAgeR32BmXtNCqLtQ90nzHLtz7xah7j6Oo6GTD59roe5rNEao-6Uqq0KoXIcQqXfLQpZPKpeXqmzySynkVyFvx-_PDDMGmHFdydIAS-xnWJwnGD39GcmyecFT8ww8E4irjF20HE9KnWUhrhJ-1P6n2MGtZ-1sAB-tJb9riwxxHZC1nT7ACwU8bdE80J4GrzfyIXGs2D9wSke65WP0oQM-hLonSJp5f7-Bs_CG0fbzisNxbTIrDYBgHCegPcMv7gmaYcEHBbAOBj2O5Mn2lOD_ElAcAtJV0Q7wnLUh0CxUFb4TGgrh0wZwG3lM9n75mLKOYdR_0QBkWXsyr_N_rBWqWvahED3BcyaeyR9J0eEw2Y2ARyycB7Tw9vbbN-ji9GGgoeOowOh3haDtRoH1hMlvmMnTORvafGjyBjNqL5UqVFmrQmVzm_cjDsUwdmU5yrqmpitULlEW13ooqBkz3SqpClmry-WaV0qd62vTd7Kqm7Lp60pWopC0oDZnY7bl7PyU7ZlqL7Isiyoz2JEJe0WUsvSEfVcolRrj2wQ6dXEKopBGBw7_0LBmQ624ysHFzuxpo-RB77yP665NqFqoy-ppE6pJEdD790sUqRL57R1D-JUmHdi_jjd-fyKfdsRVZtGb9n86tFMdf6fVuz-oZ6Huu4ZUq-8it1b9HQAA__8IGVPQ">