ITADN

Failed to run tests due to segfault with tarpaulin

#1796ClosedAlexanderSchuetz97 创建于 2025-11-22
Hello, I am trying to run tarpaulin to get the coverage of an application that does indeed produce a segfault, but it also handles the segfault correctly with a signal handler. Normal "cargo test" runs as expected, but "cargo tarpaulin" errors out with Error: "Failed to run tests: A segfault occurred while executing tests" It is expected that the test produces a segmentation fault. I used to run tarpaulin on this project some time ago (several months) and it did not produce this behavior. The intended segfault also occured back then. I am running this on linux. Oddly enough specifying "--engine llvm" makes tarpaulin work as expected. (meaning the segfault normally jumps to the signal handler which properly handles the segfault and the test concludes as expected and I get my code coverage) Could you perhaps clarify how tarpaulin interacts with the signal handling of the process, because there is a large amount of other signals that I have to manually handle.
关闭于 2025-11-22 2 条评论