-
Notifications
You must be signed in to change notification settings - Fork 89
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
Running cargo test
causes a segfault.
#217
Comments
This is a bug on Linux on modern Intel & AMD CPUs. We are aware of the issue, and are planning to address it soon. @tekul running individual tests should succeed - it's just running the entire suite that fails. |
Thanks for reporting it. This bug also impacts our project, which crashes on x86. |
Bump this, this is impacting users and there is still no solution today. |
A workaround we found if your project is using deno in rust tests is to use the #[cfg(test)]
use ctor::ctor;
#[cfg(test)]
#[ctor]
// Make sure deno runtime is initialized in the main thread in test executables.
fn init_deno_runtime() {
deno_core::JsRuntime::init_platform(None);
} |
This was fixed by #471 |
The details are as reported in denoland/deno#19926. Essentially we are using deno embedded in a project and started seeing segfaults after a particular version. I noticed that I saw the same issue when running
cargo test
in deno, and also in deno_core (anything with v8 after version 0.74.3).As described in my last comment in that issue, I get a segfault running
cargo clean
followed bycargo test
with the latest deno_core 6a369d5.The machine is running Arch Linux:
I also get the same error on a different laptop using the same OS.
The text was updated successfully, but these errors were encountered: