public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/12475] New: Stack traces leak memory
@ 2003-10-01  9:27 bryce at mckinlay dot net dot nz
  2003-10-01 17:44 ` [Bug libgcj/12475] " pinskia at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: bryce at mckinlay dot net dot nz @ 2003-10-01  9:27 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12475

           Summary: Stack traces leak memory
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libgcj
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bryce at mckinlay dot net dot nz
                CC: gcc-bugs at gcc dot gnu dot org

gnu.gcj.runtime.StackTrace.fillInStackTrace() contains a memory leak:

      frame = (_Jv_frame_info *) _Jv_Malloc (len * sizeof (_Jv_frame_info));

"frame" never gets freed.


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

* [Bug libgcj/12475] Stack traces leak memory
  2003-10-01  9:27 [Bug libgcj/12475] New: Stack traces leak memory bryce at mckinlay dot net dot nz
@ 2003-10-01 17:44 ` pinskia at gcc dot gnu dot org
  2003-10-01 19:12 ` tromey at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-01 17:44 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12475



------- Additional Comments From pinskia at gcc dot gnu dot org  2003-10-01 17:44 -------
Is memory allocated by _Jv_Malloc get freed by the GC?


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

* [Bug libgcj/12475] Stack traces leak memory
  2003-10-01  9:27 [Bug libgcj/12475] New: Stack traces leak memory bryce at mckinlay dot net dot nz
  2003-10-01 17:44 ` [Bug libgcj/12475] " pinskia at gcc dot gnu dot org
@ 2003-10-01 19:12 ` tromey at gcc dot gnu dot org
  2003-10-02  7:10 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: tromey at gcc dot gnu dot org @ 2003-10-01 19:12 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12475



------- Additional Comments From tromey at gcc dot gnu dot org  2003-10-01 19:12 -------
_Jv_Malloc is just a malloc() wrapper.
we can use _Jv_AllocBytes to allocate unscanned, GC-able
memory.


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

* [Bug libgcj/12475] Stack traces leak memory
  2003-10-01  9:27 [Bug libgcj/12475] New: Stack traces leak memory bryce at mckinlay dot net dot nz
  2003-10-01 17:44 ` [Bug libgcj/12475] " pinskia at gcc dot gnu dot org
  2003-10-01 19:12 ` tromey at gcc dot gnu dot org
@ 2003-10-02  7:10 ` cvs-commit at gcc dot gnu dot org
  2003-10-02  7:11 ` bryce at mckinlay dot net dot nz
  2003-10-17 18:19 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2003-10-02  7:10 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12475



------- Additional Comments From cvs-commit at gcc dot gnu dot org  2003-10-02 07:10 -------
Subject: Bug 12475

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	bryce@gcc.gnu.org	2003-10-02 07:10:35

Modified files:
	libjava        : ChangeLog 
	libjava/gnu/gcj/runtime: StackTrace.java natStackTrace.cc 

Log message:
	Fix PR libgcj/12475
	* gnu/gcj/runtime/StackTrace.java (finalize): Declare.
	* gnu/gcj/runtime/natStackTrace.cc (finalize): New. Free "addrs".

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/ChangeLog.diff?cvsroot=gcc&r1=1.2207&r2=1.2208
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/gnu/gcj/runtime/StackTrace.java.diff?cvsroot=gcc&r1=1.2&r2=1.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/gnu/gcj/runtime/natStackTrace.cc.diff?cvsroot=gcc&r1=1.5&r2=1.6


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

* [Bug libgcj/12475] Stack traces leak memory
  2003-10-01  9:27 [Bug libgcj/12475] New: Stack traces leak memory bryce at mckinlay dot net dot nz
                   ` (2 preceding siblings ...)
  2003-10-02  7:10 ` cvs-commit at gcc dot gnu dot org
@ 2003-10-02  7:11 ` bryce at mckinlay dot net dot nz
  2003-10-17 18:19 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: bryce at mckinlay dot net dot nz @ 2003-10-02  7:11 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12475


bryce at mckinlay dot net dot nz changed:

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


------- Additional Comments From bryce at mckinlay dot net dot nz  2003-10-02 07:11 -------
Temporary fix checked in.


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

* [Bug libgcj/12475] Stack traces leak memory
  2003-10-01  9:27 [Bug libgcj/12475] New: Stack traces leak memory bryce at mckinlay dot net dot nz
                   ` (3 preceding siblings ...)
  2003-10-02  7:11 ` bryce at mckinlay dot net dot nz
@ 2003-10-17 18:19 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-17 18:19 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12475


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |3.4


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

end of thread, other threads:[~2003-10-17 18:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-01  9:27 [Bug libgcj/12475] New: Stack traces leak memory bryce at mckinlay dot net dot nz
2003-10-01 17:44 ` [Bug libgcj/12475] " pinskia at gcc dot gnu dot org
2003-10-01 19:12 ` tromey at gcc dot gnu dot org
2003-10-02  7:10 ` cvs-commit at gcc dot gnu dot org
2003-10-02  7:11 ` bryce at mckinlay dot net dot nz
2003-10-17 18:19 ` pinskia at gcc dot gnu 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).