This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: [1.7.0-60] "git gc" still crashes with cmalloc error
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Fri, 21 Aug 2009 10:50:54 +0200
- Subject: Re: [1.7.0-60] "git gc" still crashes with cmalloc error
- References: <h6lgkk$krf$1@ger.gmane.org>
- Reply-to: 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