Skip to content

Conversation

@dscho
Copy link
Member

@dscho dscho commented May 27, 2019

I, or more correctly: our Pipeline, noticed this in #140. Running t5319 through valgrind did help diagnose this pretty quickly.

When we close a pack, it might still be in the Most-Recently-Used list.
If we truly want to remove it (and release its memory), we have to
remove it from that list first.

This fixes a complaint by valgrind, and a segmentation fault on Windows
(where nedmalloc stumbles right over the overwritten memory).

Signed-off-by: Johannes Schindelin <[email protected]>
@dscho dscho requested a review from derrickstolee May 27, 2019 09:27
@dscho
Copy link
Member Author

dscho commented May 27, 2019

Oops. This is not an issue in vfs-2.21.0, lucky us: the problem in #140 is caused by an unhappy interaction between ds/midx-too-many-packs and ds/midx-expire-repack.

@dscho dscho closed this May 27, 2019
@dscho dscho deleted the fix-midx-expire-segfault branch May 27, 2019 09: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.

2 participants