-
Notifications
You must be signed in to change notification settings - Fork 723
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Prerequisites
- Check that your issue is not already filed:
https://github.com/leanprover/lean4/issues - Reduce the issue to a minimal, self-contained, reproducible test case.
Avoid dependencies to Mathlib or Batteries. - Test your test case against the latest nightly release, for example on
https://live.lean-lang.org/#project=lean-nightly
(You can also use the settings there to switch to “Lean nightly”)
Description
When Lean compiles a file that imports both Lake.CLI and a module from a package that uses precompiled modules, it crashes with SIGSEGV.
Steps to Reproduce
- Download Archive.zip. It's the archive of a minimal Lean project to reproduce this issue.
- Unzip it, go into the directory and run
lake build Mini.
Expected behavior: Build succeeded.
Actual behavior: Build failed with error: Lean exited with code 139.
Versions
- Lean version:
lean4-nightly:nightly-2025-12-28 - OS version: MacOS 26.1 (arm64)
Additional Information
This seems related to #7388 (fixed by #8383), but that issue was closed, so I'm opening a new issue.
For the MWE above, the issue disappears if either precompileModules is disabled, or if import Lake.CLI is moved from Mini.lean into Mini/Basic.lean.
I cannot reproduce this issue on a Linux machine.
Impact
Add 👍 to issues you consider important. If others are impacted by this issue, please ask them to add 👍 to it.
dranov
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working