GDB (with python support) crashes with following description: C:/MinGW/msys/1.0/src/gdb/gdb-python-7.4-1-mingw32-src/gdb-python-7.4-2/src/gdb-7.4/gdb/utils.c:1246: internal-error: virtual memory exhausted: can't allocate 2009222722 bytes. when stepping into x constructor (main) in this C++ code: #include <string> class T { public: T(std::string str) { } }; int main() { std::string str = ""; T x(str); return 0; }
I tried to reproduce this but failed on both 7.4.1-20120718-cvs and 7.5.50-20120808-cvs (HEAD from one week ago). Does the problem occur if you disable pretty-printing of STL containers? I don't suppose you could reproduce the error and provide a stack backtrace? That would be incredibly useful.
Perhaps related, perhaps not, but fyi, see pr 17614 for an OOM with a backtrace.