delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/07/17/15:55:17

X-Spam-Check-By: sourceware.org
Date: Tue, 17 Jul 2007 14:54:38 -0500
From: Brian Ford <Brian DOT Ford AT FlightSafety DOT com>
Reply-To: cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
Subject: Re: CVS 1.7.0 heap errors
In-Reply-To: <20070627170744.GN7379@calimero.vinschen.de>
Message-ID: <Pine.CYG.4.58.0707171447420.2512@PC1163-8460-XP.flightsafety.com>
References: <Pine DOT CYG DOT 4 DOT 58 DOT 0706060942220 DOT 2432 AT PC1163-8460-XP DOT flightsafety DOT com> <Pine DOT CYG DOT 4 DOT 58 DOT 0706221208270 DOT 4400 AT PC1163-8460-XP DOT flightsafety DOT com> <20070627075842 DOT GH7379 AT calimero DOT vinschen DOT de> <Pine DOT CYG DOT 4 DOT 58 DOT 0706270916500 DOT 3924 AT PC1163-8460-XP DOT flightsafety DOT com> <20070627170744 DOT GN7379 AT calimero DOT vinschen DOT de>
MIME-Version: 1.0
X-IsSubscribed: yes
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

---559023410-1624259596-1184702078=:2512
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Wed, 27 Jun 2007, Corinna Vinschen wrote:

> On Jun 27 09:22, Brian Ford wrote:
> > On Wed, 27 Jun 2007, Corinna Vinschen wrote:
> > > On Jun 22 12:16, Brian Ford wrote:
> > > > On Wed, 6 Jun 2007, Brian Ford wrote:
> > > > >       6 [main] ? (1584) C:\cygwin\bin\make.exe: *** fatal error - couldn't
> > > > > allocate heap, Win32 error 487, base 0x680000, top 0x6B0000, reserve_size
> > > > > 192512, allocsize 196608, page_const 4096
> > > > >  585603 [main] make 1736 fork: child -1 - died waiting for longjmp before
> > > > > initialization, retry 0, exit code 0x100, errno 11
> > > >[...]
> > > > I'm pretty sure I've identified the change, but I don't see any
> > > > obvious cause.  Corinna, do you have any suggestions about where
> > > > to target or how to specifically dig deeper?  Thanks.
> > > >
> > > > http://cygwin.com/ml/cygwin-cvs/2007-q1/msg00139.html
> > >
> > > I can't reproduce this problem on XP,
> > >
> > > Or, did you try if setting the heap_slop_in_mb registry value to some
> > > different value (default 0 up to XP, 4 since 2K3) helps?
> >
> > I'll give it a try, but I guess I'd like to find out what the conflict is.
> > Any tips on how to catch this in the debugger or if inserting some sort of
> > vitual query would be informative?
>
> Not really, except for the obvious.  Try to find out what already uses
> the address area which is used as heap in the parent

I attained the following output from the attached patch:

      7 [main] ? (4876) heap_init: baseAddr:  0x680000
    171 [main] ? (4876) heap_init: allocBase: 0x670000
    347 [main] ? (4876) heap_init: allocProt: 0x20
    425 [main] ? (4876) heap_init: regionSize:0xA7000
    502 [main] ? (4876) heap_init: state:     0x1000
    614 [main] ? (4876) heap_init: protect:   0x20
    693 [main] ? (4876) heap_init: type:      0x40000
    778 [main] ? (4876) C:\cygwin\bin\make.exe: *** fatal error - couldn't allocate heap, Win32 error 487, base 0x680000, top 0x6B0000, reserve_size 192512, allocsize 196608, page_const 4096

I know this isn't much to go on, but just in case...

>, and perhaps why.

I really wish I had more than a few minutes a week to spend on this :-(.
Perhaps then I'll be able to figure it out.

> You could also try to eliminate any change from
> http://cygwin.com/ml/cygwin-cvs/2007-q1/msg00139.html which is not
> related to your problem, so that only the exact change causing it is
> highlighted.  That might give us an idea, hopefully.

You don't have any suggestions for how to best separate the patch into
pieces do you?

-- 
Brian Ford
Lead Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
the best safety device in any aircraft is a well-trained crew...
---559023410-1624259596-1184702078=:2512
Content-Type: TEXT/plain; charset=US-ASCII; name="heap_debug_patch.txt"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine DOT CYG DOT 4 DOT 58 DOT 0707171454380 DOT 2512 AT PC1163-8460-XP DOT flightsafety DOT com>
Content-Description: 
Content-Disposition: attachment; filename="heap_debug_patch.txt"

SW5kZXg6IGhlYXAuY2MNCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0NClJDUyBm
aWxlOiAvY3ZzL3NyYy9zcmMvd2luc3VwL2N5Z3dpbi9oZWFwLmNjLHYNCnJl
dHJpZXZpbmcgcmV2aXNpb24gMS41NA0KZGlmZiAtdSAtcCAtcjEuNTQgaGVh
cC5jYw0KLS0tIGhlYXAuY2MJMzEgT2N0IDIwMDYgMTg6NDE6MTYgLTAwMDAJ
MS41NA0KKysrIGhlYXAuY2MJMTcgSnVsIDIwMDcgMTk6NDc6MzYgLTAwMDAN
CkBAIC05NCwxMCArOTQsMzAgQEAgaGVhcF9pbml0ICgpDQogCSAgICBicmVh
azsNCiAJfQ0KICAgICAgIGlmICghcCAmJiBpbl9mb3JrZWUgJiYgIWZvcmtf
aW5mby0+aGFuZGxlX2ZhaWx1cmUgKEdldExhc3RFcnJvciAoKSkpDQorew0K
K2NoYXIgKmVuZCwgKmFkZHI7DQorDQorZm9yIChhZGRyID0gKGNoYXIgKilj
eWdoZWFwLT51c2VyX2hlYXAuYmFzZSwgZW5kID0gYWRkciArIHJlc2VydmVf
c2l6ZTsgYWRkciA8IGVuZDsgKQ0KK3sNCitNRU1PUllfQkFTSUNfSU5GT1JN
QVRJT04gICAgaW5mbzsNCisgICAgaWYgKCBWaXJ0dWFsUXVlcnkoYWRkciwg
JmluZm8sIHNpemVvZihpbmZvKSkpDQorICAgIHsNCisJc3lzdGVtX3ByaW50
ZigiYm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SIsIHAsIGN5Z2hl
YXAtPnVzZXJfaGVhcC5iYXNlKTsNCiAgICAgICBpZiAoYWxsb2NzaXplICYm
ICFWaXJ0dWFsQWxsb2MgKGN5Z2hlYXAtPnVzZXJfaGVhcC5iYXNlLCBhbGxv
Y3NpemUsIE1FTV9DT01NSVQsIFBBR0VfUkVBRFdSSVRFKSkNCg==


---559023410-1624259596-1184702078=:2512
Content-Type: text/plain; charset=us-ascii

--
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/
---559023410-1624259596-1184702078=:2512--

- Raw text -


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