Closed Bug 64000 Opened 25 years ago Closed 22 years ago

localstore.rdf not flushed when I only use mail.

Categories

(Core Graveyard :: RDF, defect, P1)

x86
Linux
defect

Tracking

(Not tracked)

RESOLVED WORKSFORME
Future

People

(Reporter: sspitzer, Assigned: sspitzer)

References

Details

(Whiteboard: [nsbeta1+ 2/21])

Attachments

(3 files)

egads, this looks bad. while working on bug #63853 (persisting "View | Message | Unread") I noticed that if I launched mail alone, did stuff that should cause changes to localstore.rdf, and quit, localstore.rdf did not get updated on disk. if I launched mail and then browser, did stuff that should cause changes to localstore.rdf, quit mail and then quit the browser, localstore.rdf got updated on disk. I'll investigate.
here's what it looks like so far: for the localstore datasource we never call, RDFXMLDataSourceImpl::Flush() because we never call RDFXMLDataSourceImpl::~RDFXMLDataSourceImpl() because we are leaking it. probably something we are doing in mailnews. I'm continuing to investigate.
I've used the ref count balancer to see which RDFXMLDataSourceImpl objects are leaking. I attached the balance trees.
I was only watching RDFXMLDataSourceImpl, I'm not sure how nsMemoryImpl showed up when I ran find-leakers.pl (see tree for object #2). when I check for leaks when just using the browser, I still get a leaked nsMemoryImply, but the other two leaks are not there.
Look for the leaking nsXULDocument, Luke.
thanks for the tip, waterson. I'm off to find the leaking nsXULDocument. adding leak master dbaron to the cc list. add bienvenu to the cc list, to keep him in the loop. accepting.
Status: NEW → ASSIGNED
It sounds bad that you depend on destructors to do something important. Leaking |nsXULDocument|s sound bad. I'm tired of dealing with them, because it's too often circularity through JS (lately involving XBL rather than anonymous content), and nearly impossible to debug. And we leak them all over the place... What does the leak log (XPCOM_MEM_LEAK_LOG) look like?
this is p1 bad, in my book.
Priority: -- → P1
Target Milestone: --- → mozilla0.8
adding nsbeta1+ to this. I agree with dbaron. We've changed lost of code in the past in mailnews to not depend on destructors. Is there anyway we can change it so that localstore.rdf gets saved on shutdown regardless of whether a destructor is hit? Finding the leak is still good to. I'm sure this causes us to leak lots of other things.
Keywords: nsbeta1
Whiteboard: [nsbeta1+]
moving to mozilla0.9
Target Milestone: mozilla0.8 → mozilla0.9
marking nsbeta1- and moving to future milestone.
Keywords: nsbeta1nsbeta1-
Whiteboard: [nsbeta1+] → [nsbeta1+ 2/21]
Target Milestone: mozilla0.9 → Future
varada, I've got a hunch this leak might be a missing RemoveDataSource() call.
Oddly, WFM 2001093021 Linux. If I run just -mail, I can resize the window, toggle visibility of the sidebar, etc., and the changes seem to get written back out.
I tried this one with build 2002101015 on windows NT4. No problem for me. As I also see that a user seems to have no problem on Linux, could this be that this bug got solved by another checkin? This bug is old, might be the case. sspitzer, can you double check?
I tried this one with build 2002101015 on windows NT4. No problem for me. As I also see that a user seems to have no problem on Linux, could this be that this bug got solved by another checkin? This bug is old, might be the case. sspitzer, can you double check?
tever is not RDF QA anymore
QA Contact: tever → nobody
Still working on the trunk. Closing as WFM.
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → WORKSFORME
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: