* Seg Fault on git fetch with fetch.negotiationAlgorithm=skipping
@ 2020-04-30 14:55 Son Luong Ngoc
2020-04-30 20:20 ` Taylor Blau
0 siblings, 1 reply; 4+ messages in thread
From: Son Luong Ngoc @ 2020-04-30 14:55 UTC (permalink / raw)
To: git; +Cc: Junio C Hamano
Hi folks,
We recently encountered a segfault during a git fetch
strace output could be found https://gist.github.com/sluongng/e48327cc911c617ed2ef8578acc2ea34
The root cause was due to having `fetch.negotiationAlgorithm=skipping`
The repo is about linux.git size with a few NULL commit that we have been using `fsck.skipList`
on both server and client side to skip.
Is this and edge case for the new algorithm?
Cheers,
Son Luong.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Seg Fault on git fetch with fetch.negotiationAlgorithm=skipping
2020-04-30 14:55 Seg Fault on git fetch with fetch.negotiationAlgorithm=skipping Son Luong Ngoc
@ 2020-04-30 20:20 ` Taylor Blau
2020-05-01 8:13 ` Son Luong Ngoc
0 siblings, 1 reply; 4+ messages in thread
From: Taylor Blau @ 2020-04-30 20:20 UTC (permalink / raw)
To: Son Luong Ngoc; +Cc: git, Junio C Hamano
Hi Son,
On Thu, Apr 30, 2020 at 04:55:07PM +0200, Son Luong Ngoc wrote:
> Hi folks,
>
> We recently encountered a segfault during a git fetch
> strace output could be found https://gist.github.com/sluongng/e48327cc911c617ed2ef8578acc2ea34
>
> The root cause was due to having `fetch.negotiationAlgorithm=skipping`
> The repo is about linux.git size with a few NULL commit that we have been using `fsck.skipList`
> on both server and client side to skip.
Are you able to share a core file? If not, it would be very helpful for
you to 'git fast-export --anonymize ...' and see if you can reproduce
the problem on an anonymized copy of your repository.
I can speculate about the cause of the crash from your strace above, but
a core file would be more helpful.
> Is this and edge case for the new algorithm?
>
> Cheers,
> Son Luong.
Thanks,
Taylor
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Seg Fault on git fetch with fetch.negotiationAlgorithm=skipping
2020-04-30 20:20 ` Taylor Blau
@ 2020-05-01 8:13 ` Son Luong Ngoc
2020-05-01 22:13 ` Taylor Blau
0 siblings, 1 reply; 4+ messages in thread
From: Son Luong Ngoc @ 2020-05-01 8:13 UTC (permalink / raw)
To: Taylor Blau; +Cc: git, Junio C Hamano
Hi Taylor,
> On Apr 30, 2020, at 22:20, Taylor Blau <me@ttaylorr.com> wrote:
>
> Are you able to share a core file? If not, it would be very helpful for
> you to 'git fast-export --anonymize ...' and see if you can reproduce
> the problem on an anonymized copy of your repository.
I played a bit with --anonymized yesterday but export/import is slow and I still need to review
the history to see whether it could be released.
It might take more time than just a few days.
> I can speculate about the cause of the crash from your strace above, but
> a core file would be more helpful.
I have added perf trace2 in https://gist.github.com/sluongng/e48327cc911c617ed2ef8578acc2ea34#file-perf-trace2-L52
(git version is 2.26.2)
I think this trace is a lot cleared than the strace log.
> Thanks,
> Taylor
Cheers,
Son Luong.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Seg Fault on git fetch with fetch.negotiationAlgorithm=skipping
2020-05-01 8:13 ` Son Luong Ngoc
@ 2020-05-01 22:13 ` Taylor Blau
0 siblings, 0 replies; 4+ messages in thread
From: Taylor Blau @ 2020-05-01 22:13 UTC (permalink / raw)
To: Son Luong Ngoc; +Cc: Taylor Blau, git, Junio C Hamano
On Fri, May 01, 2020 at 10:13:43AM +0200, Son Luong Ngoc wrote:
> Hi Taylor,
>
> > On Apr 30, 2020, at 22:20, Taylor Blau <me@ttaylorr.com> wrote:
> >
> > Are you able to share a core file? If not, it would be very helpful for
> > you to 'git fast-export --anonymize ...' and see if you can reproduce
> > the problem on an anonymized copy of your repository.
>
> I played a bit with --anonymized yesterday but export/import is slow and I still need to review
> the history to see whether it could be released.
>
> It might take more time than just a few days.
That's OK. Please let us know when you have it by responding in the
sub-thread here, and I will be happy to take a look.
> > I can speculate about the cause of the crash from your strace above, but
> > a core file would be more helpful.
>
> I have added perf trace2 in https://gist.github.com/sluongng/e48327cc911c617ed2ef8578acc2ea34#file-perf-trace2-L52
> (git version is 2.26.2)
>
> I think this trace is a lot cleared than the strace log.
>
> > Thanks,
> > Taylor
>
> Cheers,
> Son Luong.
Thanks,
Taylor
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-05-01 22:13 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-30 14:55 Seg Fault on git fetch with fetch.negotiationAlgorithm=skipping Son Luong Ngoc
2020-04-30 20:20 ` Taylor Blau
2020-05-01 8:13 ` Son Luong Ngoc
2020-05-01 22:13 ` Taylor Blau
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).