Skip to content

Conversation

@3u13r
Copy link
Contributor

@3u13r 3u13r commented Jan 1, 2025

The update of gilium/ebpf introduced a beaking change in it's API: The offset in the UprobeOptions is now relative to the added option address. Since address was only default initalized, the library did not use address and offset as address for the uprobe, but tried to calculate the offset itself based on the given symbol. Since we set the path of the executable as symbol, the library errored when trying to resolve it.

Fixes #3491

How to test this PR: Run sudo -E go run _scripts/make.go test -v --test-set cmd/dlv --test-run='^.*EBPF.*$' on the main branch, notice how it fails and re-run on this branch.

The update of gilium/ebpf introduced a beaking change in it's API: The `offset` in the UprobeOptions is now relative to the added option `address`. Since `address` was only default initalized, the library did not use `address` and `offset` as address for the uprobe, but tried to calculate the offset itself based on the given symbol. Since we set the path of the executable as symbol, the library errored when trying to resolve it.

Fixes go-delve#3491
Copy link
Member

@derekparker derekparker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@derekparker derekparker merged commit 1dc394c into go-delve:master Jan 3, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants