* Do not use zlib 1.1.3 with git packs!
@ 2006-04-29 0:52 Johannes Schindelin
2006-04-29 1:47 ` Johannes Schindelin
0 siblings, 1 reply; 4+ messages in thread
From: Johannes Schindelin @ 2006-04-29 0:52 UTC (permalink / raw)
To: git
Hi,
I had a strange effect when trying to repack a git repository on my iBook:
first, "git-repack -a -d" would quit without an error message when about
57% of the objects were written (*not* when deltifying them!).
It became even stranger when I tracked it to a segmentation fault in
adler32(), where the debugger insisted that a buffer was NULL, but the
calling code insisted it was not.
Upgrading to zlib 1.2.3 helped. That is, after I had a complete systen
fsck-up, since virtually every binary, including su, login and getty, are
linked to zlib on Mac OS X. (Yeah, yeah, no Linux, I know.)
Ciao,
Dscho
P.S.: This _might_ be related to the git-repack issue that came up a few
days ago.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Do not use zlib 1.1.3 with git packs!
2006-04-29 0:52 Do not use zlib 1.1.3 with git packs! Johannes Schindelin
@ 2006-04-29 1:47 ` Johannes Schindelin
2006-04-29 3:20 ` Nicolas Pitre
0 siblings, 1 reply; 4+ messages in thread
From: Johannes Schindelin @ 2006-04-29 1:47 UTC (permalink / raw)
To: git
Hi,
On Sat, 29 Apr 2006, Johannes Schindelin wrote:
> Upgrading to zlib 1.2.3 helped.
Apparently I was too enthusiastic to have a working system again.
The problem showed again, but with a different repository.
This time, though, I have an idea what could be the culprit.
In create_delta(), there might be illegal accesses. The function adler32()
is called for BLK_SIZE bytes (which is 16 bytes at the moment), starting
from data, which is initially trg_buf, and is incremented until it is
(trg_buf + trg_size).
I gather that close to the end, adler32() tries to read 15 bytes after the
end of the allocated target buffer.
Am I wrong?
Ciao,
Dscho
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Do not use zlib 1.1.3 with git packs!
2006-04-29 1:47 ` Johannes Schindelin
@ 2006-04-29 3:20 ` Nicolas Pitre
2006-04-29 6:36 ` Junio C Hamano
0 siblings, 1 reply; 4+ messages in thread
From: Nicolas Pitre @ 2006-04-29 3:20 UTC (permalink / raw)
To: Johannes Schindelin; +Cc: git
On Sat, 29 Apr 2006, Johannes Schindelin wrote:
> Hi,
>
> On Sat, 29 Apr 2006, Johannes Schindelin wrote:
>
> > Upgrading to zlib 1.2.3 helped.
>
> Apparently I was too enthusiastic to have a working system again.
>
> The problem showed again, but with a different repository.
>
> This time, though, I have an idea what could be the culprit.
>
> In create_delta(), there might be illegal accesses. The function adler32()
> is called for BLK_SIZE bytes (which is 16 bytes at the moment), starting
> from data, which is initially trg_buf, and is incremented until it is
> (trg_buf + trg_size).
>
> I gather that close to the end, adler32() tries to read 15 bytes after the
> end of the allocated target buffer.
>
> Am I wrong?
You're not. My bad.
(I'm testing a version where adler32 has been replaced with rabin
polynomial so that issue will be gone at the same time.
A patch should be coming in less than an hour.)
Nicolas
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Do not use zlib 1.1.3 with git packs!
2006-04-29 3:20 ` Nicolas Pitre
@ 2006-04-29 6:36 ` Junio C Hamano
0 siblings, 0 replies; 4+ messages in thread
From: Junio C Hamano @ 2006-04-29 6:36 UTC (permalink / raw)
To: Nicolas Pitre; +Cc: git, Johannes Schindelin
Nicolas Pitre <nico@cam.org> writes:
> On Sat, 29 Apr 2006, Johannes Schindelin wrote:
>
>> I gather that close to the end, adler32() tries to read 15 bytes after the
>> end of the allocated target buffer.
>>
>> Am I wrong?
>
> You're not. My bad.
Thanks both, for catching this while still in "next".
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-04-29 6:36 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-29 0:52 Do not use zlib 1.1.3 with git packs! Johannes Schindelin
2006-04-29 1:47 ` Johannes Schindelin
2006-04-29 3:20 ` Nicolas Pitre
2006-04-29 6:36 ` Junio C Hamano
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox