Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix a memory corruption problem in git multi-pack-index expire#142

Closed
dscho wants to merge 1 commit intovfs-2.21.0microsoft/git:vfs-2.21.0from
fix-midx-expire-segfaultmicrosoft/git:fix-midx-expire-segfaultCopy head branch name to clipboard
Closed

Fix a memory corruption problem in git multi-pack-index expire#142
dscho wants to merge 1 commit intovfs-2.21.0microsoft/git:vfs-2.21.0from
fix-midx-expire-segfaultmicrosoft/git:fix-midx-expire-segfaultCopy head branch name to clipboard

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 <johannes.schindelin@gmx.de>
@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.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.