[Mono-bugs] [Bug 74952][Nor] Changed - Rapid RSA construct-> random number generator -> NullReference

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed May 18 15:50:19 EDT 2005


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by harningt at gmail.com.

http://bugzilla.ximian.com/show_bug.cgi?id=74952

--- shadow/74952	2005-05-18 15:34:08.000000000 -0400
+++ shadow/74952.tmp.29491	2005-05-18 15:50:19.000000000 -0400
@@ -185,6 +185,61 @@
 I can only seem to get the error after about 5 times of loading up the
 test or if I ctrl+C out early which would result in about 3 times
 instead of 5 (since the error generally occurs during the start of the
 test).  
 After the initial crash, it seems to occur more frequently (2 out of 3
 runs on average).
+
+------- Additional Comments From harningt at gmail.com  2005-05-18 15:50 -------
+Here's a section of the results for that.  The rest are repeats.
+
+asking for System.Security.Cryptography.RandomNumberGenerator resulted
+in System.NullReferenceException: Object reference not set to an
+instance of an object
+in <0x00000> <unknown method>
+in (wrapper managed-to-native) System.Type:internal_from_name
+(string,bool,bool)
+in [0x00014] (at /extSrc/mono/mcs/class/corlib/System/Type.cs:420)
+System.Type:GetType (System.String typeName)
+in [0x00055] (at
+/extSrc/mono/mcs/class/corlib/System.Security.Cryptography/CryptoConfig.cs:454)
+System.Security.Cryptography.CryptoConfig:CreateFromName
+(System.String name, System.Object[] args)
+System.NullReferenceException: Object reference not set to an instance
+of an object
+in [0x00026] (at
+/extSrc/mono/mcs/class/corlib/Mono.Math/BigInteger.cs:530)
+Mono.Math.BigInteger:GenerateRandom (Int32 bits,
+System.Security.Cryptography.RandomNumberGenerator rng)
+in [0x00006] (at
+/extSrc/mono/mcs/class/corlib/Mono.Math/BigInteger.cs:555)
+Mono.Math.BigInteger:GenerateRandom (Int32 bits)
+in [0x00001] (at
+/extSrc/mono/mcs/class/corlib/Mono.Math.Prime.Generator/SequentialSearchPrimeGeneratorBase.cs:42)
+Mono.Math.Prime.Generator.SequentialSearchPrimeGeneratorBase:GenerateSearchBase
+(Int32 bits, System.Object context)
+in [0x00003] (at
+/extSrc/mono/mcs/class/corlib/Mono.Math.Prime.Generator/SequentialSearchPrimeGeneratorBase.cs:62)
+Mono.Math.Prime.Generator.SequentialSearchPrimeGeneratorBase:GenerateNewPrime
+(Int32 bits, System.Object context)
+in [0x00003] (at
+/extSrc/mono/mcs/class/corlib/Mono.Math.Prime.Generator/SequentialSearchPrimeGeneratorBase.cs:50)
+Mono.Math.Prime.Generator.SequentialSearchPrimeGeneratorBase:GenerateNewPrime
+(Int32 bits)
+in [0x00008] (at
+/extSrc/mono/mcs/class/corlib/Mono.Math/BigInteger.cs:932)
+Mono.Math.BigInteger:GeneratePseudoPrime (Int32 bits)
+in [0x00028] (at
+/extSrc/mono/mcs/class/corlib/Mono.Security.Cryptography/RSAManaged.cs:102)
+Mono.Security.Cryptography.RSAManaged:GenerateKeyPair ()
+in [0x00022] (at
+/extSrc/mono/mcs/class/corlib/Mono.Security.Cryptography/RSAManaged.cs:257)
+Mono.Security.Cryptography.RSAManaged:ExportParameters (Boolean
+includePrivateParameters)
+in [0x00023] (at
+/extSrc/mono/mcs/class/corlib/System.Security.Cryptography/RSACryptoServiceProvider.cs:225)
+System.Security.Cryptography.RSACryptoServiceProvider:ExportParameters
+(Boolean includePrivateParameters)
+in [0x0000f] (at /home/harningt/rsaCrash.cs:17) M:ThreadLoad ()
+
+Strange... seems the typeloader is what's going bad here, nothing
+particularly due to CryptoConfig as we thought.


More information about the mono-bugs mailing list