Closed Bug 126915 Opened 24 years ago Closed 23 years ago

trace-malloc broken in win32 gmake builds

Categories

(SeaMonkey :: Build Config, defect, P4)

x86
Windows 2000

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.3beta

People

(Reporter: netscape, Assigned: netscape)

References

Details

(Keywords: perf)

Attachments

(1 file, 1 obsolete file)

Forgot this hunk when I checked in the other trace-malloc changes. :-/
Severity: normal → major
Keywords: perf
Priority: -- → P1
Target Milestone: --- → mozilla0.9.9
Comment on attachment 70677 [details] [diff] [review] Add win32 ifdefs for trace-malloc to xpcom/base/Makefile.in r=bryner
Attachment #70677 - Flags: review+
r=dbaron on the patch changing MOZ_TRACE_MALLOC to NS_TRACE_MALLOC in xpcom/build/Makefile.in that we discussed yesterday.
This patch: * Changes MOZ_TRACE_MALLOC ifdefs to NS_TRACE_MALLOC ifdefs * Links against the trace-malloc utils against libxpcom instead of just xpcomds * Builds NSPR in debug mode on win32 if trace-malloc is enabled * Adds a few "defined()" checks to diffbloatdump.pl so that it will work for perl 5.6.1 * Adds a couple of checks for \r so that it works on win32.
Attachment #70677 - Attachment is obsolete: true
I'm still seeing problems even with this patch. The first run works fine but at the end of the second (sometimes third) trace-malloc bloat test, mozilla crashes with the message: The instruction at "0x10065fe9" referenced memory at "0x01d3b2e8". The memory could not be "read". MSVC's debugger is unable to attach itself to the crashed process. Garrett, dbaron said that you were working on trace-malloc with the nmake build. Have you seen anything like this before?
a=asa (on behalf of drivers) for checkin to 0.9.9
Keywords: mozilla0.9.9+
I haven't seen the nmake trace malloc enabled builds crash per se, though I have not run against the bloat tests several times in specific. I am biased that your makefile changes are likely correct, and that we have a more general problem at hand. What is the bloat test anyhow: "bloaturls.txt"? I can try to give it a go a few times to see if I see a crash.
You'll have to build with debugging enabled or non-debug with logrefcnt turned on in order for bloat tests to run properly. You'll have to manually add -DFORCE_BUILD_REFCNT_LOGGING=1 to CFLAGS to turn on logrefcnt. (I didn't realize that we don't have a nmake option for it.) Then: mozilla -f bloaturls.txt --trace-malloc tm.log --shutdown-leaks sd.log
Patch has been checked in.
Keywords: mozilla0.9.9+
Target Milestone: mozilla0.9.9 → mozilla1.0
So, it looks like it's just --shutdown-leaks that's broken. If I remove that option, the tinderbox cycles fine.
Priority: P1 → P4
Target Milestone: mozilla1.0 → mozilla1.2alpha
Target Milestone: mozilla1.2alpha → Future
The --shutdown-leaks problem appears to be fixed now. I can't test the exact failure I was seeing before because the page cycler isn't being invoked when |-f bloaturls.txt| is being used so no pages are loaded (bug 155224) and the tinderbox just times out.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Target Milestone: Future → mozilla1.3beta
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: