Null pointer dereference in error pathway on git pull

3 messages, 2 authors, 2021-01-27 · open the first message on its own page

Null pointer dereference in error pathway on git pull

From: Joshua Hudson <hidden>
Date: 2021-01-26 22:19:57

git pull
remote: Azure Repos
remote: Found 452 objects to send. (157 ms)
Rfatal: the remote end hung up unexpectedly
fatal: early EOFs:  81% (367/452)
fatal: index-pack failed
warning: unable to unlink '(NULL)': Invalid argument


So it hits some kind of error (looks like network disconnect) and tries
to back out; passed a NULL pointer to unlink().

Apologies if this has been submitted before. A search didn't find it.

Re: Null pointer dereference in error pathway on git pull

From: Joshua Hudson <hidden>
Date: 2021-01-27 10:24:30

2.29.2; yeah it does look like it could be the same bug

On 1/26/2021 2:55 PM, Jeff King wrote:
On Tue, Jan 26, 2021 at 12:31:30PM -0800, Joshua Hudson wrote:
quoted
quoted
git pull
remote: Azure Repos
remote: Found 452 objects to send. (157 ms)
Rfatal: the remote end hung up unexpectedly
fatal: early EOFs:  81% (367/452)
fatal: index-pack failed
warning: unable to unlink '(NULL)': Invalid argument


So it hits some kind of error (looks like network disconnect) and tries
to back out; passed a NULL pointer to unlink().

Apologies if this has been submitted before. A search didn't find it.
Which version of Git are you using? It sounds like the same bug fixed by
6031af387e (fetch-pack: disregard invalid pack lockfiles, 2020-11-30).
That's in v2.30.0.

-Peff

Re: Null pointer dereference in error pathway on git pull

From: Jeff King <hidden>
Date: 2021-01-27 12:26:22

On Tue, Jan 26, 2021 at 12:31:30PM -0800, Joshua Hudson wrote:
quoted
git pull
remote: Azure Repos
remote: Found 452 objects to send. (157 ms)
Rfatal: the remote end hung up unexpectedly
fatal: early EOFs:  81% (367/452)
fatal: index-pack failed
warning: unable to unlink '(NULL)': Invalid argument


So it hits some kind of error (looks like network disconnect) and tries
to back out; passed a NULL pointer to unlink().

Apologies if this has been submitted before. A search didn't find it.
Which version of Git are you using? It sounds like the same bug fixed by
6031af387e (fetch-pack: disregard invalid pack lockfiles, 2020-11-30).
That's in v2.30.0.

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help