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

fixes #1523 rare SEGV in sub nni_list_remove #1709

Closed
wants to merge 1 commit into from

Conversation

gdamore
Copy link
Contributor

@gdamore gdamore commented Nov 26, 2023

Credit goes to Wu Xuan (@willwu1217) for diagnosing and proposing a fix as part of #1695. This approach takes a revised approach to avoid adding extra memory, and it also is slightly faster as we do not need to update both pointers in the linked list, by reusing the reap node.

As part of this a new internal API, nni_aio_completions, is introduced. In all likelihood we will be able to use this to solve some similar crashes in other areas of the code.

fixes #

Note that the above format should be used in your git commit comments.
You agree that by submitting a PR, you have read and agreed to our
contributing guidelines.

Credit goes to Wu Xuan (@willwu1217) for diagnosing and proposing
a fix as part of #1695.  This approach takes a revised approach
to avoid adding extra memory, and it also is slightly faster as we
do not need to update both pointers in the linked list, by reusing
the reap node.

As part of this a new internal API, nni_aio_completions, is introduced.
In all likelihood we will be able to use this to solve some similar
crashes in other areas of the code.
@gdamore
Copy link
Contributor Author

gdamore commented Nov 26, 2023

This PR should be used in lieu of #1695

Copy link

codecov bot commented Nov 26, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (a54820f) 79.15% compared to head (9fda269) 79.18%.
Report is 5 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1709      +/-   ##
==========================================
+ Coverage   79.15%   79.18%   +0.02%     
==========================================
  Files          89       89              
  Lines       20224    20237      +13     
==========================================
+ Hits        16009    16025      +16     
+ Misses       4215     4212       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@gdamore
Copy link
Contributor Author

gdamore commented Nov 26, 2023

This was merged, but I think github got confused because of how I did it at the command line. (There was rebase involved.)

@gdamore gdamore closed this Nov 26, 2023
@gdamore gdamore deleted the gdamore/aio_completions branch November 26, 2023 02:33
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.

1 participant