Mail Archives: cygwin/2007/07/17/15:55:17
---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
c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BwYWdlX2NvbnN0
KTsNCit9DQogICAgICAgaWYgKHAgIT0gY3lnaGVhcC0+dXNlcl9oZWFwLmJh
c2UpDQogCWFwaV9mYXRhbCAoImhlYXAgYWxsb2NhdGVkIGF0IHdyb25nIGFk
ZHJlc3MgJXAgKG1hcHBlZCkgIT0gJXAgKGV4cGVjdGVkKSIsIHAsIGN5Z2hl
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 -