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

Simulate NMR API failures: Fix memory leaks and segmentation fault #2253

Merged
merged 3 commits into from
Mar 31, 2023

Conversation

shpalani
Copy link
Collaborator

Description

For each Memory leak call stack and SIGSEGV, please refer to the analysis attached in #2101

This PR was tested with fault injection conditions added for the following NMR APIs.

  1. NmrRegisterProvider
  2. NmrDeregisterProvider
  3. NmrWaitForProviderDeregisterComplete

FYI, Issue #2101 will be addressed in incremental commits.

Testing

Do any existing tests cover this change? Yes
Are new tests needed?
No

Documentation

No

Is there any documentation impact for this change?

@codecov
Copy link

codecov bot commented Mar 30, 2023

Codecov Report

Merging #2253 (0f4f09f) into main (ef558bb) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #2253      +/-   ##
==========================================
- Coverage   83.58%   83.58%   -0.01%     
==========================================
  Files         151      151              
  Lines       28249    28263      +14     
==========================================
+ Hits        23613    23623      +10     
- Misses       4636     4640       +4     
Impacted Files Coverage Δ
libs/api/ebpf_api.cpp 87.03% <100.00%> (-0.13%) ⬇️
libs/api_common/store_helper_internal.cpp 75.00% <100.00%> (+0.63%) ⬆️
libs/execution_context/ebpf_native.c 90.47% <100.00%> (+0.01%) ⬆️

... and 3 files with indirect coverage changes

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

Alan-Jowett
Alan-Jowett previously approved these changes Mar 30, 2023
libs/api_common/store_helper_internal.cpp Show resolved Hide resolved
libs/api/ebpf_api.cpp Outdated Show resolved Hide resolved
dthaler
dthaler previously approved these changes Mar 31, 2023
@dthaler dthaler added the bug Something isn't working label Mar 31, 2023
@saxena-anurag saxena-anurag added this pull request to the merge queue Mar 31, 2023
Merged via the queue into microsoft:main with commit 306a142 Mar 31, 2023
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

Successfully merging this pull request may close these issues.

Simulate NMR and OS API failures
4 participants