After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 85003 - Purify errors (FMR, UMR)
Purify errors (FMR, UMR)
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: general
2.2.x
Other All
: High major
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2002-06-12 11:56 UTC by Ramesh
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Attaching the output generated by Rational purify tool. (128.66 KB, text/plain)
2002-06-12 11:58 UTC, Ramesh
  Details
detailed info about memory leaks (3.31 KB, text/plain)
2002-06-21 13:22 UTC, Ramesh
  Details
purify log file. (95.77 KB, patch)
2002-07-31 14:10 UTC, Ramesh
none Details | Review
purify log file1 with more stack info (340.10 KB, text/plain)
2002-08-19 11:49 UTC, Ramesh
  Details
purify log file1 with more stack info (340.10 KB, text/plain)
2002-08-19 12:20 UTC, Ramesh
  Details
purify log file 2 (659.85 KB, text/plain)
2002-08-20 07:15 UTC, Ramesh
  Details
gnome-default-applications-properties logfile (905.54 KB, text/plain)
2002-08-20 09:02 UTC, Ramesh
  Details
Purify Log for gnome-control-center (12.66 KB, text/plain)
2003-01-24 10:24 UTC, Rajkumar
  Details
Patch as stated above (4.89 KB, patch)
2003-01-24 10:24 UTC, Rajkumar
none Details | Review
capplets common patch (660 bytes, patch)
2003-02-09 17:23 UTC, Kjartan Maraas
none Details | Review
theme-switcher patch (1.71 KB, patch)
2003-02-09 17:24 UTC, Kjartan Maraas
none Details | Review
libwindow-settings patch (1.05 KB, patch)
2003-02-09 17:25 UTC, Kjartan Maraas
none Details | Review
libsounds patch (852 bytes, patch)
2003-02-09 17:26 UTC, Kjartan Maraas
none Details | Review
patch for capplets/common (9.31 KB, patch)
2003-02-09 20:16 UTC, Christophe Fergeau
none Details | Review
leftover patch not commited yet - sent to jrb (3.64 KB, patch)
2003-02-14 22:26 UTC, Kjartan Maraas
none Details | Review

Description Ramesh 2002-06-12 11:56:53 UTC
Significant memory leak when built/tested using Rational purify tool.
The tag used to build this component is June 1st.
We did a Free hand testing and executed 80% of test assertions.
Comment 1 Ramesh 2002-06-12 11:58:58 UTC
Created attachment 9163 [details]
Attaching the output generated by Rational purify tool.
Comment 2 Jody Goldberg 2002-06-12 16:29:58 UTC
I've fixed a few of the UMRs and FMRs but could use more context.

1) Exactly what versions of things are you using ?
    - my gtk source does not match your line numbers

2) Can you rerun and include slightly more stack for things ?
    The leaks espcially are impossible to track without seeing who is calling
    things.
Comment 3 jacob berkman 2002-06-13 16:31:01 UTC
jody, i suspect they're using gtk HEAD
Comment 4 Jody Goldberg 2002-06-18 21:42:25 UTC
Ok, the FMR are fixed in CVS.
The leak is still present until we get more context.
Comment 5 Luis Villa 2002-06-20 17:06:05 UTC
Jody: so is it fair to mark this down?
Comment 6 Jody Goldberg 2002-06-20 17:11:41 UTC
Yes.  The remaining memory issues are minor.
It would be nice to track the leak, but not earth shattering.  As soon as we
get another log with slightly more context it will be fixed.
Comment 7 Ramesh 2002-06-21 13:20:07 UTC
Attached the purify output which gives more information about memory 
leaks.

HTH
Comment 8 Ramesh 2002-06-21 13:22:07 UTC
Created attachment 9379 [details]
detailed info about memory leaks
Comment 9 Jody Goldberg 2002-06-27 01:23:21 UTC
Ahhhh.... not quite what I meant.
The original format was fine.  We need more stack frames, not a more verbose
format.
Comment 10 Ramesh 2002-07-31 14:06:56 UTC
purify wont provide any stack frames. It provided only the info where 
a memory leak could have happened by specifying the line number.

Tested this component on july 14th tag source code and details are:
Memory Leaked          : 14814 Bytes 
Potentially Leaked     : 1621 Bytes

I will be attaching a latest purify log file.
Comment 11 Ramesh 2002-07-31 14:10:41 UTC
Created attachment 10150 [details] [review]
purify log file.
Comment 12 Jody Goldberg 2002-08-01 15:44:24 UTC
Sorry, I should be clearer.
By 'stack frame' I meant the calling function and line number.  The current
traces have 6 layers of call stack.  I need more to find some of the remaining
leaks.  Please regenerate the trace with traces that go at least 10 layers.

Thanks
Comment 13 Karl Gaffney 2002-08-16 16:36:21 UTC
Ramesh, can you supply this info 
Comment 14 Ramesh 2002-08-19 11:27:48 UTC
Attaching the log file with more stack frames. I have split the log 
file. The tag used to build is july 24.
Comment 15 Ramesh 2002-08-19 11:49:04 UTC
Created attachment 10569 [details]
purify log file1 with more stack info
Comment 16 Ramesh 2002-08-19 12:20:21 UTC
Created attachment 10572 [details]
purify log file1 with more stack info
Comment 17 Ramesh 2002-08-20 07:15:13 UTC
Created attachment 10590 [details]
purify log file 2
Comment 18 Ramesh 2002-08-20 08:13:46 UTC
jody: I have uploaded two log-file, will be uploading logfiles for 
gnome-file-types-properties and gnome-default-application-properties. 
Uploading files to bugzilla fails sometimes but the attachment would 
be successful, so i need to wait until i get mail from bugzilla and 
then attach the next logfile. 
Comment 19 Ramesh 2002-08-20 09:02:51 UTC
Created attachment 10595 [details]
gnome-default-applications-properties logfile
Comment 20 Mamatha 2002-10-15 10:31:18 UTC
jody: Is this data is sufficient?  Or need fresh stack?
Comment 21 Luis Villa 2002-11-07 14:38:04 UTC
SPAM as discussed last night. Search for 'SPAM as discussed last night' to catch
these all and delete them. :) 
Comment 22 Rajkumar 2003-01-24 10:22:56 UTC
With the help of Rational purify tool I have identified the points of
mem leak and have fixed them. Am attaching the patch for it and also
the brief up of purify output.
Comment 23 Rajkumar 2003-01-24 10:24:07 UTC
Created attachment 13800 [details]
Purify Log for gnome-control-center
Comment 24 Rajkumar 2003-01-24 10:24:42 UTC
Created attachment 13801 [details] [review]
Patch as stated above
Comment 25 Rajkumar 2003-01-31 05:45:23 UTC
Jody, pls. let me know if this patch is okay to commit.

Thanks.
Comment 26 Jody Goldberg 2003-02-03 21:37:38 UTC
These look safe enough, but I'd rather they wait for 2.2.1
Please commit once gnome-2.2.0 has been released.
Comment 27 Kjartan Maraas 2003-02-09 17:23:12 UTC
Adding some more patches for leaks I've found today.
Comment 28 Kjartan Maraas 2003-02-09 17:23:59 UTC
Created attachment 14219 [details] [review]
capplets common patch
Comment 29 Kjartan Maraas 2003-02-09 17:24:28 UTC
Created attachment 14220 [details] [review]
theme-switcher patch
Comment 30 Kjartan Maraas 2003-02-09 17:25:14 UTC
Created attachment 14221 [details] [review]
libwindow-settings patch
Comment 31 Kjartan Maraas 2003-02-09 17:26:33 UTC
Created attachment 14222 [details] [review]
libsounds patch
Comment 32 Christophe Fergeau 2003-02-09 20:15:39 UTC
Here comes one more patch which fixes some gnome-vfs related leaks
Comment 33 Christophe Fergeau 2003-02-09 20:16:36 UTC
Created attachment 14224 [details] [review]
patch for capplets/common
Comment 34 Kjartan Maraas 2003-02-14 18:29:53 UTC
Looks like bits of rajkumar's patch was included in my patch that was
commited. I'll grab and test the leftovers and make sure to attribute
all the changes to the right person in a new patch :-)
Comment 35 Kjartan Maraas 2003-02-14 18:30:54 UTC
Christophe's stuff was also included in the patch I sent to jrb and
got included.
Comment 36 Kjartan Maraas 2003-02-14 22:26:08 UTC
Created attachment 14326 [details] [review]
leftover patch not commited yet - sent to jrb
Comment 37 Kjartan Maraas 2003-04-22 23:18:34 UTC
Jrb, I think the last of these patches is the only one that hasn't
been commited.
Comment 38 Kjartan Maraas 2003-04-29 21:49:37 UTC
Commited to both branches. Close to leak free now. And just one invalid read left in LargePrint themes.