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

--follow-exec gives Instrumentation address clash and segfault #1153

Open
mokhaled2992 opened this issue Dec 2, 2022 · 1 comment
Open
Assignees
Labels

Comments

@mokhaled2992
Copy link

I have a test binary that starts the main binary and tests its APIs. When I run tarpaulin with --follow-exec as follows

cargo tarpaulin --follow-exec --out Xml  --profile coverage --bin tests-bin --verbose

I get a segfault and the verbose output shows the following message

Dec 02 13:05:15.538 DEBUG cargo_tarpaulin::statemachine::linux: Instrumentation address clash, ignoring 0x104eb5a
Dec 02 13:05:15.538 DEBUG cargo_tarpaulin::statemachine::linux: Instrumentation address clash, ignoring 0x104c927
Dec 02 13:05:15.538 DEBUG cargo_tarpaulin::statemachine::linux: Instrumentation address clash, ignoring 0x104f9d4
Dec 02 13:05:15.538 DEBUG cargo_tarpaulin::statemachine::linux: Instrumentation address clash, ignoring 0x105103f
Dec 02 13:05:15.538 DEBUG cargo_tarpaulin::statemachine::linux: Instrumentation address clash, ignoring 0x104c554
Dec 02 13:05:15.538 DEBUG cargo_tarpaulin::statemachine::linux: Instrumentation address clash, ignoring 0x104c611
Dec 02 13:05:15.538 DEBUG cargo_tarpaulin::statemachine::linux: Instrumentation address clash, ignoring 0x104c7f2
Dec 02 13:05:15.538 DEBUG cargo_tarpaulin::statemachine::linux: Instrumentation address clash, ignoring 0x104febf
Dec 02 13:05:15.538 DEBUG cargo_tarpaulin::statemachine::linux: Instrumentation address clash, ignoring 0x104d914
Dec 02 13:05:15.538 DEBUG cargo_tarpaulin::statemachine::linux: Instrumentation address clash, ignoring 0x104fcda
Dec 02 13:05:15.538 DEBUG cargo_tarpaulin::statemachine::linux: Instrumentation address clash, ignoring 0x104ca3f
Dec 02 13:05:15.538 DEBUG cargo_tarpaulin::statemachine::linux: Instrumentation address clash, ignoring 0x1050df2
Dec 02 13:05:15.538 DEBUG cargo_tarpaulin::statemachine::linux: Instrumentation address clash, ignoring 0x1050e5a
Dec 02 13:05:15.538 DEBUG cargo_tarpaulin::statemachine::linux: Instrumentation address clash, ignoring 0x1051f14
Dec 02 13:05:15.538 DEBUG cargo_tarpaulin::statemachine::linux: Instrumentation address clash, ignoring 0x104ed3f
Dec 02 13:05:15.538 DEBUG cargo_tarpaulin::statemachine::linux: Instrumentation address clash, ignoring 0x10521bf
Dec 02 13:05:15.538 DEBUG cargo_tarpaulin::statemachine::linux: Instrumentation address clash, ignoring 0x104fa91
Dec 02 13:05:15.538 DEBUG cargo_tarpaulin::statemachine::linux: Instrumentation address clash, ignoring 0x1050c11
Dec 02 13:05:15.538 DEBUG cargo_tarpaulin::statemachine::linux: Instrumentation address clash, ignoring 0x1051cd4
Dec 02 13:05:15.538 DEBUG cargo_tarpaulin::statemachine::linux: Instrumentation address clash, ignoring 0x1051f72
Dec 02 13:05:15.538 DEBUG cargo_tarpaulin::statemachine::linux: Instrumentation address clash, ignoring 0x10520a7
Dec 02 13:05:15.538 DEBUG cargo_tarpaulin::statemachine::linux: Instrumentation address clash, ignoring 0x104ec27
@mokhaled2992 mokhaled2992 changed the title --follow-exec Instrumentation address clash --follow-exec Instrumentation address clash and segfault Dec 2, 2022
@mokhaled2992 mokhaled2992 changed the title --follow-exec Instrumentation address clash and segfault --follow-exec gives Instrumentation address clash and segfault Dec 2, 2022
@xd009642 xd009642 added the bug label Jan 26, 2023
@xd009642
Copy link
Owner

So one solution is --engine llvm that said I still aim to fix the issues with ptrace and follow-exec, they're just not the easiest things to debug

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