Zulip Chat Archive
Stream: general
Topic: Segfault after updating to v4.22.0-rc3
Vlad (Jul 12 2025 at 10:45):
After updating Lean from v4.21.0-rc3 to v4.22.0-rc3, our project's executable immediately segfaults when run. We reduced the issue to a minimal example:
import Mathlib.Order.Disjoint
-- Copied from Mathlib.Order.PropInstances
instance Prop.instBoundedOrder : BoundedOrder Prop where
top := True
le_top _ _ := True.intro
bot := False
bot_le := @False.elim
def main : IO Unit := do
IO.println "ok"
This example works in v4.21.0-rc3 but segfaults in v4.22.0-rc3 without output. However, commenting out the Prop.instBoundedOrder instance prevents the crash.
We are actively investigating this and would welcome suggestions on where to look. Could this be related to our configuration, or might it indicate a regression in v4.22?
OS: Windows 10
Lake: 5.0.0-src+7c3ca70
Mathlib: ab35957594546b036883f7a882015d6fa2d650bf
Yaël Dillies (Jul 12 2025 at 10:51):
See #mathlib4 > `import Mathlib.Order.PropInstances` causing segment fault
Mauricio Collares (Jul 12 2025 at 10:52):
There are other threads about it, but the summary is that this is fixed by lean4#9310, which will be backported to the 4.22 branch
Kim Morrison (Jul 25 2025 at 03:28):
This is fixed on v4.22.0-rc4 now.
Last updated: Dec 20 2025 at 21:32 UTC