Closed
Bug 129218
Opened 23 years ago
Closed 18 years ago
memory leaks in tstclnt and strsclnt
Categories
(NSS :: Tools, defect, P3)
Tracking
(Not tracked)
RESOLVED
FIXED
3.11.7
People
(Reporter: bishakhabanerjee, Assigned: alvolkov.bgs)
References
Details
Attachments
(4 files)
726 bytes,
patch
|
wtc
:
review+
nelson
:
superreview+
|
Details | Diff | Splinter Review |
1.12 KB,
patch
|
neil.williams
:
review+
nelson
:
superreview+
|
Details | Diff | Splinter Review |
4.39 KB,
patch
|
neil.williams
:
review+
nelson
:
review+
|
Details | Diff | Splinter Review |
1012 bytes,
patch
|
neil.williams
:
review+
nelson
:
superreview+
|
Details | Diff | Splinter Review |
The call stack is as follows:
Memory leak
12 bytes allocated by calloc in prmem.c (64), HANDLE: 0x004B2E08
Location of Error
PR_Calloc
prmem.c
64
PL_CreateOptState
plgetopt.c
75
main
tstclnt.c
317
_mainCRTStartup
TSTCLNT.EXE!00007EFD
(unknown)
Comment 1•23 years ago
|
||
Assigned the bug to Bishakha. Changed the component to Tools.
Target 3.4.1, priority P2.
Assignee: sonja.mirtitsch → bishakhabanerjee
Severity: normal → minor
Component: Test → Tools
Priority: -- → P2
Target Milestone: --- → 3.4.1
Comment 2•23 years ago
|
||
Changed the QA contact to Bishakha.
QA Contact: sonja.mirtitsch → bishakhabanerjee
Updated•23 years ago
|
Priority: P2 → P3
Target Milestone: 3.5 → 3.7
Comment 4•23 years ago
|
||
Moved to target milestone 3.8 because the original
NSS 3.7 release has been renamed 3.8.
Target Milestone: 3.7 → 3.8
Comment 5•22 years ago
|
||
Remove target milestone of 3.8, since these bugs didn't get into that release.
Target Milestone: 3.8 → ---
Comment 6•20 years ago
|
||
The SSL QA test clint program tstclnt has a number of leaks.
These leaks are not cause by the NSS shared libraries, but are in the
test program itself. The program should be cleaned up to eliminate
these leaks. At one time, bugs were filed for each individual leak.
I'm going to dup all but one of those bugs to this one.
Assignee: bishakhabanerjee → jason.m.reid
QA Contact: bishakhabanerjee → jason.m.reid
Summary: Memory leak in tstclnt - allocated by calloc in prmem.c → memory leaks in tstclnt
Comment 7•20 years ago
|
||
*** Bug 129219 has been marked as a duplicate of this bug. ***
Comment 8•20 years ago
|
||
*** Bug 129220 has been marked as a duplicate of this bug. ***
Comment 9•20 years ago
|
||
*** Bug 129223 has been marked as a duplicate of this bug. ***
Comment 10•20 years ago
|
||
*** Bug 129224 has been marked as a duplicate of this bug. ***
Comment 11•20 years ago
|
||
*** Bug 129225 has been marked as a duplicate of this bug. ***
Updated•19 years ago
|
Assignee: jason.m.reid → neil.williams
QA Contact: jason.m.reid → tools
Comment 12•18 years ago
|
||
Solaris DBX output:
Actual leaks report (actual leaks: 4 total size: 61 bytes)
Memory Leak (mel):
Found leaked block of size 24 bytes at address 0x48fa8
At time of allocation, the call stack was:
[1] PR_Malloc() at line 467 in "prmem.c"
[2] PL_CreateOptState() at line 83 in "plgetopt.c"
[3] main() at line 1349 in "strsclnt.c"
Memory Leak (mel):
Found leaked block of size 21 bytes at address 0x48fd8
At time of allocation, the call stack was:
[1] PL_strdup() at line 53 in "strdup.c"
[2] main() at line 1403 in "strsclnt.c"
Memory Leak (mel):
Found leaked block of size 12 bytes at address 0x46c20
At time of allocation, the call stack was:
[1] calloc() at 0xe0937488
[2] PR_Calloc() at line 475 in "prmem.c"
[3] PL_CreateOptState() at line 78 in "plgetopt.c"
[4] main() at line 1349 in "strsclnt.c"
Memory Leak (mel):
Found leaked block of size 4 bytes at address 0x47598
At time of allocation, the call stack was:
[1] PL_strdup() at line 53 in "strdup.c"
[2] main() at line 1397 in "strsclnt.c"
OS: Windows 2000 → All
Hardware: PC → All
Assignee | ||
Comment 13•18 years ago
|
||
call PL_DestroyOptState after done parsing argv
Attachment #257395 -
Flags: review?(neil.williams)
Comment 14•18 years ago
|
||
Comment on attachment 257395 [details] [diff] [review]
patch for leak in strsclnt.c/main/PL_CreateOptState
r=wtc.
Attachment #257395 -
Flags: review?(neil.williams) → review+
Assignee | ||
Comment 15•18 years ago
|
||
Integrating attachment 257395 [details] [diff] [review]:
/cvsroot/mozilla/security/nss/cmd/strsclnt/strsclnt.c,v <-- strsclnt.c
new revision: 1.52; previous revision: 1.51
Assignee | ||
Comment 16•18 years ago
|
||
free strings allocated by PL_strdup
Attachment #257404 -
Flags: review?(neil.williams)
Comment 17•18 years ago
|
||
Comment on attachment 257404 [details] [diff] [review]
fix leaks created by strsclnt.c/main/PL_strdup
One patch for all the leaks would be nice.
Attachment #257404 -
Flags: review?(neil.williams) → review+
Assignee | ||
Comment 18•18 years ago
|
||
Sorry, first one is already integrated into the trunk.
Second patch is integrated:
/cvsroot/mozilla/security/nss/cmd/strsclnt/strsclnt.c,v <-- strsclnt.c
new revision: 1.53; previous revision: 1.52
Assignee | ||
Updated•18 years ago
|
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Comment 19•18 years ago
|
||
Alexei, this bug was originally reported against tstclnt.c,
but your two patches modify strsclnt.c.
Target Milestone: --- → 3.12
Updated•18 years ago
|
Attachment #257395 -
Flags: superreview+
Updated•18 years ago
|
Attachment #257404 -
Flags: superreview+
Comment 20•18 years ago
|
||
reopening for two reasons:
a) the bug was reported against tstclnt, but the patches fix strsclnt
b) since we're doing our leak tests against the 3.11 branch, the fixes
need to go on that branch.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Target Milestone: 3.12 → 3.11.7
Comment 21•18 years ago
|
||
Giving this bug to Alexei, since he wrote the patches.
Assignee: neil.williams → alexei.volkov.bugs
Status: REOPENED → NEW
Comment 22•18 years ago
|
||
This problem seems to be in all 3 tools used for ciphers testing - selfserv, strsclnt, tstclnt. Tstclnt is normally not tested for memory leaks (it doesn't test ciphers, just send commands to selfserv).
For selfserv there was opened bug 366557.
I put leaks from memleak testing there in comment 12, because stack looks the same (PL_CreateOptState called from main function and not cleaned) and I haven't realized that it's different tool. Strsclnt seems to be fixed now, so there is not needed to create new bug. Next thing is to fix tstclnt.
Comment 23•18 years ago
|
||
(In reply to comment #22)
> Tstclnt is normally not tested for memory leaks (it doesn't
> test ciphers, just send commands to selfserv).
Tstclnt certainly does test ciphers.
We use it to test every one of the cipher suites.
> Strsclnt seems to be fixed now, so
> there is not needed to create new bug. Next thing is to fix tstclnt.
Agreed.
Comment 24•18 years ago
|
||
(In reply to comment #23)
>
> Tstclnt certainly does test ciphers.
> We use it to test every one of the cipher suites.
Current memleak tests uses tstclnt only for selfserv shutdown. (Sends command "GET /stop HTTP/1.0".)
Do we need to add there something more ?
Assignee | ||
Comment 25•18 years ago
|
||
Attachment #257562 -
Flags: superreview?(nelson)
Attachment #257562 -
Flags: review?(neil.williams)
Comment 26•18 years ago
|
||
Comment on attachment 257562 [details] [diff] [review]
patch for tstclnt.c/main/strdup leaks
r=nelson
I don't know that this patch plugs all the leaks, but it looks like it plugs several.
Attachment #257562 -
Flags: superreview?(nelson) → review+
Assignee | ||
Comment 27•18 years ago
|
||
committing attachment 257562 [details] [diff] [review] into trunk:
/cvsroot/mozilla/security/nss/cmd/tstclnt/tstclnt.c,v <-- tstclnt.c
new revision: 1.48; previous revision: 1.47
I think this patch fixes all know mem leaks in tstclnt/strsclnt. Slavo, please reopen the bug if here are more.
Assignee | ||
Comment 28•18 years ago
|
||
Attachment #258319 -
Flags: superreview?(nelson)
Attachment #258319 -
Flags: review?(neil.williams)
Comment 29•18 years ago
|
||
Comment on attachment 258319 [details] [diff] [review]
fixing presumably last leak in strsclnt
I wouldn't bet that this is the last leak (:-), but this is a good fix.
r=nelson
Attachment #258319 -
Flags: superreview?(nelson) → superreview+
Updated•18 years ago
|
Attachment #257562 -
Flags: review?(neil.williams) → review+
Comment 30•18 years ago
|
||
Comment on attachment 258319 [details] [diff] [review]
fixing presumably last leak in strsclnt
Alexei, you confused me making patches for both strsclnt and tstclnt. You may say I confuse easily but the title does say "leak in tstclnt".
Attachment #258319 -
Flags: review?(neil.williams) → review+
Assignee | ||
Comment 31•18 years ago
|
||
integrating attachment 258319 [details] [diff] [review] into trunk
/cvsroot/mozilla/security/nss/cmd/strsclnt/strsclnt.c,v <-- strsclnt.c
new revision: 1.55; previous revision: 1.54
Summary: memory leaks in tstclnt → memory leaks in tstclnt and strsclnt
Comment 32•18 years ago
|
||
committed on 3.11 branch,
Checking in strsclnt.c; new revision: 1.43.2.8; previous revision: 1.43.2.7
Status: NEW → RESOLVED
Closed: 18 years ago → 18 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•