Skip to content

fix invalid access after freeing next_item #636

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

Merged
merged 1 commit into from
Mar 13, 2021

Conversation

DvirDukhan
Copy link
Collaborator

this PR fixes invalid access to a queueItem after it is being removed from the queue, which sets its prev and next as NULL

closes #635

@filipecosta90
Copy link
Collaborator

@DvirDukhan confirmed the issue is one 👍
That was a really fast fix! :D

@codecov
Copy link

codecov bot commented Mar 12, 2021

Codecov Report

Merging #636 (d306f64) into master (52ce7bd) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #636      +/-   ##
==========================================
- Coverage   76.74%   76.73%   -0.02%     
==========================================
  Files          41       41              
  Lines        6519     6520       +1     
==========================================
  Hits         5003     5003              
- Misses       1516     1517       +1     
Impacted Files Coverage Δ
src/background_workers.c 81.37% <100.00%> (+0.82%) ⬆️
src/backends/tensorflow.c 70.50% <0.00%> (-0.57%) ⬇️

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 52ce7bd...d306f64. Read the comment docs.

Copy link
Contributor

@lantiga lantiga left a comment

Choose a reason for hiding this comment

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

Nice catch

@DvirDukhan DvirDukhan merged commit b99ada7 into master Mar 13, 2021
@DvirDukhan DvirDukhan deleted the fix_invalid_mem_access_on_batching branch March 13, 2021 17:24
alonre24 pushed a commit that referenced this pull request Mar 16, 2021
fix invalid access after freeing `next_item`
@chayim chayim mentioned this pull request Jul 22, 2021
@chayim chayim mentioned this pull request Nov 7, 2021
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.

BATCHSIZE + MINBATCHSIZE and stdlib allocator results in consistent crash on RedisAI ( failed assertion and segfault )
3 participants