llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
28.97k stars 11.94k forks source link

`double free or corruption (!prev)` in `llvm::PassRegistry::registerPass` #105547

Open torokati44 opened 2 months ago

torokati44 commented 2 months ago

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 GitHub 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.

torokati44 commented 2 months ago

Cross-referencing: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11797