SourceForge has been redesigned. Learn more.
Close

#1916 want new heap management

MSYS
open
msysDVLPR (1)
Support
none
Unknown
False
2013-02-15
2012-05-17
SquallATF
No

msys gcc can't complie big source, will get out of memory allocation error.
also program in msys can't malloc mem big than 256MB.

Discussion

  • Earnie Boyd

    Earnie Boyd - 2012-05-17
    • status: open --> pending
     
  • Earnie Boyd

    Earnie Boyd - 2012-05-17

    Which gcc? Please provide the ``gcc -v'' output.

     
  • SquallATF

    SquallATF - 2012-05-17
    • status: pending --> open
     
  • SquallATF

    SquallATF - 2012-05-17

    gcc -v
    Reading specs from /usr/gcc3/bin/../lib/gcc/i686-pc-msys/3.4.4/specs
    Configured with: /home/cstrauss/build/gcc3/gcc-3.4.4/configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --infodir=/share/info --mandir=/share/man --libexecdir=/lib --enable-languages=c,c++ --disable-nls --enable-threads=posix --enable-sjlj-exceptions --enable-hash-synchronization --enable-libstdcxx-debug --with-newlib
    Thread model: posix
    gcc version 3.4.4 (msys special)

    test code
    #include <stdio.h>
    #include <stdlib.h>

    int main()
    {
    //void *oldmem = malloc(1024*1024*256 - 1024*260 -20); //ok size biger than this will fail
    void *oldmem = malloc(1024*1024*256); //failed
    void *newmem;
    if(!oldmem) {
    printf("malloc failed\n");
    }
    else {
    newmem = realloc(oldmem, 1024*1024*300); //always fail
    if(!newmem)
    printf("realloc failed\n");
    }

    return 0;
    }

     
  • SquallATF

    SquallATF - 2012-05-17

    debug msys can find the failed location in heap.cc
    call VirtualAlloc fail using GetLastError get the error code is ERROR_INVALID_ADDRESS 487 (0x1E7)

     
  • Earnie Boyd

    Earnie Boyd - 2013-02-15

    Ticket moved from /p/mingw/feature-requests/110/

     
  • Earnie Boyd

    Earnie Boyd - 2013-02-15
    • labels: MSYS --> msysDVLPR
    • assigned_to: Cesar Strauss
    • milestone: --> MSYS
    • type: --> Support
    • resolution: --> none
    • category: --> Unknown
    • patch_attached: --> False
     

Log in to post a comment.