{"thread":{"id":"21539","subject":"[BUG]","startedAt":"2009-11-08T20:36:19Z","lastAt":"2009-11-09T16:56:42Z","messageCount":4,"participants":["Matthieu Moy","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"127092","messageId":"vpqeio8eou4.fsf@bauges.imag.fr","threadId":"21539","inReplyTo":null,"subject":"[BUG]","fromName":"Matthieu Moy","fromEmail":"matthieu.moy@grenoble-inp.fr","sentAt":"2009-11-08T20:36:19Z","receivedAt":"2009-11-08T20:36:19Z","isPatch":false,"sender":{"key":"matthieu.moy@grenoble-inp.fr","avatar":"https://gravatar.com/avatar/72c8a2705971a25dfaff23cece15130d405685845d911aedd5667ace277f3fc5?d=mp&s=160"},"body":"Hi,\n\nI'm hitting a bug when git-push-ing to a Linux PPC machine. In\ngeneral, pushing works well, but pushing some particular commits\nbreaks reproducibly with :\n\nfatal: early EOF\nerror: unpack failed: unpack-objects abnormal exit\nTo ssh://localhost//home/perms/moy/prive/dest\n ! [remote rejected] master -> master (n/a (unpacker error))\n\nI've put the guilty files on my website and wrote a reproduction\nscript:\n\n#!/bin/sh\n\nrm -fr source dest\ngit init source\ngit init --bare dest\ndest=$PWD/dest\ncd source\necho foo > bar.txt\ngit add .\ngit commit -m init\ngit push ssh://localhost/$dest master\nwget 'http://www-verimag.imag.fr/~moy/tmp/git-bug/Conception Manual.docx'\nwget 'http://www-verimag.imag.fr/~moy/tmp/git-bug/Extreme Programming.doc'\ngit add .\ngit commit -m \"bug\"\ngit push ssh://localhost/$dest master\n\nThe full output is attached (the error message for the last push is\ngiven above). The machine on which I get this (let's call it \"A\")\nsays :\n\n$ ssh -Version\nOpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008\n$ uname -a\nLinux A 2.6.18-128.7.1.el5 #1 SMP Wed Aug 19 04:08:13 EDT 2009 ppc64 ppc64 ppc64 GNU/Linux\n$ cat /etc/redhat-release                                                                                                                                           \nRed Hat Enterprise Linux Server release 5.4 (Tikanga)\n(it's a 32-bit distribution although the machine is 64bits)\n$ git --version\ngit version 1.6.5.2\n(compiled myself, \"make test\" passes)\n\nAccording to my experiments, the problem is on the receiver side. If I\ndo the same as above, with source/ and dest/ directories on two\ndifferent machines, then if source/ in on A and dest/ anywhere else,\nit works, and if dest/ is on machine A, I get the same error.\n\nIf I push using \"file://\" instead of \"ssh://\", then everything works\nwell.\n\nIf instead of push-ing, I go to dest/ and do a fetch, then it works\nwell too.\n\nDoes anyone have any idea on what's going on?\n\nIf anyone has a machine similar to mine (ppc64), can he/she run my\nreproduction script and tell me if the bug happens?\n\nThanks a lot,\n\n\n\nInitialized empty Git repository in /perms/moy/prive/source/.git/\nInitialized empty Git repository in /perms/moy/prive/dest/\n[master (root-commit) e14141d] init\n 1 files changed, 1 insertions(+), 0 deletions(-)\n create mode 100644 bar.txt\nCounting objects: 3, done.\nWriting objects:  33% (1/3)   \rWriting objects:  66% (2/3)   \rWriting objects: 100% (3/3)   \rWriting objects: 100% (3/3), 209 bytes, done.\nTotal 3 (delta 0), reused 0 (delta 0)\nTo ssh://localhost//home/perms/moy/prive/dest\n * [new branch]      master -> master\n--2009-11-08 21:15:27--  http://www-verimag.imag.fr/~moy/tmp/git-bug/Conception%20Manual.docx\nResolving www-verimag.imag.fr... 129.88.43.46\nConnecting to www-verimag.imag.fr|129.88.43.46|:80... connected.\nHTTP request sent, awaiting response... 200 OK\nLength: 1064912 (1.0M) [application/x-zip]\nSaving to: `Conception Manual.docx'\n\n     0K .......... .......... .......... .......... ..........  4% 42.9M 0s\n    50K .......... .......... .......... .......... ..........  9% 38.1M 0s\n   100K .......... .......... .......... .......... .......... 14% 51.4M 0s\n   150K .......... .......... .......... .......... .......... 19% 47.1M 0s\n   200K .......... .......... .......... .......... .......... 24% 54.5M 0s\n   250K .......... .......... .......... .......... .......... 28% 58.4M 0s\n   300K .......... .......... .......... .......... .......... 33% 53.5M 0s\n   350K .......... .......... .......... .......... .......... 38% 64.5M 0s\n   400K .......... .......... .......... .......... .......... 43% 42.0M 0s\n   450K .......... .......... .......... .......... .......... 48% 55.7M 0s\n   500K .......... .......... .......... .......... .......... 52% 61.9M 0s\n   550K .......... .......... .......... .......... .......... 57% 54.4M 0s\n   600K .......... .......... .......... .......... .......... 62% 56.3M 0s\n   650K .......... .......... .......... .......... .......... 67% 58.8M 0s\n   700K .......... .......... .......... .......... .......... 72% 61.6M 0s\n   750K .......... .......... .......... .......... .......... 76% 53.5M 0s\n   800K .......... .......... .......... .......... .......... 81% 44.3M 0s\n   850K .......... .......... .......... .......... .......... 86% 54.4M 0s\n   900K .......... .......... .......... .......... .......... 91% 63.9M 0s\n   950K .......... .......... .......... .......... .......... 96% 75.0M 0s\n  1000K .......... .......... .......... .........            100% 89.8M=0.02s\n\n2009-11-08 21:15:27 (54.1 MB/s) - `Conception Manual.docx' saved [1064912/1064912]\n\n--2009-11-08 21:15:27--  http://www-verimag.imag.fr/~moy/tmp/git-bug/Extreme%20Programming.doc\nResolving www-verimag.imag.fr... 129.88.43.46\nConnecting to www-verimag.imag.fr|129.88.43.46|:80... connected.\nHTTP request sent, awaiting response... 200 OK\nLength: 521216 (509K) [application/msword]\nSaving to: `Extreme Programming.doc'\n\n     0K .......... .......... .......... .......... ..........  9% 42.7M 0s\n    50K .......... .......... .......... .......... .......... 19% 38.3M 0s\n   100K .......... .......... .......... .......... .......... 29% 51.4M 0s\n   150K .......... .......... .......... .......... .......... 39% 48.9M 0s\n   200K .......... .......... .......... .......... .......... 49% 51.9M 0s\n   250K .......... .......... .......... .......... .......... 58% 57.0M 0s\n   300K .......... .......... .......... .......... .......... 68% 54.6M 0s\n   350K .......... .......... .......... .......... .......... 78% 56.1M 0s\n   400K .......... .......... .......... .......... .......... 88% 52.5M 0s\n   450K .......... .......... .......... .......... .......... 98% 75.4M 0s\n   500K .........                                             100% 17.6M=0.01s\n\n2009-11-08 21:15:27 (52.3 MB/s) - `Extreme Programming.doc' saved [521216/521216]\n\n[master c0fa75f] bug\n 2 files changed, 0 insertions(+), 0 deletions(-)\n create mode 100644 Conception Manual.docx\n create mode 100644 Extreme Programming.doc\nCounting objects: 5, done.\nDelta compression using up to 16 threads.\nCompressing objects:  25% (1/4)   \rCompressing objects:  50% (2/4)   \rCompressing objects:  75% (3/4)   \rCompressing objects: 100% (4/4)   \rCompressing objects: 100% (4/4), done.\nWriting objects:  25% (1/4)   \rWriting objects:  50% (2/4)   \rWriting objects:  75% (3/4)   \rWriting objects: 100% (4/4)   \rWriting objects: 100% (4/4), 1.38 MiB, done.\nTotal 4 (delta 0), reused 0 (delta 0)\nfatal: early EOF\nerror: unpack failed: unpack-objects abnormal exit\nTo ssh://localhost//home/perms/moy/prive/dest\n ! [remote rejected] master -> master (n/a (unpacker error))\nerror: failed to push some refs to 'ssh://localhost//home/perms/moy/prive/dest'\n\n\n\n--\nMatthieu Moy\nhttp://www-verimag.imag.fr/~moy/\n"},{"id":"127097","messageId":"vpq4op4emfy.fsf@bauges.imag.fr","threadId":"21539","inReplyTo":"vpqeio8eou4.fsf@bauges.imag.fr","subject":"Re: [BUG] unpack-objects abnormal exit when pushing","fromName":"Matthieu Moy","fromEmail":"matthieu.moy@grenoble-inp.fr","sentAt":"2009-11-08T21:28:01Z","receivedAt":"2009-11-08T21:28:01Z","isPatch":false,"sender":{"key":"matthieu.moy@grenoble-inp.fr","avatar":"https://gravatar.com/avatar/72c8a2705971a25dfaff23cece15130d405685845d911aedd5667ace277f3fc5?d=mp&s=160"},"body":"Hi,\n\nSorry, I forgot to set the subject before sending. The bug report\nstill holds:\n\nMatthieu Moy <Matthieu.Moy@grenoble-inp.fr> writes:\n\n> Hi,\n>\n> I'm hitting a bug when git-push-ing to a Linux PPC machine. In\n> general, pushing works well, but pushing some particular commits\n> breaks reproducibly with :\n>\n> fatal: early EOF\n> error: unpack failed: unpack-objects abnormal exit\n> To ssh://localhost//home/perms/moy/prive/dest\n>  ! [remote rejected] master -> master (n/a (unpacker error))\n>\n> I've put the guilty files on my website and wrote a reproduction\n> script:\n>\n> #!/bin/sh\n>\n> rm -fr source dest\n> git init source\n> git init --bare dest\n> dest=$PWD/dest\n> cd source\n> echo foo > bar.txt\n> git add .\n> git commit -m init\n> git push ssh://localhost/$dest master\n> wget 'http://www-verimag.imag.fr/~moy/tmp/git-bug/Conception Manual.docx'\n> wget 'http://www-verimag.imag.fr/~moy/tmp/git-bug/Extreme Programming.doc'\n> git add .\n> git commit -m \"bug\"\n> git push ssh://localhost/$dest master\n>\n> The full output is attached (the error message for the last push is\n> given above). The machine on which I get this (let's call it \"A\")\n> says :\n>\n> $ ssh -Version\n> OpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008\n> $ uname -a\n> Linux A 2.6.18-128.7.1.el5 #1 SMP Wed Aug 19 04:08:13 EDT 2009 ppc64 ppc64 ppc64 GNU/Linux\n> $ cat /etc/redhat-release                                                                                                                                           \n> Red Hat Enterprise Linux Server release 5.4 (Tikanga)\n> (it's a 32-bit distribution although the machine is 64bits)\n> $ git --version\n> git version 1.6.5.2\n> (compiled myself, \"make test\" passes)\n>\n> According to my experiments, the problem is on the receiver side. If I\n> do the same as above, with source/ and dest/ directories on two\n> different machines, then if source/ in on A and dest/ anywhere else,\n> it works, and if dest/ is on machine A, I get the same error.\n>\n> If I push using \"file://\" instead of \"ssh://\", then everything works\n> well.\n>\n> If instead of push-ing, I go to dest/ and do a fetch, then it works\n> well too.\n>\n> Does anyone have any idea on what's going on?\n>\n> If anyone has a machine similar to mine (ppc64), can he/she run my\n> reproduction script and tell me if the bug happens?\n>\n> Thanks a lot,\n\n-- \nMatthieu Moy\nhttp://www-verimag.imag.fr/~moy/\n"},{"id":"127135","messageId":"vpqhbt3ap3w.fsf@bauges.imag.fr","threadId":"21539","inReplyTo":"vpqeio8eou4.fsf@bauges.imag.fr","subject":"Re: [BUG] unpack-objects abnormal exit when pushing","fromName":"Matthieu Moy","fromEmail":"matthieu.moy@grenoble-inp.fr","sentAt":"2009-11-09T11:56:19Z","receivedAt":"2009-11-09T11:56:19Z","isPatch":false,"sender":{"key":"matthieu.moy@grenoble-inp.fr","avatar":"https://gravatar.com/avatar/72c8a2705971a25dfaff23cece15130d405685845d911aedd5667ace277f3fc5?d=mp&s=160"},"body":"Hi again,\n\nI just found a way to reproduce the problem using plain SSH, and not\nGit:\n\n$ ssh localhost cat < random.bin | wc\n    249    1460   65536\n$ cat < random.bin | wc\n    796    4545  204800\n\nSo, sshd is broken on this machine, and I don't think Git is the one\nto blame.\n\nMatthieu Moy <Matthieu.Moy@grenoble-inp.fr> writes:\n\n> Hi,\n>\n> I'm hitting a bug when git-push-ing to a Linux PPC machine. In\n> general, pushing works well, but pushing some particular commits\n> breaks reproducibly with :\n>\n> fatal: early EOF\n> error: unpack failed: unpack-objects abnormal exit\n> To ssh://localhost//home/perms/moy/prive/dest\n>  ! [remote rejected] master -> master (n/a (unpacker error))\n>\n> I've put the guilty files on my website and wrote a reproduction\n> script:\n>\n> #!/bin/sh\n>\n> rm -fr source dest\n> git init source\n> git init --bare dest\n> dest=$PWD/dest\n> cd source\n> echo foo > bar.txt\n> git add .\n> git commit -m init\n> git push ssh://localhost/$dest master\n> wget 'http://www-verimag.imag.fr/~moy/tmp/git-bug/Conception Manual.docx'\n> wget 'http://www-verimag.imag.fr/~moy/tmp/git-bug/Extreme Programming.doc'\n> git add .\n> git commit -m \"bug\"\n> git push ssh://localhost/$dest master\n>\n> The full output is attached (the error message for the last push is\n> given above). The machine on which I get this (let's call it \"A\")\n> says :\n>\n> $ ssh -Version\n> OpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008\n> $ uname -a\n> Linux A 2.6.18-128.7.1.el5 #1 SMP Wed Aug 19 04:08:13 EDT 2009 ppc64 ppc64 ppc64 GNU/Linux\n> $ cat /etc/redhat-release                                                                                                                                           \n> Red Hat Enterprise Linux Server release 5.4 (Tikanga)\n> (it's a 32-bit distribution although the machine is 64bits)\n> $ git --version\n> git version 1.6.5.2\n> (compiled myself, \"make test\" passes)\n>\n> According to my experiments, the problem is on the receiver side. If I\n> do the same as above, with source/ and dest/ directories on two\n> different machines, then if source/ in on A and dest/ anywhere else,\n> it works, and if dest/ is on machine A, I get the same error.\n>\n> If I push using \"file://\" instead of \"ssh://\", then everything works\n> well.\n>\n> If instead of push-ing, I go to dest/ and do a fetch, then it works\n> well too.\n>\n> Does anyone have any idea on what's going on?\n>\n> If anyone has a machine similar to mine (ppc64), can he/she run my\n> reproduction script and tell me if the bug happens?\n>\n> Thanks a lot,\n\n-- \nMatthieu Moy\nhttp://www-verimag.imag.fr/~moy/\n"},{"id":"127172","messageId":"7vd43ry6ut.fsf@alter.siamese.dyndns.org","threadId":"21539","inReplyTo":"vpqhbt3ap3w.fsf@bauges.imag.fr","subject":"Re: [BUG] unpack-objects abnormal exit when pushing","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2009-11-09T16:56:42Z","receivedAt":"2009-11-09T16:56:42Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> writes:\n\n> I just found a way to reproduce the problem using plain SSH, and not\n> Git:\n>\n> $ ssh localhost cat < random.bin | wc\n>     249    1460   65536\n> $ cat < random.bin | wc\n>     796    4545  204800\n>\n> So, sshd is broken on this machine, and I don't think Git is the one\n> to blame.\n\nYuck; that sounds scary.\n"}]}