[Bug c++/18590] GDB memory leak (5+ GB) with Qt Creator in python theDumper.showData

szotsaki at gmail dot com sourceware-bugzilla@sourceware.org
Wed Jun 24 15:24:00 GMT 2015


https://sourceware.org/bugzilla/show_bug.cgi?id=18590

Ákos Szőts <szotsaki at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Attachment #8387|0                           |1
        is obsolete|                            |
   Attachment #8388|0                           |1
        is obsolete|                            |

--- Comment #5 from Ákos Szőts <szotsaki at gmail dot com> ---
Created attachment 8390
  --> https://sourceware.org/bugzilla/attachment.cgi?id=8390&action=edit
Debug output with symtab-create 1

I re-ran the program now with "set debug symtab-create 1" before "bt"; I attach
its output.

Apart from this, I think I also can provide a short example code. When Qt
Creator tries to list the stack on the 10th line (the "for" loop), GDB starts
eating a lot of memory.

Here is the code:

#include <vector>

int main()
{
    std::vector<int> testVector;
    testVector.push_back(0);

    int i = 0;

    for (const auto& vector: testVector) {
        i += vector;
    }

    return i;
}

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Gdb-prs mailing list