Closed Bug 733374 Opened 12 years ago Closed 11 years ago

WARNING: The two measurements of 'explicit' memory usage don't match

Categories

(Core :: XPCOM, defect)

x86_64
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: standard8, Unassigned)

References

Details

I've been hitting this on almost every Thunderbird run recently.

WARNING: The two measurements of 'explicit' memory usage don't match (23789568 vs 24051712): file /Users/moztest/comm/reviewcc/src/mozilla/xpcom/base/nsMemoryReporterManager.cpp, line 832

STR:

1) Build Thunderbird in debug mode
2) Run Thunderbird
3) Wait

Actual results: get a warning
Expected results: no warning.

I'm running Thunderbird using a clang build on 10.6.
I fixed this yesterday in a follow-up patch, see bug 729403 comment 8.  Please reopen if you still see it in updated builds.  Thanks!
Interesting that a heap-vs-nonheap mistakes triggers this warning, but doesn't trigger any assertions.  Are there (sound) assertions we could add to catch that kind of problem more quickly?
(In reply to Jesse Ruderman from comment #2)
> Interesting that a heap-vs-nonheap mistakes triggers this warning, but
> doesn't trigger any assertions.  Are there (sound) assertions we could add
> to catch that kind of problem more quickly?

When everything is ok the test fails occasionally.  And when memory reporters have defects (like mixing up HEAP and NONHEAP) it fails every time.

I guess I could add a counter, and if the first N tests all fail, then trigger an assertion?
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Patch 3 in bug 859657 will remove this warning.
Status: RESOLVED → REOPENED
Depends on: 859657
Resolution: FIXED → ---
> Patch 3 in bug 859657 will remove this warning.

It just landed.
Status: REOPENED → RESOLVED
Closed: 12 years ago11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.