This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: CVS 1.7.0 heap errors


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...

Attachment: heap_debug_patch.txt
Description: Text document

--
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/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]