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

writeStatus uprobe gets context from argument not struct #1429

Open
MrAlias opened this issue Dec 16, 2024 · 3 comments
Open

writeStatus uprobe gets context from argument not struct #1429

MrAlias opened this issue Dec 16, 2024 · 3 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@MrAlias
Copy link
Contributor

MrAlias commented Dec 16, 2024

This passes true to get_Go_context as the 4th arg. However, the context is passed as a struct field, not an argument. Meaning this should be false.

I'm not sure how this is currently working. An investigation is needed.

@MrAlias MrAlias added the bug Something isn't working label Dec 16, 2024
@MrAlias MrAlias added this to the v0.20.0-alpha milestone Dec 16, 2024
@damemi
Copy link
Contributor

damemi commented Dec 16, 2024

I can take this if you haven't already committed to it @MrAlias

@damemi damemi self-assigned this Dec 16, 2024
@MrAlias
Copy link
Contributor Author

MrAlias commented Dec 16, 2024

FWIW, in my work on #1421 I have changed the value to false and things pass the e2e tests. But I haven't dug into why this is working in the first place and if the test are just false-nagatives.

@MrAlias
Copy link
Contributor Author

MrAlias commented Dec 17, 2024

SIG meeting notes: This is likely not getting the correct context, but the writeStatus function is only using this to get a "consistent key". Since Go > 1.17 the consistent key is based on the goroutine ID and not the context. Therefore, this is likely why we have not noticed this: we are not testing with Go <= 1.17.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants