From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alexander Klimov Newsgroups: gmane.emacs.devel Subject: Re: bootstrap error Date: Sun, 29 Jan 2006 19:51:15 +0200 (IST) Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: sea.gmane.org 1138561910 9442 80.91.229.2 (29 Jan 2006 19:11:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 29 Jan 2006 19:11:50 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 29 20:11:47 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1F3Hxe-0005rW-HG for ged-emacs-devel@m.gmane.org; Sun, 29 Jan 2006 20:11:43 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F3I0Z-0001T0-1H for ged-emacs-devel@m.gmane.org; Sun, 29 Jan 2006 14:14:43 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F3Gl8-0007dy-2g for emacs-devel@gnu.org; Sun, 29 Jan 2006 12:54:42 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F3Gkv-0007Z5-V3 for emacs-devel@gnu.org; Sun, 29 Jan 2006 12:54:41 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F3Gkv-0007Yx-NW for emacs-devel@gnu.org; Sun, 29 Jan 2006 12:54:29 -0500 Original-Received: from [199.203.54.24] (helo=eitan.edu) by monty-python.gnu.org with smtp (Exim 4.52) id 1F3Gj5-0003N9-Hh for emacs-devel@gnu.org; Sun, 29 Jan 2006 12:52:35 -0500 Original-Received: (qmail 11736 invoked from network); 29 Jan 2006 17:51:15 -0000 Original-Received: from unknown (HELO localhost) (127.0.0.1) by localhost with SMTP; 29 Jan 2006 17:51:15 -0000 Original-To: Eli Zaretskii In-Reply-To: X-Mailman-Approved-At: Sun, 29 Jan 2006 14:13:47 -0500 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:49696 Archived-At: On Sat, 28 Jan 2006, Eli Zaretskii wrote: > That is probably so. But I cannot reproduce anything like that on > Windows without Cygwin, so you will have to debug this on your machine > and tell here your findings. That is the only practical way to debug > this. I added yet another instrumentation: /* Allocate memory from the heap. */ __ptr_t _malloc_internal (size) __malloc_size_t size; { + static unsigned cnt = 0; + fprintf(stderr, " mi[%d %d", ++cnt, size); [...] PROTECT_MALLOC_STATE (1); + fprintf(stderr, " %d]", result); return result; The log is huge, but let see some interesting examples: mi[1 16 mi[2 4096 539860992 ] 539860992 ] // so _malloc_internal can call itself mi[3 128 mi[4 4096 539860992 ] 539860992 ] [...] Loading language/czech (source)... mi[11497 16336 * not found (13), obtain more space: 327680 * obtain(547618816, 327680), heap = 539798432 * obtain() returns 547618816 * OK 547618816] // _malloc_internal can call obtain but obtain does not call back mi[11498 12 539960624] [...] mi[12090 528 547870720] mi[12091 528 547869696] mi[12092 528 mi[12093 4096 //_malloc_internal was called recursively * not found (14), obtain more space: 327680 * obtain(548012032, 327680), heap = 539798432 mi[12094 1024 mi[12095 4096 // and obtain calls _malloc_internal again! * not found (15), obtain more space: 327680 * obtain(548012032, 327680), heap = 539798432 mi[12096 1024 mi[12097 4096 * not found (16), obtain more space: 327680 [...] So, from some point on obtain starts to call _malloc_internal back, futhermore, gdb shows that malloc() from /usr/bin/cygwin1.dll calls malloc from gmalloc.c. -- Regards, ASK