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 gdb/17681] New: Huge memory leak when using tab completion


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

            Bug ID: 17681
           Summary: Huge memory leak when using tab completion
           Product: gdb
           Version: unknown
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: hadess at hadess dot net

Using gdb-7.8.1-32.fc21.x86_64

I loaded up a GNOME application which ended up crashing in gdb, printed a
variable ("p priv"), then tried to print the contents of that struct, but
typo'ed. I typed "p priv-" followed by 2 tabs, instead of "p priv->" follow by
2 tabs.

The memory usage ballooned from 1.5GB or resident RAM to more than 3GB.

[99163.091566] Out of memory: Kill process 28369 (gdb) score 443 or sacrifice
child
[99163.091687] Killed process 28369 (gdb) total-vm:4576768kB,
anon-rss:3537952kB, file-rss:0kB

-- 
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]