[Mono-bugs] [Bug 60801][Maj] New - Adding a call to System.Net.ServicePointManager.DefaultConnectionLimit kills any application!

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sun, 27 Jun 2004 01:14:42 -0400 (EDT)


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 casolorz@sbcglobal.net.

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

--- shadow/60801	2004-06-27 01:14:42.000000000 -0400
+++ shadow/60801.tmp.26519	2004-06-27 01:14:42.000000000 -0400
@@ -0,0 +1,158 @@
+Bug#: 60801
+Product: Mono: Runtime
+Version: unspecified
+OS: GNU/Linux [Other]
+OS Details: fedora core 2
+Status: NEW   
+Resolution: 
+Severity: Unknown
+Priority: Major
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: casolorz@sbcglobal.net               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Adding a call to System.Net.ServicePointManager.DefaultConnectionLimit kills any application!
+
+I did a few tests and thanks to my bosses suggestion figured out that if I
+add this to the simplest hello world app, it causes it to fail:
+
+System.Net.ServicePointManager.DefaultConnectionLimit = 10;
+
+the verbose output of running the app is:
+
+Method (wrapper managed-to-native)
+System.Object:__icall_wrapper_mono_thread_get_pending_exception () emitted
+at 0x4092c000 to 0x4092c049 [WindowsApp.exe]
+
+Method (wrapper runtime-invoke) System.Object:runtime_invoke_void_string
+(object,intptr,intptr,intptr) emitted at 0x4092c050 to 0x4092c0ca
+[WindowsApp.exe]
+
+Method System.OutOfMemoryException:.ctor (string) emitted at 0x4092c0d0 to
+0x4092c0f7 [WindowsApp.exe]
+
+Method System.SystemException:.ctor (string) emitted at 0x4092c0f8 to
+0x4092c11f [WindowsApp.exe]
+
+Method System.Exception:.ctor (string) emitted at 0x4092c120 to 0x4092c181
+[WindowsApp.exe]
+
+Method System.Object:.ctor () emitted at 0x4092c188 to 0x4092c18d
+[WindowsApp.exe]
+
+Method System.MonoType:get_FullName () emitted at 0x4092c190 to 0x4092c1aa
+[WindowsApp.exe]
+
+Method (wrapper managed-to-native) System.MonoType:getFullName () emitted
+at 0x4092c1b0 to 0x4092c200 [WindowsApp.exe]
+
+Method System.Exception:set_HResult (int) emitted at 0x4092c208 to
+0x4092c216 [WindowsApp.exe]
+
+Method System.NullReferenceException:.ctor (string) emitted at 0x4092c218
+to 0x4092c23f [WindowsApp.exe]
+
+Method System.StackOverflowException:.ctor (string) emitted at 0x4092c240
+to 0x4092c253 [WindowsApp.exe]
+
+ 
+
+** (WindowsApp.exe:2941): WARNING **: Could not find assembly System,
+references from /root/tests/WindowsApp.exe (assemblyref_index=1)
+
+     Major/Minor: 1,0
+
+     Build:       5000,0
+
+     Token:       b77a5c561934e089
+
+ 
+
+Method (wrapper runtime-invoke) System.Object:runtime_invoke_void
+(object,intptr,intptr,intptr) emitted at 0x4092c258 to 0x4092c2cd
+[WindowsApp.exe]
+
+Method System.NullReferenceException:.ctor () emitted at 0x4092c2d0 to
+0x4092c310 [WindowsApp.exe]
+
+Method Locale:GetText (string) emitted at 0x4092c318 to 0x4092c320
+[WindowsApp.exe]
+
+Method (wrapper runtime-invoke) System.Object:runtime_invoke_string
+(object,intptr,intptr,intptr) emitted at 0x4092c328 to 0x4092c39c
+[WindowsApp.exe]
+
+Method (wrapper managed-to-native)
+System.Object:__icall_wrapper_mono_object_new_fast (intptr) emitted at
+0x4092c3a0 to 0x4092c3f0 [WindowsApp.exe]
+
+Method System.Exception:ToString () emitted at 0x4092c3f8 to 0x4092c569
+[WindowsApp.exe]
+
+Method System.Text.StringBuilder:.ctor (string) emitted at 0x4092c570 to
+0x4092c639 [WindowsApp.exe]
+
+Method System.Text.StringBuilder:.ctor (string,int,int,int) emitted at
+0x4092c640 to 0x4092c82f [WindowsApp.exe]
+
+Method (wrapper managed-to-native) System.String:InternalAllocateStr (int)
+emitted at 0x4092c830 to 0x4092c880 [WindowsApp.exe]
+
+Method (wrapper runtime-invoke) System.Object:runtime_invoke_void
+(object,intptr,intptr,intptr) emitted at 0x4092c888 to 0x4092c8f7
+[WindowsApp.exe]
+
+Method (wrapper managed-to-native)
+System.Object:__icall_wrapper_mono_array_new_specific (intptr,int) emitted
+at 0x4092c8f8 to 0x4092c94c [WindowsApp.exe]
+
+Method System.String:.cctor () emitted at 0x4092c950 to 0x4092c99e
+[WindowsApp.exe]
+
+Method System.Runtime.CompilerServices.RuntimeHelpers:InitializeArray
+(System.Array,System.RuntimeFieldHandle) emitted at 0x4092c9a0 to
+0x4092c9cd [WindowsApp.exe]
+
+Method System.Runtime.CompilerServices.RuntimeHelpers:.cctor () emitted at
+0x4092c9d0 to 0x4092c9ed [WindowsApp.exe]
+
+Method (wrapper managed-to-native)
+System.Runtime.CompilerServices.RuntimeHelpers:GetOffsetToStringData ()
+emitted at 0x4092c9f0 to 0x4092ca39 [WindowsApp.exe]
+
+Method System.RuntimeFieldHandle:get_Value () emitted at 0x4092ca40 to
+0x4092ca54 [WindowsApp.exe]
+
+Method (wrapper managed-to-native)
+System.Runtime.CompilerServices.RuntimeHelpers:InitializeArray
+(System.Array,intptr) emitted at 0x4092ca58 to 0x4092ca9a [WindowsApp.exe]
+
+Method (wrapper managed-to-native) System.String:InternalStrcpy
+(string,int,string,int,int) emitted at 0x4092caa0 to 0x4092caeb
+[WindowsApp.exe]
+
+Method System.Text.StringBuilder:Append (string) emitted at 0x4092caf0 to
+0x4092cb70 [WindowsApp.exe]
+
+Method System.Text.StringBuilder:InternalEnsureCapacity (int) emitted at
+0x4092cb78 to 0x4092cc2e [WindowsApp.exe]
+
+Method (wrapper managed-to-native) System.String:InternalStrcpy
+(string,int,string) emitted at 0x4092cc30 to 0x4092cc75 [WindowsApp.exe]
+
+Method System.Exception:get_Message () emitted at 0x4092cc78 to 0x4092ccd8
+[WindowsApp.exe]
+
+Method System.Text.StringBuilder:ToString () emitted at 0x4092cce0 to
+0x4092cd64 [WindowsApp.exe]
+
+Method System.String:InternalSetLength (int) emitted at 0x4092cd68 to
+0x4092cdc9 [WindowsApp.exe]
+
+ 
+
+Unhandled Exception: System.NullReferenceException: Object reference not
+set to an instance of an object