Bug 23016 - certmgr runs out of memory displaying large cert store
Summary: certmgr runs out of memory displaying large cert store
Status: NEW
Alias: None
Product: Tools
Classification: Mono
Component: other ()
Version: unspecified
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-09-15 12:42 UTC by Jo Shields
Modified: 2014-09-15 12:42 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report for Bug 23016 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
NEW

Description Jo Shields 2014-09-15 12:42:28 UTC
Further to bug 23013, running "certmgr -list -c -m Trust" after importing the OS trust store also exhausts memory, at the 99th certificate:

Self-signed X.509 v3 Certificate
  Serial Number: 9ADF5428D2F17D43811F6BF4C7723D41
  Issuer Name:   C=CH, O=WISeKey, OU=Copyright (c) 2005, OU=OISTE Foundation Endorsed, CN=OISTE WISeKey Global Root GA CA
  Subject Name:  C=CH, O=WISeKey, OU=Copyright (c) 2005, OU=OISTE Foundation Endorsed, CN=OISTE WISeKey Global Root GA CA
  Valid From:    11/12/2005 16:03:44
  Valid Until:   11/12/2037 16:09:51
  Unique Hash:   FDBAD1AFBCBB45744A7DEC7B998BD6266412640C


Unhandled Exception:
System.OutOfMemoryException: Out of memory.
  at (wrapper alloc) object:AllocVector (intptr,intptr)
  at Mono.Security.ASN1..ctor (System.Byte[] data) [0x00000] in <filename unknown>:0 
  at Mono.Security.X509.X509Certificate.get_RSA () [0x00000] in <filename unknown>:0 
  at Mono.Security.X509.X509Certificate.get_IsSelfSigned () [0x00000] in <filename unknown>:0 
  at Mono.Tools.CertificateManager.DisplayCertificate (Mono.Security.X509.X509Certificate x509, Boolean machine, Boolean verbose) [0x00000] in <filename unknown>:0 
  at Mono.Tools.CertificateManager.List (ObjectType type, Mono.Security.X509.X509Store store, Boolean machine, System.String file, Boolean verbose) [0x00000] in <filename unknown>:0 
  at Mono.Tools.CertificateManager.Main (System.String[] args) [0x00000] in <filename unknown>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.OutOfMemoryException: Out of memory.
  at (wrapper alloc) object:AllocVector (intptr,intptr)
  at Mono.Security.ASN1..ctor (System.Byte[] data) [0x00000] in <filename unknown>:0 
  at Mono.Security.X509.X509Certificate.get_RSA () [0x00000] in <filename unknown>:0 
  at Mono.Security.X509.X509Certificate.get_IsSelfSigned () [0x00000] in <filename unknown>:0 
  at Mono.Tools.CertificateManager.DisplayCertificate (Mono.Security.X509.X509Certificate x509, Boolean machine, Boolean verbose) [0x00000] in <filename unknown>:0 
  at Mono.Tools.CertificateManager.List (ObjectType type, Mono.Security.X509.X509Store store, Boolean machine, System.String file, Boolean verbose) [0x00000] in <filename unknown>:0 
  at Mono.Tools.CertificateManager.Main (System.String[] args) [0x00000] in <filename unknown>:0