-
Notifications
You must be signed in to change notification settings - Fork 15
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
Make LeanDefinitionalEngine::new() thread safe #227
Comments
Merged
Removing the "bug" label since this is expected behavior IIUC. integration_tests_on_def_impl() calls LeanDefinitionalEngine::new() which is implemented as:
https://github.com/digama0/lean-sys/blob/main/src/init.rs#L6 notes that Keeping the issue open as we should switch to the thread-safe calls if possible. |
andrewmwells-amazon
changed the title
Issue running Lean in tests
Make LeanDefinitionalEngine::new() thread safe
Mar 4, 2024
Merged
andrewmwells-amazon
added a commit
that referenced
this issue
Jun 20, 2024
Signed-off-by: Andrew Wells <[email protected]>
andrewmwells-amazon
added a commit
that referenced
this issue
Jun 20, 2024
Signed-off-by: Andrew Wells <[email protected]>
andrewmwells-amazon
added a commit
that referenced
this issue
Jun 20, 2024
Signed-off-by: Andrew Wells <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Before opening, please confirm:
Bug Category
Other
Describe the bug
If I try to run multiple
#[test]
s that use the Lean engine (created viaLeanDefinitionalEngine::new()
), then I get a(signal: 11, SIGSEGV: invalid memory reference)
failure. If I run with the--test-threads=1
option it looks like the first test succeeds, but the next one fails.Expected behavior
No reponse
Reproduction steps
To observe this behavior, make a second copy of the integration_tests_on_def_impl() test and run
cargo test
.Code Snippet
No response
Log output
No response
Additional configuration
No response
Operating System
AL2
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: