Skip to content
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

Using tokio's Command causes the test case to be stuck when using tarpaulin #1056

Open
rongduan-zhu opened this issue Jul 30, 2022 · 1 comment
Assignees
Labels

Comments

@rongduan-zhu
Copy link

Describe the bug
Test case using tokio's Command to spawn a child process is stuck waiting for the future to complete. This did not happen in tarpaulin 0.16.0 and repros in newer version after it. Adding --follow-exec fixes the issue, however, it causes a segfault in tarpaulin in our production tests and unfortunately I have not been able to come up with repro for it. However, I've captured the debug output which might help shed some light on why the segfault happened.

0.16.0 has a different issue where tarpaulin would intermittently fail due to cargo_tarpaulin: Failed to get test coverage! Error: Failed to run tests: Attempting to handle tarpaulin being signaled which prompted us to upgrade to a newer version of tarpaulin but it seems starting from 0.17.0 is when the capability of tracing into binaries were added and we started seeing the issue above.

To Reproduce
I've created a repro at https://github.com/rongduan-zhu/tarpaulin-stuck-repro. You can just run cargo tarpaulin and the test will timeout after 60 seconds.

Running cargo test finishes instantly without any issues.

Expected behavior
Running cargo tarpaulin should be able to execute the test and yield the same result as cargo test

@xd009642
Copy link
Owner

You can now try --engine llvm and that may solve your issues - otherwise potentially it was unwittingly fixed and I didn't realise last year. Sorry for replying so late 😞

@xd009642 xd009642 added the bug label Jan 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants