On 2010-01-26 Jonathan Nieder <jrnie...@gmail.com> wrote:
> Andreas Metzler wrote:

> > ametz...@merulo:/tmp/GIT/git-core-1.6.6-debug/t/trash 
> > directory.t1001-read-tree-m-2way$ <M.out 
> > /tmp/GIT/git-core-1.6.6-debug/git-is-binary M.out 4.out
> > static buffer is not binary
> > stdin is not binary
> > M.out is binary
> > 4.out is not binary
> > 
> > > I’ve also attached a diff-debug.patch to ask git diff to reveal
> > > which file it considers binary.
> > 
> > ametz...@merulo:/tmp/GIT/git-core-1.6.6-debug/t/trash 
> > directory.t1001-read-tree-m-2way$ /tmp/GIT/git-core-1.6.6-debug/git-diff 
> > --no-index M.out 4.out
> > a/M.out is binary
> > b/4.out is binary
> > diff --git a/M.out b/4.out
> > index 4aefa95..d5ec90a 100644
> > Binary files a/M.out and b/4.out differ

> Strange: 4.out is binary for git-diff but not for git-is-binary.
> Nothing obvious makes M.out significantly different from 4.out.  With
> git-is-binary, 4.out, and M.out as before, could you try these?

>       <4.out git-is-binary 4.out M.out
>       cp M.out M2.out
>       <4.out git-is-binary M.out M2.out
>       <M2.out git-is-binary M.out M2.out

okay:
ametz...@merulo:/tmp/GIT/git-core-1.6.6-debug/t/trash 
directory.t1001-read-tree-m-2way$ <4.out 
/tmp/GIT/git-core-1.6.6-debug/git-is-binary 4.out M.out
static buffer is not binary
stdin is not binary
4.out is binary
M.out is not binary
ametz...@merulo:/tmp/GIT/git-core-1.6.6-debug/t/trash 
directory.t1001-read-tree-m-2way$ cp M.out M2.out
ametz...@merulo:/tmp/GIT/git-core-1.6.6-debug/t/trash 
directory.t1001-read-tree-m-2way$ <4.out 
/tmp/GIT/git-core-1.6.6-debug/git-is-binary M.out M2.out
static buffer is not binary
stdin is not binary
M.out is binary
M2.out is not binary
ametz...@merulo:/tmp/GIT/git-core-1.6.6-debug/t/trash 
directory.t1001-read-tree-m-2way$ <M2.out 
/tmp/GIT/git-core-1.6.6-debug/git-is-binary M.out M2.out
static buffer is not binary
stdin is not binary
M.out is binary
M2.out is not binary

> > FWIW all versions of git-diff I tried (1.6.6, 1.6.5, and 1.5.6.5)
> > report "Binary files a/M.out and b/4.out differ".

> I am hoping we have enough information for a libc bug report (probably
> a kernel bug, but libc is a place to start).  I have attached
> generic-is-binary.c to pin this down; could you try:

>       uname -r
>       dpkg -l libc6
>       gcc -Wall -W -O -o generic-is-binary generic-is-binary.c
>       <M.out ./generic-is-binary M.out

ametz...@merulo:/tmp$ uname -r
2.6.32.2-dsa-ia64-mckinley
ametz...@merulo:/tmp$ dpkg -l libc6
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
in  libc6          <none>         (no description available)
ametz...@merulo:/tmp$ dpkg -l libc6.1
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
ii  libc6.1        2.10.2-5       Embedded GNU C Library: Shared libraries
ametz...@merulo:/tmp$ gcc -Wall -W -O -o generic-is-binary generic-is-binary.c
ametz...@merulo:/tmp$ popd
/tmp/GIT/git-core-1.6.6-debug/t/trash directory.t1001-read-tree-m-2way
ametz...@merulo:/tmp/GIT/git-core-1.6.6-debug/t/trash 
directory.t1001-read-tree-m-2way$ <M.out /tmp/generic-is-binary  M.out
stdin is not binary
M.out is binary

> If M.out (but not stdin) is reported to be binary, great: git is
> exonerated, and we have an independent test case.

You win. ;-)

> If that doesn’t work, it would be nice to learn where the unexpected
> zero bytes are.  The attached xdiff-debug.patch asks
> "git diff --no-index M.out 4.out" which bytes it thinks are null.

I have skipped that.

thanks, cu andreas
-- 
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to