[Mono-bugs] [Bug 78597][Maj] New - Object reference not set to an instance of an object

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Jun 7 07:25:32 EDT 2006

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 mfarr at paradise.net.nz.


--- shadow/78597	2006-06-07 07:25:32.000000000 -0400
+++ shadow/78597.tmp.27854	2006-06-07 07:25:32.000000000 -0400
@@ -0,0 +1,60 @@
+Bug#: 78597
+Product: Mono: Class Libraries
+Version: 1.0
+OS Details: 
+Status: NEW   
+Priority: Major
+Component: Mono.Security
+AssignedTo: sebastien at ximian.com                            
+ReportedBy: mfarr at paradise.net.nz               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: Object reference not set to an instance of an object
+Description of Problem:
+"Object reference not set to an instance of an object." in
+Mono.Security.dll when loading large amounts of data with ssl+npgsql.
+Steps to reproduce the problem:
+I imagine that this will be difficult to reproduce, but here we go
+1. Load 339 png/jpg files into postgresql via npgsql with a stored
+procedure.  These files should were max of 14M and min of 400kb totally 450Mb
+2. On the last insert, while executing npgsql bind, the npgsql library
+calls SslStreamBase.ReadByte and crashes.
+Expected Results:
+Libraries should never reference null.  If it is supplied a null value and
+needs to throw an exception it should report a reasonable error in the
+How often does this happen? 
+The test case on my machine is 100% predictable.  It doesn't seem related
+to the files that are used.  It is related to the amount of data transfered.
+Additional Information:
+referencing monocharge-20060605.tar.gz, made sure that there was no other
+mono.security.dll in gac
+Using Visual Studio express 2005 the program connects to postgresql 8.1.3
+via ssl+npgsql.
+InnerException:"Object reference not set to an instance of an object."
+System.IO.IOException occurred
+  Message="IO exception during read."
+  Source="Mono.Security"
+  StackTrace:
+       at Mono.Security.Protocol.Tls.SslStreamBase.Read(Byte[] buffer,
+Int32 offset, Int32 count)
+       at System.IO.BufferedStream.ReadByte()
+       at Npgsql.NpgsqlState.ProcessBackendResponses_Ver_3(NpgsqlConnector
+context) in D:\csharpd\Npgsql1.0RC1-src\Npgsql\Npgsql\NpgsqlState.cs:line 463

More information about the mono-bugs mailing list