delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/03/27/08:11:46

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Fri, 27 Mar 2009 14:10:59 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Problem with git on Cygiwn 1.7
Message-ID: <20090327131059.GY12738@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <ubprot221 DOT fsf AT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <ubprot221.fsf@gmail.com>
User-Agent: Mutt/1.5.19 (2009-02-20)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Mar 26 21:19, Andy Moreton wrote:
>     git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/
> 
> Produces this output:
> 
> Initialized empty Git repository in /usr/local/src/kernel.org/linux-2.6/.git/
> remote: Counting objects: 1080230, done.
> remote: Compressing objects: 100% (175739/175739), done.
> fatal: read error on input: Bad address328.00 KiB | 33 KiB/s
> fatal: index-pack failed
> 
> The relevant portion of the strace output is:
> --------------------------------------------------------------------------------
>   847 506042200 [main] git-index-pack 2084 readv: readv (0, 0x22C844, 1) blocking, sigcatchers 1
> 29196 506071396 [main] git-index-pack 2084 seterrno_from_win_error: /ext/build/netrel/src/cygwin-1.7.0-44/winsup/cygwin/fhandler.cc:1747 windows error 998
>    77 506071473 [main] git-index-pack 2084 geterrno_from_win_error: windows error 998 == errno 14
>   134 506071607 [main] git-index-pack 2084 readv: -1 = readv (0, 0x22C844, 1), errno 14
> --------------------------------------------------------------------------------

This needs help by the git maintainer.  Eric?

As far as I could debug this, what happens is that read() is called
by git with the parameters address = 0x4051d0 and len = 4096.

The len is not the problem, but the address is:

  $ objdump -h /bin/git

  /bin/git:     file format pei-i386

  Sections:
  Idx Name          Size      VMA       LMA       File off  Algn
    0 .text         00052a58  00401000  00401000  00000400  2**4
		    CONTENTS, ALLOC, LOAD, CODE
    1 .data         000145ec  00454000  00454000  00053000  2**5
		    CONTENTS, ALLOC, LOAD, DATA
    2 .rdata        00000330  00469000  00469000  00067600  2**2
		    CONTENTS, ALLOC, LOAD, READONLY, DATA
    3 .bss          0000aa90  0046a000  0046a000  00000000  2**3
		    ALLOC
    4 .idata        00008748  00475000  00475000  00067a00  2**2
		    CONTENTS, ALLOC, LOAD, DATA

So the buffer address for the read, 0x4051d0, is well within the text
segment.  That can't be right.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019