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

Call runtime.LockOSThread() before ptrace #363

Merged
merged 2 commits into from
Oct 3, 2023

Conversation

RonFed
Copy link
Contributor

@RonFed RonFed commented Oct 2, 2023

From my testing, ptrace-ing the instrumented process failed every once in a while with an error "no such process"
golang/go#43685 seems to describe the issue.
This PR should make sure the OS thread of our code is fixed durring the ptrace attachment and mmap call.

@RonFed RonFed requested a review from a team October 2, 2023 11:38
@edeNFed
Copy link
Contributor

edeNFed commented Oct 3, 2023

lgtm

@edeNFed edeNFed merged commit 6694a25 into open-telemetry:main Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants