This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]