Closed Bug 470070 Opened 16 years ago Closed 16 years ago

Multiple object leaks reported by tinderbox

Categories

(NSS :: Libraries, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
3.12.4

People

(Reporter: alvolkov.bgs, Assigned: alvolkov.bgs)

Details

Attachments

(1 file, 3 obsolete files)

Object leaks: vfychain -d AllDB -pp -vv -o OID.1.0 UserCA2.der -t Root chains.sh: -------- Running /export/tinderlight/data/communist_32_DBG/mozilla/dist/SunOS5.11_DBG.OBJ/bin/vfychain under DBX: /usr/dist/pkgs/sunstudio_sparc,v12.0/SUNWspro/prod/bin/dbx /export/tinderlight/data/communist_32_DBG/mozilla/dist/SunOS5.11_DBG.OBJ/bin/vfychain chains.sh: -------- DBX commands: dbxenv follow_fork_mode parent dbxenv rtc_mel_at_exit verbose dbxenv rtc_biu_at_exit verbose check -memuse -match 16 -frames 16 run -d AllDB -pp -vv -o OID.1.0 UserCA2.der -t Root 1[43f88]: Class List leaked 1 objects of size 20 bytes, total = 20 bytes 1[43f88]: The generated error caused an object leaks. Loop 815.Stack /CERT_PKIXVerifyCert/PKIX_BuildChain/pkix_Build_InitiateBuildChain/pkix_BuildForwardDepthFirstSearch/pkix_Buil d_ValidateEntireChain/pkix_CheckChain/pkix_CheckCert/pkix_PolicyChecker_Check/PKIX_PL_Cert_GetPolicyMappings/pkix_pl_Cert_DecodePolicyMapping/pkix_pl_oidBytes2Ascii 1[43f88]: Class List leaked 1 objects of size 20 bytes, total = 20 bytes vfychain -d UserDB -pp -vv -f UserCA2.der CA2CA1.der -t Root.der chains.sh: -------- Running /export/tinderlight/data/communist_32_DBG/mozilla/dist/SunOS5.11_DBG.OBJ/bin/vfychain under DBX: /usr/dist/pkgs/sunstudio_sparc,v12.0/SUNWspro/prod/bin/dbx /export/tinderlight/data/communist_32_DBG/mozilla/dist/SunOS5.11_DBG.OBJ/bin/vfychain chains.sh: -------- DBX commands: dbxenv follow_fork_mode parent dbxenv rtc_mel_at_exit verbose dbxenv rtc_biu_at_exit verbose check -memuse -match 16 -frames 16 run -d UserDB -pp -vv -f UserCA2.der CA2CA1.der -t Root.der 1[43f88]: Class Cert leaked 1 objects of size 136 bytes, total = 136 bytes 1[43f88]: Class List leaked 2 objects of size 20 bytes, total = 40 bytes 1[43f88]: The generated error caused an object leaks. Loop 687.Stack /CERT_PKIXVerifyCert/PKIX_BuildChain/pkix_Build_InitiateBuildChain/pkix_BuildForwardDepthFirstSearch/PKIX_PL_A IAMgr_GetAIACerts/PKIX_List_Create Assertion due to unset error code: vfychain -d AllDB -pp -vv -o OID.1.0 UserCA2.der CA2CA1.der -t CA2CA1.der chains.sh: -------- Running /export/tinderlight/data/communist_32_DBG/mozilla/dist/SunOS5.11_DBG.OBJ/bin/vfychain under DBX: /usr/dist/pkgs/sunstudio_sparc,v12.0/SUNWspro/prod/bin/dbx /export/tinderlight/data/communist_32_DBG/mozilla/dist/SunOS5.11_DBG.OBJ/bin/vfychain chains.sh: -------- DBX commands: dbxenv follow_fork_mode parent dbxenv rtc_mel_at_exit verbose dbxenv rtc_biu_at_exit verbose check -memuse -match 16 -frames 16 run -d AllDB -pp -vv -o OID.1.0 UserCA2.der CA2CA1.der -t CA2CA1.der 1[43f88]: Assertion failure: nssErr, at certvfypkix.c:896 Assertion failure: nssErr, at certvfypkix.c:896 Returned value is 1, expected result is pass chains.sh: #702: Extension: Verifying certificate(s) UserCA2.der CA2CA1.der with flags -d AllDB -o OID.1.0 -t CA2CA1.der - FAILED
Attached patch Patch v1 - fix for object leaks (obsolete) — Splinter Review
Attachment #353527 - Flags: review?(nelson)
Comment on attachment 353527 [details] [diff] [review] Patch v1 - fix for object leaks This all looks fine to me, except for the change to pkix_BuildForwardDepthFirstSearch in nss/lib/libpkix/pkix/top/pkix_build.c That change expects state->parentState to be valid immediately after the state structure has been destroyed. I didn't understand about "build constants". finally, "destucted" should be "destroyed"
Attachment #353527 - Flags: review?(nelson) → review-
Parent state should be referenced through prntState variable(pkix_build.c:3230) and not through already decref'ed state. This patch fixes this problem. I'll attach another patch to clean up the mess related to creating/destruction buildconstants member of state structure.
Attachment #353851 - Flags: review?(nelson)
Attached patch Patch v3 (obsolete) — Splinter Review
"destucted" should be "destroyed" -- the change didn't make into the attached patch.
Attachment #353527 - Attachment is obsolete: true
Attachment #353851 - Attachment is obsolete: true
Attachment #353854 - Flags: review?(nelson)
Attachment #353851 - Flags: review?(nelson)
Attached patch Patch v4Splinter Review
Remove changes for pkix_build.h file
Attachment #353854 - Attachment is obsolete: true
Attachment #353855 - Flags: review?(nelson)
Attachment #353854 - Flags: review?(nelson)
Comment on attachment 353855 [details] [diff] [review] Patch v4 ok. r=nelson
Attachment #353855 - Flags: review?(nelson) → review+
Unsetting target milestone in unresolved bugs whose targets have passed.
Target Milestone: 3.12.2 → ---
Patch was committed in December 2008
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Target Milestone: --- → 3.12.4
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: