delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/08/21/04:51:16

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Fri, 21 Aug 2009 10:50:54 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: [1.7.0-60] "git gc" still crashes with cmalloc error
Message-ID: <20090821085054.GF32408@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <h6lgkk$krf$1 AT ger DOT gmane DOT org>
MIME-Version: 1.0
In-Reply-To: <h6lgkk$krf$1@ger.gmane.org>
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 Aug 21 02:59, mikey wrote:
> I just upgraded to 1.7.0-60 and ran the same "git gc" command that was  
> failing in:
>
>   http://cygwin.com/ml/cygwin/2009-08/msg00620.html
>
> and I got a cmalloc error again.  I captured strace output but I don't  
> know how much of it you need.  Here are the last few lines before the  
> crash:
>
>   56 24175056 [main] git 9052 cygpsid::debug_print: get_sids_info: owner 
> SID = S-1-5-21-1830819319-1975652134-394877016-22497
>   16 24175072 [main] git 9052 cygpsid::debug_print: get_sids_info: group 
> SID = S-1-5-21-1830819319-1975652134-394877016-513
>   16 24175088 [main] git 9052 get_info_from_sd: ACL 124, uid 32497, gid 10513
>   24 24175112 [main] git 9052 fhandler_base::fstat_helper: 0 = fstat (, 
> 0x22BBE0) st_atime=4A8A4022 st_size=2766869216, st_mode=0x8124,  
> st_ino=27303072741378156, sizeof=96
>   32 24175144 [main] git 9052 MapView: 0x6D5C0000 (status 0x0) =  
> NtMapViewOfSection (h:65C, addr:0, len:33554432, off:56000000,  
> protect:80, type:0)
>   68 24175212 [main] git 9052 mmap64: 0x6D5C0000 = mmap()   28 24175240 
> [main] git 9052 munmap: munmap (addr 70360000, len 33554432)
>  976 24176216 [main] git 9052 build_fh_pc: fh 0x6120D36C
>   91 24176307 [main] git 9052 munmap: 0 = munmap(): 70360000
>   25 24176332 [main] git 9052 mmap64: addr 0, len 33554432, prot 1,  
> flags 2, fd 3, off 1325400064
>  779 24177111 [main] git 9052 seterrno_from_win_error:  
> /ext/build/netrel/src/cygwin-1.7.0-60/winsup/cygwin/cygheap.cc:145  
> windows error 487
>   15 24177126 [main] git 9052 geterrno_from_win_error: windows error 487 
> == errno 22
>   15 24177141 [main] git 9052 __set_errno: void  
> seterrno_from_win_error(const char*, int, DWORD):319 val 22
>   68 24177209 [main] git 9052 C:\cygwin2\bin\git.exe: *** fatal error - 
> cmalloc would have returned NULL

Thanks.  It took some time to reproduce it, but I think I found the
problem.  A file handler datastructure was allocated in mmap() and
parts of it never got free'd, starting with the changes in 1.7.0-53.


Corinna

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

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

- Raw text -


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