public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/18590] GDB memory leak (5+ GB) with Qt Creator in python theDumper.showData
       [not found] <bug-18590-4717@http.sourceware.org/bugzilla/>
@ 2015-06-24 11:17 ` szotsaki at gmail dot com
  2015-06-24 11:18 ` szotsaki at gmail dot com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 5+ messages in thread
From: szotsaki at gmail dot com @ 2015-06-24 11:17 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #1 from Ákos Szőts <szotsaki at gmail dot com> ---
Created attachment 8387
  --> https://sourceware.org/bugzilla/attachment.cgi?id=8387&action=edit
First backtrace of the running GDB

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From gdb-prs-return-18257-listarch-gdb-prs=sources.redhat.com@sourceware.org Wed Jun 24 11:17:17 2015
Return-Path: <gdb-prs-return-18257-listarch-gdb-prs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-gdb-prs@sources.redhat.com
Received: (qmail 57196 invoked by alias); 24 Jun 2015 11:17:16 -0000
Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <gdb-prs.sourceware.org>
List-Subscribe: <mailto:gdb-prs-subscribe@sourceware.org>
List-Archive: <http://sourceware.org/ml/gdb-prs/>
List-Post: <mailto:gdb-prs@sourceware.org>
List-Help: <mailto:gdb-prs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: gdb-prs-owner@sourceware.org
Delivered-To: mailing list gdb-prs@sourceware.org
Received: (qmail 57163 invoked by uid 48); 24 Jun 2015 11:17:16 -0000
From: "szotsaki at gmail dot com" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug c++/18590] New: GDB memory leak (5+ GB) with Qt Creator in
 python theDumper.showData
Date: Wed, 24 Jun 2015 11:17:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gdb
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.8
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: szotsaki at gmail dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
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 target_milestone
Message-ID: <bug-18590-4717@http.sourceware.org/bugzilla/>
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: 2015-q2/txt/msg00451.txt.bz2
Content-length: 888

https://sourceware.org/bugzilla/show_bug.cgi?id\x18590

            Bug ID: 18590
           Summary: GDB memory leak (5+ GB) with Qt Creator in python
                    theDumper.showData
           Product: gdb
           Version: 7.8
            Status: NEW
          Severity: normal
          Priority: P2
         Component: c++
          Assignee: unassigned at sourceware dot org
          Reporter: szotsaki at gmail dot com
  Target Milestone: ---

In my project the program stopped at a break point and then Qt Creator wanted
to show the stack with pretty printing. However, in a minute GDB used around 5
GB of memory and was growing further.

I attach the following files:
- gdb bt-1 and gdb bt-2: two backtraces of GDB at different times
- gdb issued commands: the issued commands by Qt Creator

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/18590] GDB memory leak (5+ GB) with Qt Creator in python theDumper.showData
       [not found] <bug-18590-4717@http.sourceware.org/bugzilla/>
  2015-06-24 11:17 ` [Bug c++/18590] GDB memory leak (5+ GB) with Qt Creator in python theDumper.showData szotsaki at gmail dot com
@ 2015-06-24 11:18 ` szotsaki at gmail dot com
  2015-06-24 15:24 ` szotsaki at gmail dot com
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 5+ messages in thread
From: szotsaki at gmail dot com @ 2015-06-24 11:18 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #2 from Ákos Szőts <szotsaki at gmail dot com> ---
Created attachment 8388
  --> https://sourceware.org/bugzilla/attachment.cgi?id=8388&action=edit
Second backtrace of the running GDB

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From gdb-prs-return-18260-listarch-gdb-prs=sources.redhat.com@sourceware.org Wed Jun 24 11:19:18 2015
Return-Path: <gdb-prs-return-18260-listarch-gdb-prs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-gdb-prs@sources.redhat.com
Received: (qmail 66636 invoked by alias); 24 Jun 2015 11:19:18 -0000
Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <gdb-prs.sourceware.org>
List-Subscribe: <mailto:gdb-prs-subscribe@sourceware.org>
List-Archive: <http://sourceware.org/ml/gdb-prs/>
List-Post: <mailto:gdb-prs@sourceware.org>
List-Help: <mailto:gdb-prs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: gdb-prs-owner@sourceware.org
Delivered-To: mailing list gdb-prs@sourceware.org
Received: (qmail 66606 invoked by uid 48); 24 Jun 2015 11:19:17 -0000
From: "szotsaki at gmail dot com" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug c++/18590] GDB memory leak (5+ GB) with Qt Creator in python
 theDumper.showData
Date: Wed, 24 Jun 2015 11:19:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gdb
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.8
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: szotsaki at gmail dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-18590-4717-fEhGW146zD@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-18590-4717@http.sourceware.org/bugzilla/>
References: <bug-18590-4717@http.sourceware.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://sourceware.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-q2/txt/msg00454.txt.bz2
Content-length: 348

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

--- Comment #3 from Ákos Szőts <szotsaki at gmail dot com> ---
Created attachment 8389
  --> https://sourceware.org/bugzilla/attachment.cgi?id=8389&action=edit
Commands issued to GDB by Qt Creator

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From gdb-prs-return-18261-listarch-gdb-prs=sources.redhat.com@sourceware.org Wed Jun 24 14:46:18 2015
Return-Path: <gdb-prs-return-18261-listarch-gdb-prs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-gdb-prs@sources.redhat.com
Received: (qmail 63715 invoked by alias); 24 Jun 2015 14:46:18 -0000
Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <gdb-prs.sourceware.org>
List-Subscribe: <mailto:gdb-prs-subscribe@sourceware.org>
List-Archive: <http://sourceware.org/ml/gdb-prs/>
List-Post: <mailto:gdb-prs@sourceware.org>
List-Help: <mailto:gdb-prs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: gdb-prs-owner@sourceware.org
Delivered-To: mailing list gdb-prs@sourceware.org
Received: (qmail 63629 invoked by uid 48); 24 Jun 2015 14:46:17 -0000
From: "dje at google dot com" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug c++/18590] GDB memory leak (5+ GB) with Qt Creator in python
 theDumper.showData
Date: Wed, 24 Jun 2015 14:46:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gdb
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.8
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dje at google dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-18590-4717-muIcxVoCGs@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-18590-4717@http.sourceware.org/bugzilla/>
References: <bug-18590-4717@http.sourceware.org/bugzilla/>
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: 2015-q2/txt/msg00455.txt.bz2
Content-length: 692

https://sourceware.org/bugzilla/show_bug.cgi?id\x18590

dje at google dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dje at google dot com

--- Comment #4 from dje at google dot com ---
Sometimes what seem to be memory leaks is actually poor processing of debug
info, with gdb expanding far more debug info than necessary.

It would be helpful to run the backtrace again, but doing "set debug
symtab-create 1" first, and then seeing the output of the backtrace.

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/18590] GDB memory leak (5+ GB) with Qt Creator in python theDumper.showData
       [not found] <bug-18590-4717@http.sourceware.org/bugzilla/>
  2015-06-24 11:17 ` [Bug c++/18590] GDB memory leak (5+ GB) with Qt Creator in python theDumper.showData szotsaki at gmail dot com
  2015-06-24 11:18 ` szotsaki at gmail dot com
@ 2015-06-24 15:24 ` szotsaki at gmail dot com
  2015-10-10 17:51 ` szotsaki at gmail dot com
  2023-06-09 20:04 ` tromey at sourceware dot org
  4 siblings, 0 replies; 5+ messages in thread
From: szotsaki at gmail dot com @ 2015-06-24 15:24 UTC (permalink / raw)
  To: gdb-prs

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.
>From gdb-prs-return-18263-listarch-gdb-prs=sources.redhat.com@sourceware.org Wed Jun 24 15:29:53 2015
Return-Path: <gdb-prs-return-18263-listarch-gdb-prs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-gdb-prs@sources.redhat.com
Received: (qmail 105835 invoked by alias); 24 Jun 2015 15:29:53 -0000
Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <gdb-prs.sourceware.org>
List-Subscribe: <mailto:gdb-prs-subscribe@sourceware.org>
List-Archive: <http://sourceware.org/ml/gdb-prs/>
List-Post: <mailto:gdb-prs@sourceware.org>
List-Help: <mailto:gdb-prs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: gdb-prs-owner@sourceware.org
Delivered-To: mailing list gdb-prs@sourceware.org
Received: (qmail 105804 invoked by uid 48); 24 Jun 2015 15:29:53 -0000
From: "dje at google dot com" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug c++/18590] GDB memory leak (5+ GB) with Qt Creator in python
 theDumper.showData
Date: Wed, 24 Jun 2015 15:29:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gdb
X-Bugzilla-Component: c++
X-Bugzilla-Version: 7.8
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dje at google dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at sourceware dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-18590-4717-dat4oMacy4@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-18590-4717@http.sourceware.org/bugzilla/>
References: <bug-18590-4717@http.sourceware.org/bugzilla/>
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: 2015-q2/txt/msg00457.txt.bz2
Content-length: 242

https://sourceware.org/bugzilla/show_bug.cgi?id\x18590

--- Comment #6 from dje at google dot com ---
Thanks.
I see only 26 symtabs created so that theory is shot.

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/18590] GDB memory leak (5+ GB) with Qt Creator in python theDumper.showData
       [not found] <bug-18590-4717@http.sourceware.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2015-06-24 15:24 ` szotsaki at gmail dot com
@ 2015-10-10 17:51 ` szotsaki at gmail dot com
  2023-06-09 20:04 ` tromey at sourceware dot org
  4 siblings, 0 replies; 5+ messages in thread
From: szotsaki at gmail dot com @ 2015-10-10 17:51 UTC (permalink / raw)
  To: gdb-prs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|7.8                         |7.9

--- Comment #7 from Ákos Szőts <szotsaki at gmail dot com> ---
„Successfully” reproducible with version 7.9.1.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
>From gdb-prs-return-18682-listarch-gdb-prs=sources.redhat.com@sourceware.org Sun Oct 11 07:43:42 2015
Return-Path: <gdb-prs-return-18682-listarch-gdb-prs=sources.redhat.com@sourceware.org>
Delivered-To: listarch-gdb-prs@sources.redhat.com
Received: (qmail 15186 invoked by alias); 11 Oct 2015 07:43:42 -0000
Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm
Precedence: bulk
List-Id: <gdb-prs.sourceware.org>
List-Subscribe: <mailto:gdb-prs-subscribe@sourceware.org>
List-Archive: <http://sourceware.org/ml/gdb-prs/>
List-Post: <mailto:gdb-prs@sourceware.org>
List-Help: <mailto:gdb-prs-help@sourceware.org>, <http://sourceware.org/lists.html#faqs>
Sender: gdb-prs-owner@sourceware.org
Delivered-To: mailing list gdb-prs@sourceware.org
Received: (qmail 15163 invoked by uid 48); 11 Oct 2015 07:43:41 -0000
From: "vapier at gentoo dot org" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug sim/18407] Bfin simulator - error in handling >>> (S), when
 shift value > 16
Date: Sun, 11 Oct 2015 07:43:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gdb
X-Bugzilla-Component: sim
X-Bugzilla-Version: 7.9
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vapier at gentoo dot org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: vapier at gentoo dot org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-18407-4717-mA5D5fUtqZ@http.sourceware.org/bugzilla/>
In-Reply-To: <bug-18407-4717@http.sourceware.org/bugzilla/>
References: <bug-18407-4717@http.sourceware.org/bugzilla/>
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: 2015-q4/txt/msg00024.txt.bz2
Content-length: 552

https://sourceware.org/bugzilla/show_bug.cgi?id\x18407

Mike Frysinger <vapier at gentoo dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #6 from Mike Frysinger <vapier at gentoo dot org> ---
thanks, i've committed a fix to the master branch now

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/18590] GDB memory leak (5+ GB) with Qt Creator in python theDumper.showData
       [not found] <bug-18590-4717@http.sourceware.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2015-10-10 17:51 ` szotsaki at gmail dot com
@ 2023-06-09 20:04 ` tromey at sourceware dot org
  4 siblings, 0 replies; 5+ messages in thread
From: tromey at sourceware dot org @ 2023-06-09 20:04 UTC (permalink / raw)
  To: gdb-prs

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

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at sourceware dot org

--- Comment #8 from Tom Tromey <tromey at sourceware dot org> ---
We don't know what "python theDumper.showData" does, but
it's possible that it created a lot of values and
"leaked" them since they were on the value chain.
I don't recall if this problem was fixed before or after 7.9.

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-06-09 20:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-18590-4717@http.sourceware.org/bugzilla/>
2015-06-24 11:17 ` [Bug c++/18590] GDB memory leak (5+ GB) with Qt Creator in python theDumper.showData szotsaki at gmail dot com
2015-06-24 11:18 ` szotsaki at gmail dot com
2015-06-24 15:24 ` szotsaki at gmail dot com
2015-10-10 17:51 ` szotsaki at gmail dot com
2023-06-09 20:04 ` tromey at sourceware dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).