From: fredex AT fcshome DOT stoneham DOT ma DOT us Message-Id: <199608041310.JAA00675@fcshome.stoneham.ma.us> Subject: Re: DJGPP+STL problem To: brenig AT thp DOT Uni-Koeln DOT DE (Wolfram Brenig) Date: Sun, 4 Aug 1996 09:10:54 -0400 (EDT) Cc: djgpp AT delorie DOT com In-Reply-To: <199608040944.AA02455@sun17.thp.Uni-Koeln.DE> from "Wolfram Brenig" at Aug 4, 96 11:44:26 am Content-Type: text Thinking furiously, Wolfram Brenig wrote: > > I have to construct a vector >. At certain sizes of > this thing, *which are, admittedly, large but way below the maximum > size possible*, I experience strange run-time crashes due to > segmentation violations.... > > Exiting due to signal SIGSEGV > Page fault at eip=00010678, error=0006 > eax=01850ffc ebx=00000000 ecx=00011000 edx=01850ffc esi=00010000 edi=0000000d > ebp=0005fa28 esp=0005fa18 cs=00a7 ds=00af es=00af fs=008f gs=00bf ss=00af > Call frame traceback EIPs: > 0x00010678 _malloc+308 > 0x000105f5 _malloc+177 > 0x0000f6d6 ___builtin_new+42 > 0x00003138 _allocate__FiPi+40, line 50 of f6.cc > 0x000030ff _allocate__t9allocator1ZiUl+15, line 138 of f6.cc > 0x00002f7b ___t6vector1ZiRCt6vector1Zi+51, line 91 of f6.cc > 0x00002ceb _construct__FPt6vector1ZiRCt6vector1Zi+31, line 123 of f6.cc > 0x000016b5 _uninitialized_fill_n__FPt6vector1ZiUlRCt6vector1Zi+37, line 146 > of f6.cc3232 > 0x00001582 _main+70, line 6 of f6.cc > 0x00010093 ___crt1_startup+115 There's a known bug in CWSDPMI which will die a horrible death if you've allocate a large number of 'small' allocations because it runs out of heap. If you're not using CWSDPMI (e.g. you're running in a Windows dos box, or the like) then just forget I mentioned it. OTOH if you ARE running CWSDPMI, you ought to get the newest version (recently released) which you should be able to find on all the sites that carry the DJGPP V2 package. By default it has had the heap size increased so you're less likely to hit this problem, and also it comes with a tool that can be used to modify it's internal parameters, including the heap size. Fred -- ------------------------------------------------------------------------------- .---- Fred Smith / Office: fred AT computrition DOT com ( /__ ,__. __ __ / __ : / 508-663-2524 / / / /__) / / /__) .+' Home: fredex AT fcshome DOT stoneham DOT ma DOT us / / (__ (___ (__(_ (___ / :__ 617-438-5471 -------------------------------- Jude 1:24,25 ---------------------------------