[Mono-bugs] [Bug 59485][Wis] New - Crash/Exception when using threads and WebRequest

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 2 Jun 2004 16:02:14 -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 bugs@prettypeople.org.

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

--- shadow/59485	2004-06-02 16:02:13.000000000 -0400
+++ shadow/59485.tmp.31985	2004-06-02 16:02:13.000000000 -0400
@@ -0,0 +1,41 @@
+Bug#: 59485
+Product: Mono: Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: System
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: bugs@prettypeople.org               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Crash/Exception when using threads and WebRequest
+
+When using WebRequest in a threaded program I've been getting crashes. See
+the attached program to reproduce it. Clicking on the button a few times
+will eventually crash the program. It seems to work fine for some people
+and not for others, so it seems like a race condition.
+
+On my system all I get is "Segmentation Fault", but others have reported
+getting an "asyncResult" exception:
+
+An except from IRC discussion about it:
+
+<kangaroo_> altho I did get a asyncResult exception
+<kangaroo_> but no segfault
+<iain> okay, so lets assume the segfault is a local thing...what would
+cause the asyncResult?
+<kangaroo_> connection reusing in WebConnection
+<kangaroo_> and not being properly synch'd
+<kangaroo_> would be my guess
+
+Is this a problem with my code (possibly, this is my first c# program after
+Hello-world), or is it a Mono bug?
+
+I'm running Redhat 8, with kernel 2.6.2mm and mono/mcs from CVS head from
+2nd June 2004.