public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/7612: Memory leaks in cplus-dem.c
@ 2003-03-25  1:28 bangerth
  0 siblings, 0 replies; 3+ messages in thread
From: bangerth @ 2003-03-25  1:28 UTC (permalink / raw)
  To: drow, gcc-bugs, gcc-prs, nobody

Synopsis: Memory leaks in cplus-dem.c

State-Changed-From-To: open->feedback
State-Changed-By: bangerth
State-Changed-When: Tue Mar 25 01:21:28 2003
State-Changed-Why:
    A patch for this PR has been checked in in February. Is this
    fixed now?
    
    W.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7612


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

* Re: c++/7612: Memory leaks in cplus-dem.c
@ 2003-03-25  2:33 drow
  0 siblings, 0 replies; 3+ messages in thread
From: drow @ 2003-03-25  2:33 UTC (permalink / raw)
  To: drow, drow, gcc-bugs, gcc-prs, nobody

Synopsis: Memory leaks in cplus-dem.c

Responsible-Changed-From-To: unassigned->drow
Responsible-Changed-By: drow
Responsible-Changed-When: Tue Mar 25 02:33:37 2003
Responsible-Changed-Why:
    Mine.
State-Changed-From-To: feedback->closed
State-Changed-By: drow
State-Changed-When: Tue Mar 25 02:33:37 2003
State-Changed-Why:
    Patch checked in, thanks for the prod.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7612


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

* c++/7612: Memory leaks in cplus-dem.c
@ 2002-08-16  8:06 drow
  0 siblings, 0 replies; 3+ messages in thread
From: drow @ 2002-08-16  8:06 UTC (permalink / raw)
  To: gcc-gnats


>Number:         7612
>Category:       c++
>Synopsis:       Memory leaks in cplus-dem.c
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Aug 16 06:06:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     drow@mvista.com
>Release:        HEAD
>Organization:
>Environment:

>Description:
(Should there be a libiberty category in GNATS?)

I'm tracking down some bugs in which GDB consumes excessive memory.  One of
them is definitely foolishness in how ofter we call the demangler, but in
fixing that I've discovered that the demangler itself leaks memory.  Calling
cplus_demangle with DMGL_ARM | DMGL_ANSI and this string, for example:

_M_get_node__t19_Rb_tree_alloc_base3Zt4pair2ZCt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b1i0Zt3map4Zt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b1i0ZsZt4less1Zt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b1i0Zt9allocator1ZsZt9allocator1Zt3map4Zt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b1i0ZsZt4less1Zt12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b1i0Zt9allocator1Zsb1

leaks about 4K every time, above and beyond the malloc'd return value.
Anyone have an idea why?
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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

end of thread, other threads:[~2003-03-25  2:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-25  1:28 c++/7612: Memory leaks in cplus-dem.c bangerth
  -- strict thread matches above, loose matches on Subject: below --
2003-03-25  2:33 drow
2002-08-16  8:06 drow

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).