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 627257 - camel reference leakage ...
camel reference leakage ...
Status: RESOLVED OBSOLETE
Product: evolution
Classification: Applications
Component: Mailer
2.32.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
Depends on:
Blocks: 627707
 
 
Reported: 2010-08-18 12:51 UTC by Michael Meeks
Modified: 2013-03-21 11:00 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
reference log file (54.28 KB, text/plain)
2010-08-18 12:53 UTC, Michael Meeks
Details

Description Michael Meeks 2010-08-18 12:51:01 UTC
By using a hardware watch point on a CamelMboxFolder reference:

p &((GObject *)mail_folder)->ref_count
watch *$<print-out-value>
commands
bt
continue
end

in gdb - I got a nice trace - which I've pruned signal pairs (etc. from) - to try to work out why we leak references to CamelFolders.

Sadly it's unclear to me (since things are unreffed at idle - why are they?) whether we are perhaps just missing a few idle handler runs before we exit to release some more refs (or something).

Either way, there is clearly a runaway reference leak on the 'Templates' folder; I have:

       0x8307418       CamelMboxFolder 12158   'Templates'     'Templates'

ie. 12158 references on exit last time ;-)
Comment 1 Michael Meeks 2010-08-18 12:53:14 UTC
Created attachment 168197 [details]
reference log file
Comment 2 Milan Crha 2013-03-21 11:00:04 UTC
I took your debug patch from bug #626180 and with it the Templates folder has only 4 references at the end. This is OK, due to other internal caches. I'm closing this for now, also because I think the over-added references had been fixed meanwhile, it was some issue in templates plugin, if I recall correctly. The 3.6.x should be fine on this.