From: SF/projects/mingw n. l. <min...@li...> - 2012-12-02 03:20:57
|
Bugs item #3591569, was opened at 2012-11-30 19:43 Message generated for change (Comment added) made by squallatf You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=3591569&group_id=2435 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: MSYS Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: SquallATF (squallatf) Assigned to: Cesar Strauss (cstrauss) Summary: msys can't malloc memory biger than 268169196 Initial Comment: here is the test code #include <stdio.h> #include <stdlib.h> int main() { void *okmem = malloc(1024*1024*256 - 1024*260 -20); //ok size 268169196 if(okmem) { printf("malloc ok\n"); } void *failedmem = malloc(1024*1024*256 - 1024*260 -19); //failed size 268169197 if(!okmem) { printf("malloc failed\n"); } return 0; } ---------------------------------------------------------------------- >Comment By: SquallATF (squallatf) Date: 2012-12-01 19:20 Message: I'm sorry because too much time and I remember correctly. The right is i use msys gcc complie subversion. I get this error cc1.exe: out of memory allocation 172600 bytes after a total of 268120064 bytes So I debug the msysCore then found in source\winsup\cygwin\heap.cc at line 120 commitbytes = pround (newtop - (char *) cygheap->heaptop); if (VirtualAlloc(cygheap->heaptop, commitbytes, MEM_COMMIT, PAGE_READWRITE) != NULL) goto good; the VirtualAlloc failed. If too large source code to compile will appear this error ---------------------------------------------------------------------- Comment By: Earnie Boyd (earnie) Date: 2012-12-01 08:33 Message: @squallatf: This has nothing to do with linking large programs. Please use the min...@li... list to discuss your issue and not this ticket. ---------------------------------------------------------------------- Comment By: SquallATF (squallatf) Date: 2012-11-30 19:46 Message: so that when mingw link large program may failed. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=3591569&group_id=2435 |