Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1505404pxb; Thu, 16 Sep 2021 08:52:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwzs7/SlfE7YswbkOC4BehVHPcuYVG+cy4RUO2fb5c1Gu3qJWmrl+wTBA1AMJYa9zBukkEd X-Received: by 2002:a92:da85:: with SMTP id u5mr4629455iln.213.1631807541288; Thu, 16 Sep 2021 08:52:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631807541; cv=none; d=google.com; s=arc-20160816; b=0g6EIqKgOUc7m+vwFVgj78U6z8puqaalrYZrMd+9VLqqbOjzwIkIMYOKGpaSBngnzu 2ciBtbyVGchiOmyk9JIu91Te9uB4IVS398z2UOtr+RC0uOKgu+UHVQ7n8yBweIHMtkX8 TLTMe/wDoq4IoeOhl5ktRQxl5tUmv/ePZuaoSlc8gNlAoSrS6rWxblJ8IW4iWHdCMQ3d nZdVyswmvrmlyf9WupKLNMPvIt0svMikdSjDhxPZBZQvVmFygYTtl2KJRyiFbnJuQpGB ELVRJErFEBY/aoALsEqqhqp+f67bN0Zowu5RAFPoeiUKnLu9pH0wnDzwVDUEZcwGeidn l1pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=vaSSbl3mfv97e/MnKQ7Ve3eruaAvvTuvjRW7Un3fNZk=; b=nRLWgmsDXe03v+NIVAfHeICpaPqMxfGkgL4TyGxAedEHgOUC/0AbrQ8cln1gI/kBIp cOqs0bXq8aCKjw456N+Y2e20xR0aWEsg2bAmv0CRWsPlgwfz1fDcfz2GlsePXBw1B1cl fwEz9QPMSpjnzE9lFLo12vfQiXh5us3OD+EIYwNl2+jVR17PmZxIlw+b5WN6BWB8c5kT 1r3hBs7NdmAUjUs31RPp5RKI0Z0t8gXEdNFCug39Y/NmYIFuVSHevO1uKroGb0Q8zTX9 jmaDKL0G42vTIlc+6V8f+xAXY/NJlwK4lDDdh3XkNtbASfUixF50YigHQfYt0tAp+8Jg a/IQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=g0JiMKjs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c16si2917258ili.126.2021.09.16.08.52.10; Thu, 16 Sep 2021 08:52:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=g0JiMKjs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240410AbhIPPwT (ORCPT + 99 others); Thu, 16 Sep 2021 11:52:19 -0400 Received: from mout.gmx.net ([212.227.17.21]:53683 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240260AbhIPPv0 (ORCPT ); Thu, 16 Sep 2021 11:51:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1631807400; bh=NqVVwzeNWwEQk/AH9IAdroOp0Zewk+TH9OlgrOa/d6k=; h=X-UI-Sender-Class:Subject:From:To:Cc:Date:In-Reply-To:References; b=g0JiMKjsxv+7t975Uxx7FMptmex2oLUzPZJetuPKZr2DlSyfUznIeFvRfSDA9RvsA GxiUhFM5epDdPunCK2QsF+Ll+02twmrfCHQW3mvH78w+ZomKoBFqEmFZFSqP7Qs54B M9pB9YEbSMB9D/w0gTOx0jhN3MbIBtKEhP8M9XCw= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from homer.fritz.box ([185.221.149.64]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N5GE1-1ms9GP20rV-0119As; Thu, 16 Sep 2021 17:50:00 +0200 Message-ID: Subject: Re: data loss when doing ls-remote and piped to command From: Mike Galbraith To: Rolf Eike Beer , git@vger.kernel.org, Linus Torvalds Cc: Tobias Ulmer , Junio C Hamano , linux-kernel@vger.kernel.org Date: Thu, 16 Sep 2021 17:49:59 +0200 In-Reply-To: <2677927.DK6gFqPMyL@devpool47> References: <6786526.72e2EbofS7@devpool47> <2279155.Qy0YqsFniq@devpool47> <85a103f6-8b3c-2f21-cc0f-04f517c0c9a1@emlix.com> <2677927.DK6gFqPMyL@devpool47> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.41.2 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:zjb95XSYmLriFpx4k9d48zBomGRzo4W1Dxm6ED4bwUcICm/rtFS czgPSnlJ4tsxdnUog5ZG9/aWPVpAuGYE/LH/jhWI9jcN5zvEASQ8vqa0pspfuM7tw8rm3Cr Uzt0q1r6QnDg1azxS3A7v8T6uaMXk0zpS3V+sXs/HVlWe5oJNoX8xByhCmWbszEBPSLcvw5 K+ZPX4WLA/Cu4ZWUSdxvA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:5l5HbZwJxpU=:GKFoQbq7FgUVIanhTs1VGP AWai0zr4lJMJp+xS1zat4NAvoj4vTf3Jk8zOJb6n2uNyp9H76phPuOvE7MiUfsNJZ+0nwlZiI cBN/qy23GKuKV+5joQ9zo5qlPYqEpGnu4/yGnwjivRq1ZvdAd/Vz8yV4OP0nkba9A3MFtksnS roVtbfV2OwQXdH7NVHNIPhW3bc1TPhM6fzCYchcOPD/r0pJbY+0trpa4nDohYEOcqzheXuuXT C+inJPzh1M2uu9wIjAVB38oyLvhH0SFSmwue2XaVR4XVMeMvvO/VC70XpoiJ/fJCu9j9g8njU oUzS+ZWjtXqvxdna/ZScXJIUKQH1xUcbZN7/8uQp9ChTj8uq+uJoUhnxfs4QC+JpiR+34CUkB KGZPL34GiRrLTkj8Q6cb0eT11UgIAwVxES0r9tHhDJqFKLAGln536YjOBtcy/QD4ALGFx6DU6 iw6AXaEOpEPrezy7eJqwsjR6oH6obpU+G94ZO6crmtDwb34YHRweNbnaEPPEPR+ZzVCDLzLLe jBryg9eYCFzVeyow1uRJ4MxvoNcbGLP8Y/0Xlby6Y1bMOk93HR7d1j23UTNjMCNoOewnA5z7d HLClfvrTJZVqeOyI7WL/TJtZbuXo42DMcuKEYu24235PTpOHbwx/ikJIpWFh6XXA45wkmjwip raES7ygfsqGSWsq8vKbRiMRd5FGCMjmoEaeq9tRvYfVxo3J5CKODXEZVbQFd2hR91LPQM738u 3Rwa+eIXn/u2FRId3m94SJ6p+94M2kMP6Wuw/GmzNl3ulOBR7mk75VSWpa93oLNaMvRlhgucs xuoIhp4DYy64vxLtytl1aexUI5V4SNCM2uiQj6LGbJ1864JkNyRixIffkCU1bIdlN1JZZj8h3 5W0aDgcuktu299WX4GI/a6+hqNhHwkLHhn7SY9RuhGKbhALpQr+2XFPkcT65jliAFOkoxvKqo IeFT9Bo3sD3YJPQu7/KzEP9rjNRH73yv3xan6HDDyPlHwFh6Bkp/JiOx+I3A4AJ1etgzDta6z US6ji5yT7i9Zc9CsIk8s661qjfm8xMBQADNU+8tXSbjV/d5NinRwHUd2i5V7v9+Sai9Q4Hulf T+29SxldoE+hwk= Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2021-09-16 at 14:17 +0200, Rolf Eike Beer wrote: > Am Donnerstag, 16. September 2021, 12:12:48 CEST schrieb Tobias Ulmer: > > On 16/09/2021 08:38, Rolf Eike Beer wrote: > > ... > > > > > The redirection seems to be an important part of it. I now did: > > > > > > git ... 2>&1 | sha256sum > > > > I've tried to reproduce this since yesterday, but couldn't until now: > > > > 2>&1 made all the difference, took less than a minute. > > > > Different repo, different machine, but also running Tumbleweed > > 5.14.1-1-default, git 2.33.0 > > > > while [ "`git --git-dir=3D$PWD/in/linux/.git ls-remote origin 2>&1 | t= ee > > failed.out | sha1sum`" =3D "7fa299e589bacdc908395730beff542b0fc684eb= =C2=A0 -" > > ]; do echo -n .; done > > .......... > > > > failed.out has multiple lines like this: > > > > --8<-- > > 4e77f7f1261f65cff06918bc5e66d02a418fc842=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 refs/tags/v3.10.18^{} > > f7b8df0cc81cf82a4ac6834225bddbe46a340455a4a5d52f29d08d923ce8d232b0b497= da674d > > d2c refs/tags/v3.18 > > b2776bf7149bddd1f4161f14f79520f17fc1d71d=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 refs/tags/v3.18^{} > > --8<-- > > > > > > Running the same on Archlinux (5.13.13-arch1-1, 2.33.0) doesn't show t= he > > problem. > > This may well turn out not to be git, but a kernel issue. > > Linus, > > since you have been hacking around in pipe.c recently, I fear this isn't > entirely impossible. Have you any idea? > > For easier reference, the complete thread is at: > > https://public-inbox.org/git/85a103f6-8b3c-2f21-cc0f-04f517c0c9a1@emlix.= com/T/ > I use git-daemon (2.33) and reference clones for my local pile of kernel trees (74), so out of curiosity, modified the above ls-remote loop to fit one of them, and tried to reproduce with both master.today (ff1ffd71) and SUSE's stable branch (where Tumbleweed gets source, currently at 5.14.4). Both kernels failed to reproduce given a few minutes each (zzzz) to do so. I'm running Leap-15.3 vs Tumbleweed, but that shouldn't matter. -Mike