Re: Potential bug in pack-objects.c

2019-01-22 Thread Alex Netkachov
On Tue, 22 Jan 2019 at 07:29, Jeff King wrote: > > On Mon, Jan 21, 2019 at 10:10:16PM +, Alex Netkachov wrote: > > > On the location builtin/pack-objects.c:1996 the code tries to set > > read_lock (pthread_mutex_lock(&read_mutex)) and fails. I suspect that > > read_mutex is not initialised yet

Re: Potential bug in pack-objects.c

2019-01-21 Thread Jeff King
On Mon, Jan 21, 2019 at 10:10:16PM +, Alex Netkachov wrote: > On the location builtin/pack-objects.c:1996 the code tries to set > read_lock (pthread_mutex_lock(&read_mutex)) and fails. I suspect that > read_mutex is not initialised yet. It is initialised in > init_threaded_search, which is cal

Potential bug in pack-objects.c

2019-01-21 Thread Alex Netkachov
Hi, The most recent version of git crashes on gc command on my repository. I've tracked it down to the segmentation fault in pack-objects.c while running this command in the debugger: gdb --args /usr/src/git/git-pack-objects.exe --local --delta-base-offset .git/objects/pack/.tmp-14368-pack --keep-