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

Fix sporadic segmentation fault when running test-suite #121

Merged

Conversation

MatteoNardi
Copy link
Contributor

@MatteoNardi MatteoNardi commented Dec 7, 2022

Fix #120 by upgrading aya to latest git commit. This includes a map API refactor which adds better tracking of resources, making it impossible to drop aya::Bpf before a PerfEvenArray buffer. We may want to delay this until aya publishes 0.12

This PR depends on #119

@MatteoNardi MatteoNardi linked an issue Dec 7, 2022 that may be closed by this pull request
Fix #120 by upgrading aya to latest git revision. This includes a map API
refactor which adds better tracking of resources, making it impossible
to drop `aya::Bpf` before a PerfEvenArray buffer.
@MatteoNardi
Copy link
Contributor Author

The aya regression is now fixed. This works now.

The old `struct bpf_map_def { ... }` syntax is deprecated in libbpf.
Switch to the new syntax where supported by aya:
- Don't switch yet perf event array maps (not supported yet by aya)
- Don't switch yet pinned maps (ideally, we'd like to pin them from
  user-space)
@MatteoNardi MatteoNardi force-pushed the 120-sporadic-segmentation-fault-when-running-test-suite branch from ab3f570 to 4eacbdf Compare January 9, 2023 08:35
@MatteoNardi MatteoNardi changed the base branch from main to 73-make-sending-large-ebpf-events-more-memory-efficient January 9, 2023 09:00
@MatteoNardi MatteoNardi marked this pull request as ready for review January 9, 2023 09:02
Copy link
Member

@banditopazzo banditopazzo left a comment

Choose a reason for hiding this comment

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

LGTM, just a few minor comments

bpf-common/src/program.rs Outdated Show resolved Hide resolved
bpf-common/src/program.rs Outdated Show resolved Hide resolved
@MatteoNardi MatteoNardi changed the base branch from 73-make-sending-large-ebpf-events-more-memory-efficient to main January 16, 2023 16:42
@MatteoNardi MatteoNardi merged commit cf8469e into main Jan 16, 2023
@MatteoNardi MatteoNardi deleted the 120-sporadic-segmentation-fault-when-running-test-suite branch January 16, 2023 16:49
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.

Sporadic segmentation fault when running test-suite
2 participants