Zulip Chat Archive

Stream: mathlib4

Topic: Stack overflow in `lake exe cache get`


Sébastien Gouëzel (Jan 30 2025 at 15:16):

On the branch pfaffelh_caratheodory1, I get a stack overflow when doing lake exe cache get. I'm on windows. Can anyone reproduce, or is it just me?

Rémy Degenne (Jan 30 2025 at 15:17):

I see the same error. Stack overflow detected. Aborting.

Sébastien Gouëzel (Jan 30 2025 at 15:21):

Could that be a corrupt olean on the cloud?

Sébastien Gouëzel (Jan 30 2025 at 15:23):

It already failed in https://github.com/leanprover-community/mathlib4/actions/runs/13042162431/job/36386203480, when CI tried to build the branch.

Sébastien Gouëzel (Jan 30 2025 at 15:52):

It doesn't look like a corrupt olean, because lake exe cache get- (just downloading the files but not uncompressing them) also fails, as well as lake exe cache clean. I've merged master, but it doesn't make a difference.

Sébastien Gouëzel (Jan 30 2025 at 15:55):

@Mario Carneiro , do you have an idea what could be going on here? The branch is #21036

Arthur Paulino (Jan 30 2025 at 16:04):

Maybe this helps: last time I saw this it was due to some cyclic import making the hashing algorithm loop

Ruben Van de Velde (Jan 30 2025 at 16:04):

There's no import cycle, is there?

Sébastien Gouëzel (Jan 30 2025 at 16:37):

Good catch, thanks! Changing the imports indeed fixes it.

Ruben Van de Velde (Jan 30 2025 at 16:41):

The command should really handle this better, but at least some of us recognize the symptoms now :)

Sébastien Gouëzel (Jan 30 2025 at 16:43):

Yes, the Zulip error message is much more helpful than the built-in one :-)

Jon Eugster (Jan 31 2025 at 05:11):

I've added this to the pile in #21238:

jon@computer mathlib4 % lake exe cache get
uncaught exception: dependency loop found involving Mathlib.Init!

Last updated: May 02 2025 at 03:31 UTC