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

Add a virtual destructor for BTreeDelete node to fix new-delete-type-mismatch #2127 #2130

Conversation

brofranks
Copy link
Member

Fixes #2127. This is only a partial fix since there is now a heap-use-after-free error, I will create a new issue for this.

Root cause: The delete on this line is for a parent node pointer, however node is polymorphic and could be an inner_node (which has its own destructor).

@codecov
Copy link

codecov bot commented Nov 17, 2021

Codecov Report

Merging #2130 (93d931e) into master (0144947) will decrease coverage by 0.06%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2130      +/-   ##
==========================================
- Coverage   75.32%   75.26%   -0.07%     
==========================================
  Files         452      452              
  Lines       27357    27358       +1     
==========================================
- Hits        20608    20591      -17     
- Misses       6749     6767      +18     
Impacted Files Coverage Δ
src/include/souffle/datastructure/BTreeDelete.h 35.66% <100.00%> (+0.09%) ⬆️
src/include/souffle/datastructure/LambdaBTree.h 73.28% <0.00%> (-9.17%) ⬇️
src/include/souffle/datastructure/UnionFind.h 95.60% <0.00%> (-4.40%) ⬇️
src/include/souffle/utility/ParallelUtil.h 83.96% <0.00%> (-1.53%) ⬇️
src/include/souffle/datastructure/BTree.h 97.05% <0.00%> (-0.22%) ⬇️
...ouffle/datastructure/ConcurrentInsertOnlyHashMap.h 90.00% <0.00%> (+0.90%) ⬆️

@b-scholz
Copy link
Member

Let's try to fix the issue entirely.

@brofranks brofranks closed this Nov 20, 2021
@b-scholz b-scholz reopened this Nov 20, 2021
@b-scholz
Copy link
Member

Maybe we can leave it open so that people can see the changes...

@b-scholz
Copy link
Member

Solved by #2287

@b-scholz b-scholz closed this Aug 14, 2022
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.

AddressSanitizer/Valgrind raises a new-delete-type-mismatch for BTreeDelete
2 participants