Subject: pkg/32528: Certificate Manager Crashes Mozilla
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <svs+pr@grep.ru>
List: pkgsrc-bugs
Date: 01/15/2006 00:30:00
>Number:         32528
>Category:       pkg
>Synopsis:       Certificate Manager Crashes Mozilla
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 15 00:30:00 +0000 2006
>Originator:     Sergey Svishchev
>Release:        3.99.10
>Organization:
>Environment:
Mozilla 1.7.11
>Description:
Every time I open Certificate Manager, Mozilla instantly crashes.  I've run it under gdb and got the following backtrace:

#0  0x08056ee0 in nsAString::SetLength(unsigned) ()
#1  0xb73417b0 in nsNSSCertificate::FormatUIStrings(nsAutoString const&,
nsAutoString&, nsAutoString&) ()
   from /usr/pkg/lib/mozilla/components/libpipnss.so
#2  0xb7368753 in nsCertTree::CmpInitCriterion(nsIX509Cert*,
CompareCacheHashEntry*, nsCertTree::sortCriterion, int) ()
   from /usr/pkg/lib/mozilla/components/libpipnss.so
#3  0xb7368a3a in nsCertTree::CmpByCrit(nsIX509Cert*, CompareCacheHashEntry*,
nsIX509Cert*, CompareCacheHashEntry*, nsCertTree::sortCriterion, int) () from
/usr/pkg/lib/mozilla/components/libpipnss.so
#4  0xb7368ab4 in nsCertTree::CmpBy(void*, nsIX509Cert*, nsIX509Cert*,
nsCertTree::sortCriterion, nsCertTree::sortCriterion, nsCertTree::sortCriterion)
() from /usr/pkg/lib/mozilla/components/libpipnss.so
#5  0xb7368b85 in nsCertTree::CmpCACert(void*, nsIX509Cert*, nsIX509Cert*) ()
   from /usr/pkg/lib/mozilla/components/libpipnss.so
#6  0xb7367309 in nsCertTree::GetCertsByTypeFromCertList(CERTCertListStr*,
unsigned, int (*)(void*, nsIX509Cert*, nsIX509Cert*), void*, nsISupportsArray**)
() from /usr/pkg/lib/mozilla/components/libpipnss.so
#7  0xb73674ae in nsCertTree::GetCertsByTypeFromCache(nsINSSCertCache*,
unsigned, int (*)(void*, nsIX509Cert*, nsIX509Cert*), void*, nsISupportsArray**)
() from /usr/pkg/lib/mozilla/components/libpipnss.so
<...snip...>

... which led me to bug 225034.
>How-To-Repeat:

>Fix:
https://bugzilla.mozilla.org/attachment.cgi?id=192556