-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cryptol hangs on :r
with some modules
#1298
Comments
It does get unstuck if you interrupt it with ctrl-C (which resets the solver) and then do |
I investigated what's happening here, and to me this looks like a |
This appears to be version specific as well. Z3 version 4.8.9 exhibits the hang, but a wide variety of other versions (that I happen to have lying around) from 4.8.1 to 4.8.11 do not. |
#965 seems like it might be related too, it also seems specific to Z3 4.8.9. |
I ran into a variation of this issue just now. Unlike before, it no longer requires a reload; it actually hangs when the module is first loaded. (The bug is triggered by exactly the same source file listed in the original post above.) I did a bisection, and found that 3fabe4a (#1302) is the first bad commit. This commit only modifies the definition of I'm see the bug with z3-4.8.9. Switching to 4.8.10 seems to make it work. I guess we should just consider 4.8.9 to be deprecated? |
Seems reasonable, although I am using |
The cryptol README says, "Cryptol generally requires the most recent version of Z3, but you can see the specific version tested in CI by looking here." The link indicates z3 version 4.8.10, so I would hope that 4.8.10 actually works. Is that link actually right? Are we using 4.8.10 in CI? |
We do appear to be using 4.8.10 indeed, so perhaps I am just not being patient enough. The two tests I am having trouble with are |
It would appear that the problem with
|
The problem seems to occur when reloading a file that contains at least two different "tricky" definitions that need solver support to type check. Here's a minimized example:
Loading it with
cryptol Test.cry
works just fine, taking practically no time.But then after typing
:r
, it prints the "Loading module" messages and then just hangs, with z3 running at 100% cpu.The bug occurs with a recent master version (c013035) on MacOS. This seems to be a regression, as the bug does not occur with the earlier cryptol-2.11 release.
The text was updated successfully, but these errors were encountered: