all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alexander Klimov <alserkli@inbox.ru>
Cc: emacs-devel@gnu.org
Subject: Re: bootstrap error
Date: Sun, 29 Jan 2006 19:51:15 +0200 (IST)	[thread overview]
Message-ID: <TheMailAgent.31ad13321cc4626@31ec6301b49e2414f5de2> (raw)
In-Reply-To: <uzmlgxxh7.fsf@gnu.org>

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

  parent reply	other threads:[~2006-01-29 17:51 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-25 13:17 bootstrap error Alexander Klimov
2006-01-25 17:46 ` Eli Zaretskii
2006-01-26 10:21   ` Alexander Klimov
2006-01-27 13:25     ` Eli Zaretskii
2006-01-28  9:50       ` Alexander Klimov
2006-01-28 14:01         ` Eli Zaretskii
2006-01-29  8:08           ` Alexander Klimov
2006-01-29 19:37             ` Eli Zaretskii
2006-01-30  9:11               ` Alexander Klimov
2006-01-30 11:38                 ` Corinna Vinschen
2006-01-29 17:51           ` Alexander Klimov [this message]
2006-01-27 20:37     ` Eli Zaretskii
  -- strict thread matches above, loose matches on Subject: below --
2007-08-19  3:17 merging etc Miles Bader
     [not found] ` <200708211523.l7LFNnVl000876@oogie-boogie.ics.uci.edu>
     [not found]   ` <buo3aycknp8.fsf@dhapc248.dev.necel.com>
     [not found]     ` <200708220820.l7M8KbIt026014@oogie-boogie.ics.uci.edu>
     [not found]       ` <fc339e4a0708220237v3b90ec6fwde90eba1ca936e91@mail.gmail.com>
2007-08-22 11:55         ` Miles Bader
2007-08-22 15:33           ` Stefan Monnier
2007-08-23  0:19             ` Juri Linkov
2007-08-23 20:58               ` Richard Stallman
2007-08-24  8:01                 ` joakim
2007-08-24  8:46                   ` Leo
2007-08-24 10:08                     ` David Kastrup
2007-08-24 10:41                       ` Bootstrap error B. Anyos
2016-10-02 19:48 bootstrap error Colin Baxter
2016-10-02 20:22 ` Philipp Stephani
2016-10-03  5:25   ` Colin Baxter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=TheMailAgent.31ad13321cc4626@31ec6301b49e2414f5de2 \
    --to=alserkli@inbox.ru \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.