From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9908 invoked by alias); 5 Dec 2014 16:15:42 -0000 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org Received: (qmail 9884 invoked by uid 48); 5 Dec 2014 16:15:41 -0000 From: "hadess at hadess dot net" To: gdb-prs@sourceware.org Subject: [Bug gdb/17681] New: Huge memory leak when using tab completion Date: Fri, 05 Dec 2014 16:15:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hadess at hadess dot net X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-q4/txt/msg00339.txt.bz2 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.