Skip to content

Unref partial packet during tcp free#1483

Merged
stevenengler merged 1 commit intoshadow:mainfrom
stevenengler:fix-packet-mem-leak
Jun 29, 2021
Merged

Unref partial packet during tcp free#1483
stevenengler merged 1 commit intoshadow:mainfrom
stevenengler:fix-packet-mem-leak

Conversation

@stevenengler
Copy link
Copy Markdown
Contributor

@stevenengler stevenengler commented Jun 29, 2021

Closes #1413.

This bug is unrelated to the issue that prevents newer versions of tor from running properly in Shadow.

After running a 1% network for 60 simulated minutes, there were no packets leaked.

@stevenengler stevenengler added Type: Bug Error or flaw producing unexpected results Component: Main Composing the core Shadow executable labels Jun 29, 2021
@stevenengler stevenengler requested a review from robgjansen June 29, 2021 13:55
@stevenengler stevenengler self-assigned this Jun 29, 2021
@codecov
Copy link
Copy Markdown

codecov bot commented Jun 29, 2021

Codecov Report

Merging #1483 (2a98f12) into main (acaf9f4) will decrease coverage by 0.00%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1483      +/-   ##
==========================================
- Coverage   53.69%   53.69%   -0.01%     
==========================================
  Files         137      137              
  Lines       20647    20651       +4     
  Branches     5234     5235       +1     
==========================================
+ Hits        11087    11089       +2     
- Misses       6637     6639       +2     
  Partials     2923     2923              
Flag Coverage Δ
tests 53.69% <0.00%> (-0.01%) ⬇️

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

Impacted Files Coverage Δ
src/main/host/descriptor/tcp.c 77.59% <0.00%> (-0.26%) ⬇️
src/main/host/network_interface.c 72.46% <0.00%> (-0.29%) ⬇️
src/main/host/descriptor/file.c 33.92% <0.00%> (-0.23%) ⬇️
src/main/host/syscall/socket.c 78.30% <0.00%> (-0.15%) ⬇️
src/main/routing/packet.c 71.30% <0.00%> (+0.28%) ⬆️
src/main/host/syscall_condition.c 71.06% <0.00%> (+0.50%) ⬆️
...main/core/scheduler/scheduler_policy_host_single.c 75.67% <0.00%> (+0.67%) ⬆️
src/main/host/syscall/unistd.c 50.24% <0.00%> (+0.98%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update acaf9f4...2a98f12. Read the comment docs.

@stevenengler stevenengler enabled auto-merge June 29, 2021 14:19
Copy link
Copy Markdown
Member

@robgjansen robgjansen left a comment

Choose a reason for hiding this comment

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

!

@stevenengler stevenengler merged commit cdbecd4 into shadow:main Jun 29, 2021
@stevenengler stevenengler deleted the fix-packet-mem-leak branch June 29, 2021 16:14
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.

Small memory leak during Tor simulations

2 participants