Closed Bug 400842 Opened 18 years ago Closed 18 years ago

Remove memory leak debug data from output.log.

Categories

(NSS :: Test, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED
3.11.9

People

(Reporter: slavomir.katuscak+mozilla, Assigned: slavomir.katuscak+mozilla)

Details

Attachments

(2 files)

Memory leak checking reports output from leak checking tools to output.log and to separated files in memleak_logs directory. It's duplicity which is not desirable. After enabling PKIX testing, output.log became too big. We don't need stack details directly in output.log, it's enough to have them only in files in memleak_logs directory.
Attached patch Patch.Splinter Review
Attachment #285897 - Flags: review?(nelson)
I believe the patch attached does what Slavo intended, but I am not sure that we really want to make that change. I don't agree that "it's enough to have them only in files in memleak_logs directory" unless the files in that directory (as a result of Tinderbox runs and/or nightly builds) are always readily available to NSS developers both inside and outside of Sun. Comments?
We have one serious problem with big logfiles - after enabling PKIX there was log 2 times bigger then before (memleak.sh was tested 2 times) and mail server on Mozilla side just didn't accept it. Log from one test cycle on Linux/Valgrind has now 16.1 MB. When testing with PKIX (and now also with Shared DB) it increases much and mail server on Mozilla side has 25.6 MB limit for one email - that's also one of the reasons why I splitted Tinderbox testing to 4 cycles. Before doing this, I got some returned mails: ----- The following addresses had permanent fatal errors ----- <tinderbox-daemon@dm-webtools02.mozilla.org> (reason: 552 5.2.3 Message size exceeds fixed maximum message size (25600000)) ----- Transcript of session follows ----- ... while talking to brmea-mail.sun.com.: >>> MAIL From:<svbld@mace.red.iplanet.com> SIZE=33184826 <<< 552 5.2.3 Message size exceeds fixed maximum message size (25600000) 554 5.0.0 Service unavailable
Btw - my patch doesn't remove stacks from output.log completely, it prints there one line versions sorted with -u parameter (unique lines) - the same what is now in foundleaks file.
Comment on attachment 285897 [details] [diff] [review] Patch. OK, let's try it.
Attachment #285897 - Flags: review?(nelson) → review+
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Previous patch causes that Linux parser can't find the name of tested binary in Valgrind log file. I'm working on fix.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Fixed problem for comment 6. Previous patch removed message containing binary name from logs, this patch adds it back (in shorter format).
Attachment #286986 - Flags: review?(nelson)
Attachment #286986 - Flags: review?(nelson) → review+
Checking in memleak.sh; /cvsroot/mozilla/security/nss/tests/memleak/memleak.sh,v <-- memleak.sh new revision: 1.21; previous revision: 1.20 done
Status: REOPENED → RESOLVED
Closed: 18 years ago18 years ago
Resolution: --- → FIXED
Status: RESOLVED → REOPENED
Priority: -- → P2
Resolution: FIXED → ---
Target Milestone: --- → 3.11.9
Attachment #286986 - Flags: review?(julien.pierre.boogz)
Attachment #286986 - Flags: review?(julien.pierre.boogz) → review+
Checking in memleak.sh; /cvsroot/mozilla/security/nss/tests/memleak/memleak.sh,v <-- memleak.sh new revision: 1.1.2.17; previous revision: 1.1.2.16 done
Status: REOPENED → RESOLVED
Closed: 18 years ago18 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: