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 epoll memory leak #2586

Merged
merged 1 commit into from
Dec 5, 2022
Merged

Conversation

stevenengler
Copy link
Contributor

@stevenengler stevenengler commented Dec 1, 2022

This would only leak rust file objects, so probably wouldn't have affected many applications. It would leak memory each time epoll_ctl was called with a fd pointing to a rust file object (except in the case of EPOLL_CTL_ADD).

As expected, no memory usage change in the benchmark tor sim:

ram_simtime

This would only leak rust file objects, so probably wouldn't have affected many
applications. It would leak memory each time `epoll_ctl` was called with a fd
pointing to a rust file object (except in the case of `EPOLL_CTL_ADD`).
@stevenengler stevenengler added the Type: Bug Error or flaw producing unexpected results label Dec 1, 2022
@stevenengler stevenengler self-assigned this Dec 1, 2022
@github-actions github-actions bot added the Component: Main Composing the core Shadow executable label Dec 1, 2022
@codecov
Copy link

codecov bot commented Dec 1, 2022

Codecov Report

Base: 67.02% // Head: 67.61% // Increases project coverage by +0.58% 🎉

Coverage data is based on head (ec9f408) compared to base (8650d87).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2586      +/-   ##
==========================================
+ Coverage   67.02%   67.61%   +0.58%     
==========================================
  Files         195      195              
  Lines       29056    29060       +4     
  Branches     5716     5716              
==========================================
+ Hits        19475    19649     +174     
+ Misses       5052     4856     -196     
- Partials     4529     4555      +26     
Flag Coverage Δ
tests 67.61% <100.00%> (+0.58%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/main/host/descriptor/mod.rs 66.73% <100.00%> (+0.72%) ⬆️
src/main/host/syscall/handler/random.rs 47.61% <0.00%> (-4.77%) ⬇️
src/lib/tsc/tsc_test.c 12.67% <0.00%> (ø)
src/main/utility/byte_queue.rs 56.01% <0.00%> (ø)
src/main/core/manager.rs 63.91% <0.00%> (+0.22%) ⬆️
src/lib/shadow-shim-helper-rs/src/signals.rs 70.70% <0.00%> (+0.63%) ⬆️
src/main/host/host.rs 81.09% <0.00%> (+0.64%) ⬆️
src/main/host/syscall/handler/socket.rs 65.85% <0.00%> (+0.66%) ⬆️
src/main/host/descriptor/shared_buf.rs 79.64% <0.00%> (+0.88%) ⬆️
... and 16 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@stevenengler stevenengler merged commit 71e67c5 into shadow:main Dec 5, 2022
@stevenengler stevenengler deleted the fix-epoll-mem-leak branch December 5, 2022 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Main Composing the core Shadow executable Type: Bug Error or flaw producing unexpected results
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants