PR# 4074 EV_COMBO_BOX_IMP leaks objects allocated by `gtk_vbox_new'

Problem Report Summary
Submitter: prestoat2000
Category: EiffelVision
Priority: Medium
Date: 2005/08/05
Class: Bug
Severity: Serious
Number: 4074
Release: 5.5.1012
Confidential: No
Status: Analyzed
Responsible: misterieking
Environment: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.4) Gecko/20030625 Solaris 9 on SunBlade 1000
Synopsis: EV_COMBO_BOX_IMP leaks objects allocated by `gtk_vbox_new'

Description
EV_COMBO_BOX_IMP leaks objects allocated by `gtk_vbox_new', as revealed
by using libumem and mdb (Solaris Modular Debugger).
To Reproduce
Compile with attached classes and Ace file.  You may want to lower the
number of iterations from 5000 to 500.

Setup to use libumem via:
setenv LD_PRELOAD libumem.so.1
setenv UMEM_DEBUG audit
From window where environment variables were set, run Eiffel system.
When system stops and tells you to run gcore, do "gcore <process_id>"
where <process_id> is the process id of the running Eiffel system.
Kill Eiffel system.
Run "mdb <core_file_name>" where <core_file_name> is the name of the
core file created by gcore command.
Type "::findleaks".  To see the stack trace where leaked object was
allocated, type "<addr>::bufctl_audit", where <addr> is an address
from the BUFCTL column in the output of "::findleaks".  Use TRANSLAT
file to translate C names to Eiffel routine names.

Please contact me if you have any questions.
Problem Report Interactions
From:prestoat2000    Date:2009/01/21    Status: Analyzed    Download   
This is still present in 6.3.76760 but it seems to be a GTK issue.
I have attached Ian's test case (which doesn't involve Eiffel at all) in test.c
so that this can be tracked.  I reproduced the memory leak (heap keeps growing)
on Solaris 10 SPARC, using GTK+2.14.4 and other very recent packages.

I suggest submitting a GTK bug report with this test case.  Hopefully, they will
either fix it or say what is wrong with the program.  

Attachment: test.c     Size:825
From:prestoat2000    Date:2005/08/05    Download   
==== Ian: Wed Aug  3 09:49:06 PDT 2005 ===============================

Hi David,

I believe this to be fixed now, after over 1000 iterations the memory has stayed
constant, I fixed an issue yesterday that was causing a memory leak on the
combo box and this seems to have finally fixed it, this fix will be in the
next release you receive.

Hope this helps, and thanks for the good test.


==== Ian: Wed Aug  3 09:49:06 PDT 2005 ===============================
From: dhollen@mosis.org
To: bugs@support.eiffel.com
Cc: 
Subject: Re: EiffelVision_2/4074: EV_COMBO_BOX_IMP leaks objects allocated by `gtk_vbox_new'
Date: Fri, 5 Aug 2005 11:35:18 -0700 (PDT)

 > I believe this to be fixed now, after over 1000 iterations the memory
 > has stayed constant, I fixed an issue yesterday that was causing a
 > memory leak on the combo box and this seems to have finally fixed it,
 > this fix will be in the next release you receive.
 
 I think it is better, but it is not fixed.  Besides a number of
 single buffer leaks (at least so
....
Output truncated, Click download to get the full message