Bug 4715 - Segfault when calling HttpWebRequest.GetResponse
Summary: Segfault when calling HttpWebRequest.GetResponse
Status: RESOLVED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: 5.3.x
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Sebastien Pouliot
URL:
Depends on:
Blocks:
 
Reported: 2012-04-29 01:28 UTC by afhcan
Modified: 2012-05-08 18:05 UTC (History)
3 users (show)

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


Attachments
Wireshark packet capture (30.37 KB, application/vnd.tcpdump.pcap)
2012-04-29 01:28 UTC, afhcan
Details
updated monotouch.dll for testing (3.05 MB, application/octet-stream)
2012-04-30 17:52 UTC, Sebastien Pouliot
Details


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 on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description afhcan 2012-04-29 01:28:37 UTC
Created attachment 1773 [details]
Wireshark packet capture

My app is using the TPL to maintain UI responsiveness. I have a set of common code which is responsible for making service calls using HttpWebRequest and returning the data to be processed. All calls are working correctly except one. When a request for a particular URI is made, I get a crash.

If I take existing service calls which are working correctly, and point them at this URI, they crash. If I take the service call that is crashing and point it at a different URI, it works correctly. The crash is happening deep inside of HttpWebRequest. While the stop of the stack trace indicates its crashing within CFNetwork.CFNetworkCopyProxiesForUrl, I however am not going through a proxy.

I've analyzed the traffic (attached) in WireShark, and it is crashing while still in the transport layer of the process.

URI: http://192.168.1.94:8080/telehealth/Services/External/Recipient.svc/List?OrgId={FDB521B6-1ADA-40D3-8AE9-0F59B9F2DB11}&Ticket=84DDB35C66B7EEF59C8B31D072A71C01E2F81158E98827C983FAF18C8B9D261A2D75680BFD6050B975E9F77EEEF1E9B235E631B957BC31D6C84CBDA6219DB11B2BC9F6BD39546158683F67A86947B034326A48B6E9F50C77D9A1578F50F26C861E514D1CE4721D011F037A1D2B0C91B7D60736B1021B7AC1A387BE28256794C7CF907B57CF2CA30F5D5D26CDAB55A986EDD8D00B9A6BD25FBADA1C583D6A13326851A92137F35DC69D4C565519E95365E6CA37FB60A8480B2297B106CE6DF9AC2A082B90D2755C2F4D73074CAFE1030512FC3A35
Stacktrace:

  at (wrapper managed-to-native) MonoTouch.CoreFoundation.CFNetwork.CFNetworkCopyProxiesForURL (intptr,intptr) <IL 0x00026, 0xffffffff>
  at MonoTouch.CoreFoundation.CFNetwork.CopyProxiesForURL (MonoTouch.Foundation.NSUrl,MonoTouch.Foundation.NSDictionary) [0x00000] in /Developer/MonoTouch/Source/monotouch/src/shared/CoreFoundation/CFProxySupport.cs:484
  at MonoTouch.CoreFoundation.CFNetwork.GetProxiesForURL (MonoTouch.Foundation.NSUrl,MonoTouch.CoreFoundation.CFProxySettings) [0x0001e] in /Developer/MonoTouch/Source/monotouch/src/shared/CoreFoundation/CFProxySupport.cs:500
  at MonoTouch.CoreFoundation.CFNetwork.GetProxiesForUri (System.Uri,MonoTouch.CoreFoundation.CFProxySettings) [0x00023] in /Developer/MonoTouch/Source/monotouch/src/shared/CoreFoundation/CFProxySupport.cs:524
  at MonoTouch.CoreFoundation.CFNetwork/CFWebProxy.GetProxy (System.Uri) [0x0001d] in /Developer/MonoTouch/Source/monotouch/src/shared/CoreFoundation/CFProxySupport.cs:689
  at MonoTouch.CoreFoundation.CFNetwork/CFWebProxy.IsBypassed (System.Uri) [0x00017] in /Developer/MonoTouch/Source/monotouch/src/shared/CoreFoundation/CFProxySupport.cs:727
  at System.Net.ServicePointManager.FindServicePoint (System.Uri,System.Net.IWebProxy) [0x00020] in /Developer/MonoTouch/Source/mono/mcs/class/System/System.Net/ServicePointManager.cs:306
  at System.Net.HttpWebRequest.GetServicePoint () [0x00027] in /Developer/MonoTouch/Source/mono/mcs/class/System/System.Net/HttpWebRequest.cs:619
  at System.Net.HttpWebRequest.BeginGetResponse (System.AsyncCallback,object) [0x00154] in /Developer/MonoTouch/Source/mono/mcs/class/System/System.Net/HttpWebRequest.cs:805
  at System.Net.HttpWebRequest.GetResponse () [0x00000] in /Developer/MonoTouch/Source/mono/mcs/class/System/System.Net/HttpWebRequest.cs:835
  at Afhcan.Mobile.Core.BusinessLogic.HttpClientHelper.ParseResponse (System.Net.WebRequest) [0x00000] in /Users/osba/Documents/Projects/Afhcan.Mobile/Afhcan.Mobile.Core/BusinessLogic/HttpClientHelper.cs:224
  at Afhcan.Mobile.Core.BusinessLogic.HttpClientHelper.GetXml () [0x00034] in /Users/osba/Documents/Projects/Afhcan.Mobile/Afhcan.Mobile.Core/BusinessLogic/HttpClientHelper.cs:43
  at Afhcan.Mobile.Core.BusinessLogic.RecipientService.ListTasked (object) [0x00053] in /Users/osba/Documents/Projects/Afhcan.Mobile/Afhcan.Mobile.Core/BusinessLogic/RecipientService.cs:36
  at System.Threading.Tasks.TaskActionInvoker/FuncObjectInvoke`1.Invoke (System.Threading.Tasks.Task,object,System.Threading.Tasks.Task) [0x00000] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Threading.Tasks/TaskActionInvoker.cs:350
  at System.Threading.Tasks.Task.InnerInvoke () [0x00028] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Threading.Tasks/Task.cs:475
  at System.Threading.Tasks.Task.ThreadStart () [0x0006e] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Threading.Tasks/Task.cs:387
  at System.Threading.Tasks.Task.Execute () [0x00000] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Threading.Tasks/Task.cs:445
  at System.Threading.Tasks.TpScheduler.TaskExecuterCallback (object) [0x00007] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Threading.Tasks/TpScheduler.cs:43
  at (wrapper runtime-invoke) <Module>.runtime_invoke_void__this___object (object,intptr,intptr,intptr) <IL 0x00052, 0xffffffff>

Native stacktrace:

	0   AfhcanMobileApple                   0x0009094c mono_handle_native_sigsegv + 284
	1   AfhcanMobileApple                   0x00005cd8 mono_sigsegv_signal_handler + 248
	2   libSystem.B.dylib                   0x9130a05b _sigtramp + 43
	3   ???                                 0xffffffff 0x0 + 4294967295
	4   CFNetwork                           0x00bcd14c __CFNetworkCopyProxiesForURLWithInterface + 29
	5   CFNetwork                           0x00b5fd96 CFNetworkCopyProxiesForURL + 32
	6   ???                                 0x116ef0eb 0x0 + 292483307
	7   ???                                 0x116eefcc 0x0 + 292483020
	8   ???                                 0x116eecf8 0x0 + 292482296
	9   ???                                 0x116ee38c 0x0 + 292479884
	10  ???                                 0x116ed950 0x0 + 292477264
	11  ???                                 0x116ed854 0x0 + 292477012
	12  ???                                 0x116eb844 0x0 + 292468804
	13  ???                                 0x116eb66c 0x0 + 292468332
	14  ???                                 0x116eaa18 0x0 + 292465176
	15  ???                                 0x116ea3d9 0x0 + 292463577
	16  ???                                 0x116ea156 0x0 + 292462934
	17  ???                                 0x112a88d8 0x0 + 288000216
	18  ???                                 0x11b5d89c 0x0 + 297130140
	19  ???                                 0x112a359a 0x0 + 287978906
	20  ???                                 0x112a3524 0x0 + 287978788
	21  ???                                 0x112a266c 0x0 + 287975020
	22  ???                                 0x112a23f4 0x0 + 287974388
	23  ???                                 0x112a23a0 0x0 + 287974304
	24  ???                                 0x09985c8e 0x0 + 160980110
	25  AfhcanMobileApple                   0x0000a042 mono_jit_runtime_invoke + 722
	26  AfhcanMobileApple                   0x00169f4e mono_runtime_invoke + 126
	27  AfhcanMobileApple                   0x0016a08c mono_runtime_delegate_invoke + 92
	28  AfhcanMobileApple                   0x0019f984 async_invoke_thread + 1940
	29  AfhcanMobileApple                   0x001a5736 start_wrapper + 422
	30  AfhcanMobileApple                   0x001d76ea thread_start_routine + 154
	31  AfhcanMobileApple                   0x001feadd GC_start_routine + 93
	32  libSystem.B.dylib                   0x912d1259 _pthread_start + 345
	33  libSystem.B.dylib                   0x912d10de thread_start + 34

=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================
Comment 1 afhcan 2012-04-29 01:29:25 UTC
My version info is as follows:


MonoDevelop 2.8.8.4
Installation UUID: 9f7e25c2-84f8-49a3-b3ff-92e55e25860e
Runtime:
	Mono 2.10.9 (tarball Tue Apr 17 18:59:12 EDT 2012)
	GTK 2.24.10
	GTK# (2.12.0.0)
Apple Developer Tools:
	 Xcode 4.2 (828)
	 Build 4C199
Monotouch: 5.2.11
Mono for Android not installed
Build information:
	Release ID: 20808004
	Git revision: cc9fe83c70d36f9fdab70456392f0fb6d5a83b29
	Build date: 2012-03-30 20:24:12+0000
	Xamarin addins: 1b1a87abc15656938a8342c93dbef8a567442ea0
Operating System:
	Mac OS X 10.6.8
	Darwin osbas-computer.local 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun  7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386
Loaded assemblies:
MonoDevelop.Database.ConnectionManager     2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.Database/MonoDevelop.Database.ConnectionManager.dll
MonoDevelop.Debugger.Soft.AspNet           0.0.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.Debugger.Soft/MonoDevelop.Debugger.Soft.AspNet.dll
MonoDevelop.Debugger.Soft.MonoDroid        0.0.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.MonoDroid/MonoDevelop.Debugger.Soft.MonoDroid.dll
MonoDevelop.Debugger.Soft.Moonlight        0.0.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.Debugger.Soft/MonoDevelop.Debugger.Soft.Moonlight.dll
MonoDevelop.Debugger.Soft.MonoMac          0.0.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.MonoMac/MonoDevelop.Debugger.Soft.MonoMac.dll
MonoDevelop.Database.CodeGenerator         2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.Database/MonoDevelop.Database.CodeGenerator.dll
mdhost                                     1.0.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/bin/mdhost.exe
System.Runtime.Remoting                    4.0.0.0        /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/gac/System.Runtime.Remoting/4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
MonoDevelop.RegexToolkit                   2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.RegexToolkit/MonoDevelop.RegexToolkit.dll
MonoDeveloperExtensions_nunit              0.0.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDeveloperExtensions/MonoDeveloperExtensions_nunit.dll
Mono.Cecil.Mdb                             0.9.4.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/bin/Mono.Cecil.Mdb.dll
Mono.Security                              4.0.0.0        /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/gac/Mono.Security/4.0.0.0__0738eb9f132ed756/Mono.Security.dll
I18N.Rare                                  4.0.0.0        /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/gac/I18N.Rare/4.0.0.0__0738eb9f132ed756/I18N.Rare.dll
I18N.CJK                                   4.0.0.0        /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/gac/I18N.CJK/4.0.0.0__0738eb9f132ed756/I18N.CJK.dll
I18N.MidEast                               4.0.0.0        /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/gac/I18N.MidEast/4.0.0.0__0738eb9f132ed756/I18N.MidEast.dll
I18N.Other                                 4.0.0.0        /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/gac/I18N.Other/4.0.0.0__0738eb9f132ed756/I18N.Other.dll
I18N.West                                  4.0.0.0        /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/gac/I18N.West/4.0.0.0__0738eb9f132ed756/I18N.West.dll
I18N                                       4.0.0.0        /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/gac/I18N/4.0.0.0__0738eb9f132ed756/I18N.dll
MonoDevelop.DocFood                        1.0.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.DocFood.dll
MonoDevelop.HexEditor                      2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.HexEditor.dll
MonoDevelop.AssemblyBrowser                2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.AssemblyBrowser.dll
MonoDevelop.Database.Sql.Npgsql            2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.Database/MonoDevelop.Database.Sql.Npgsql.dll
MonoDevelop.Database.Sql.SqlServer         2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.Database/MonoDevelop.Database.Sql.SqlServer.dll
MonoDevelop.Database.Sql.Sqlite            2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.Database/MonoDevelop.Database.Sql.Sqlite.dll
MonoDevelop.Database.Sql.MySql             2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.Database/MonoDevelop.Database.Sql.MySql.dll
MonoDevelop.Database.Designer              2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.Database/MonoDevelop.Database.Designer.dll
MonoDevelop.Database.Query                 2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.Database/MonoDevelop.Database.Query.dll
MonoDevelop.Database.Components            2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.Database/MonoDevelop.Database.Components.dll
MonoDevelop.Database.Sql                   2.2.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.Database/MonoDevelop.Database.Sql.dll
ICSharpCode.SharpZipLib                    2.84.0.0       /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/gac/ICSharpCode.SharpZipLib/2.84.0.0__1b03e6acf1164f73/ICSharpCode.SharpZipLib.dll
MonoDevelop.Debugger.Soft.IPhone           0.0.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.IPhone/MonoDevelop.Debugger.Soft.IPhone.dll
MonoDevelop.Debugger.Soft                  2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.Debugger.Soft/MonoDevelop.Debugger.Soft.dll
Mono.Debugger.Soft                         0.0.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.Debugger.Soft/Mono.Debugger.Soft.dll
Mono.Debugging.Soft                        0.0.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.Debugger.Soft/Mono.Debugging.Soft.dll
ChangeLogAddIn                             2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/ChangeLogAddIn/ChangeLogAddIn.dll
OldNRefactory                              2.1.1.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/bin/OldNRefactory.dll
ICSharpCode.NRefactory                     1.0.4472.29456 /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/bin/ICSharpCode.NRefactory.dll
ILAsmBinding                               2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/BackendBindings/ILAsmBinding.dll
MonoDevelop.Projects.Formats.MSBuild       1.0.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/bin/MonoDevelop.Projects.Formats.MSBuild.exe
MonoDevelop.MonoMac                        2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.MonoMac/MonoDevelop.MonoMac.dll
MonoDevelop.MsVisualStudio                 2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.MsVisualStudio/MonoDevelop.MsVisualStudio.dll
MonoDevelop.VBNetBinding                   2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/BackendBindings/MonoDevelop.VBNetBinding.dll
MonoDevelop.CSharpBinding                  2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/BackendBindings/MonoDevelop.CSharpBinding.dll
Xamarin.Ide.Mac                            1.0.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/Xamarin.Ide/Xamarin.Ide.Mac.dll
MonoDevelop.AspNet.Mvc                     2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.AspNet.Mvc/MonoDevelop.AspNet.Mvc.dll
MonoDevelop.TextTemplating                 2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.TextTemplating/MonoDevelop.TextTemplating.dll
MonoDevelop.WebReferences                  2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.WebReferences/MonoDevelop.WebReferences.dll
MonoDevelop.Gettext                        2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.Gettext/MonoDevelop.Gettext.dll
MonoDevelop.Autotools                      2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.Autotools/MonoDevelop.Autotools.dll
MonoDevelop.GtkCore                        2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.GtkCore/MonoDevelop.GtkCore.dll
libsteticui                                0.0.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.GtkCore/libsteticui.dll
libstetic                                  0.0.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.GtkCore/libstetic.dll
MonoDevelop.CBinding                       2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/BackendBindings/MonoDevelop.CBinding.dll
MonoDevelop.Refactoring                    2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.Refactoring/MonoDevelop.Refactoring.dll
MonoDevelop.Deployment.Linux               2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.Deployment/MonoDevelop.Deployment.Linux.dll
MonoDevelop.VersionControl.Subversion.Unix 2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/VersionControl/MonoDevelop.VersionControl.Subversion.Unix.dll
MonoDevelop.VersionControl.Subversion      2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/VersionControl/MonoDevelop.VersionControl.Subversion.dll
Sharpen                                    1.0.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/VersionControl/Sharpen.dll
NGit                                       1.0.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/VersionControl/NGit.dll
MonoDevelop.VersionControl.Git             2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/VersionControl/MonoDevelop.VersionControl.Git.dll
MonoDevelop.CodeMetrics                    2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.CodeMetrics/MonoDevelop.CodeMetrics.dll
nunit.util                                 2.4.8.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/NUnit/nunit.util.dll
nunit.framework                            2.4.8.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/NUnit/nunit.framework.dll
nunit.core.interfaces                      2.4.8.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/NUnit/nunit.core.interfaces.dll
nunit.core                                 2.4.8.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/NUnit/nunit.core.dll
MonoDevelop.NUnit                          2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/NUnit/MonoDevelop.NUnit.dll
Mono.Cairo                                 2.0.0.0        /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/gac/Mono.Cairo/2.0.0.0__0738eb9f132ed756/Mono.Cairo.dll
MonoDeveloperExtensions                    2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDeveloperExtensions/MonoDeveloperExtensions.dll
Mono.Debugging                             0.0.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/bin/Mono.Debugging.dll
pango-sharp                                2.12.0.0       /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/gac/pango-sharp/2.12.0.0__35e10195dab3c99f/pango-sharp.dll
monodoc                                    1.0.0.0        /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/gac/monodoc/1.0.0.0__0738eb9f132ed756/monodoc.dll
MonoDevelop.Moonlight                      2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.Moonlight/MonoDevelop.Moonlight.dll
MonoDevelop.AspNet                         2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.AspNet/MonoDevelop.AspNet.dll
MonoDevelop.XmlEditor                      2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.XmlEditor/MonoDevelop.XmlEditor.dll
MonoDevelop.Deployment                     2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.Deployment/MonoDevelop.Deployment.dll
System.Drawing                             4.0.0.0        /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/gac/System.Drawing/4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
Mono.Cecil                                 0.9.4.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/bin/Mono.Cecil.dll
MonoDevelop.MonoDroid                      4.0.0.24       /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.MonoDroid/MonoDevelop.MonoDroid.dll
Mono.AndroidTools                          0.9.3.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.MonoDroid/Mono.AndroidTools.dll
MonoDevelop.IPhone                         2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.IPhone/MonoDevelop.IPhone.dll
MonoDevelop.MacDev                         2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.MacDev/MonoDevelop.MacDev.dll
MonoDevelop.DesignerSupport                2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.DesignerSupport/MonoDevelop.DesignerSupport.dll
MacPlatform                                2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MacPlatform.dll
MonoMac                                    0.0.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoMac.dll
MonoDevelop.VersionControl                 2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/VersionControl/MonoDevelop.VersionControl.dll
MonoDevelop.SourceEditor2                  2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.SourceEditor2.dll
MonoDevelop.Debugger                       2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.Debugger/MonoDevelop.Debugger.dll
Xamarin.Ide                                1.0.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/Xamarin.Ide/Xamarin.Ide.dll
System.Configuration                       4.0.0.0        /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/gac/System.Configuration/4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
gdk-sharp                                  2.12.0.0       /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/gac/gdk-sharp/2.12.0.0__35e10195dab3c99f/gdk-sharp.dll
Mono.TextEditor                            1.0.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/bin/Mono.TextEditor.dll
atk-sharp                                  2.12.0.0       /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/gac/atk-sharp/2.12.0.0__35e10195dab3c99f/atk-sharp.dll
glib-sharp                                 2.12.0.0       /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/gac/glib-sharp/2.12.0.0__35e10195dab3c99f/glib-sharp.dll
gtk-sharp                                  2.12.0.0       /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/gac/gtk-sharp/2.12.0.0__35e10195dab3c99f/gtk-sharp.dll
Mono.Posix                                 4.0.0.0        /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/gac/Mono.Posix/4.0.0.0__0738eb9f132ed756/Mono.Posix.dll
Mono.Addins                                0.6.0.0        /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/gac/Mono.Addins/0.6.0.0__0738eb9f132ed756/Mono.Addins.dll
Mono.Addins.Setup                          0.6.0.0        /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/gac/Mono.Addins.Setup/0.6.0.0__0738eb9f132ed756/Mono.Addins.Setup.dll
System.Xml                                 4.0.0.0        /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/gac/System.Xml/4.0.0.0__b77a5c561934e089/System.Xml.dll
System.Xml.Linq                            4.0.0.0        /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/gac/System.Xml.Linq/4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll
System.Core                                4.0.0.0        /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/gac/System.Core/4.0.0.0__b77a5c561934e089/System.Core.dll
System                                     4.0.0.0        /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/System.dll
MonoDevelop.Core                           2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/bin/MonoDevelop.Core.dll
MonoDevelop.Ide                            2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/bin/MonoDevelop.Ide.dll
MonoDevelop                                2.6.0.0        /Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/bin/MonoDevelop.exe
mscorlib                                   4.0.0.0        /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/mscorlib.dll
Comment 2 Sebastien Pouliot 2012-04-30 10:19:33 UTC
It look similar to another report we had on the mailing-list. I'll look into it, thanks for providing all the data!
Comment 3 Sebastien Pouliot 2012-04-30 11:54:10 UTC
It looks like NSUrl cannot parse the provided URI and return a null handle (which, if used, will crash later on).
Comment 4 Sebastien Pouliot 2012-04-30 15:17:19 UTC
I cannot duplicate your _exact_ issue. I can duplicate the crash* when directly using NSUrl but going thru System.Uri fixes the issue (i.e. the URL it produce is something that NSUrl can digest without chocking).

* so I'll be able to fix this (and attach an hotfix to this bug)

> I however am not going through a proxy

That's "normal" since the crash occurs when asking if there are proxies for the specified URL. Normally a single entry, with `CFProxyType.None`, is received and things continue with the specific (unchanged) URL.
Comment 5 Sebastien Pouliot 2012-04-30 17:52:19 UTC
Created attachment 1782 [details]
updated monotouch.dll for testing

This is not the final fix - but I think it will solve your crash. It will also print two URI when the condition is encountered and I would be grateful if you could report them back to me (along with the result of this change). This will guide me for the final fix.

To use the attached assembly (on top of MonoTouch 5.2.11) do:

1) backup your /Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll and /Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll.mdb files

2) copy the attached file to /Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll

3) remove the /Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll.mdb symbols (they won't match anymore)

4) clean, rebuild and test your application
Comment 6 Sebastien Pouliot 2012-05-02 08:29:55 UTC
Fixed to avoid the crash on invalid NSUrl. 

However it's not identical to your stack trace so I cannot be 100% sure about the fix (I could not get the to crash from an System.Uri instance). If you have time to test (and report on) the attached hotfix then it would confirm the fix (re-open if it does not work in your case and include the URL from the console).

5.2-series: d5f99a11b220a9d16e7ab76eabbd40d9c164eb56
master: 38b31dad19c05f58e2682cf6b23eed57200e83e0

QA: unit tests added on both branches
Comment 7 afhcan 2012-05-08 18:05:24 UTC
Sebastien,
  I apologize for the delay in getting back to you. I have tested out the fix and it does indeed work! Thank you for fixing the defect so quickly!

Here is the output you requested in comment #5:


Uri: http://10.226.14.33:8080/telehealth/Services/External/Recipient.svc/List?OrgId={FDB521B6-1ADA-40D3-8AE9-0F59B9F2DB11}&Ticket=528A00E6A8A7E9ACED60290A5CCB9CC1EB45C232189B0D789BB29C13ADD24D797264FE18187B8BABDDFF7CC89F0CB58CAAAD3915AC5D5CAAD88D2FBED8C3E543D7B21299D7A9570576FF52923A502B697FBCCBC7A5F208BA38A07CD7578338FBD5733F36BB3DAC55BB3BC02A44908FC6CF0271265D9C8C92EC5D8BCB2F25BE4F67982B972CD4FC81947372B8CE3622C436AC6A109D9E5CDF6C385681F85F29EE69DF7FF7D73C7AD014664FC227C4E2A4A8AF34DC9FF885CC4888854519DFBFC0F3A97D9EA0E6632F7B10111FFE9A1FCDC7EB09F6
AbsoluteUri: http://10.226.14.33:8080/telehealth/Services/External/Recipient.svc/List?OrgId={FDB521B6-1ADA-40D3-8AE9-0F59B9F2DB11}&Ticket=528A00E6A8A7E9ACED60290A5CCB9CC1EB45C232189B0D789BB29C13ADD24D797264FE18187B8BABDDFF7CC89F0CB58CAAAD3915AC5D5CAAD88D2FBED8C3E543D7B21299D7A9570576FF52923A502B697FBCCBC7A5F208BA38A07CD7578338FBD5733F36BB3DAC55BB3BC02A44908FC6CF0271265D9C8C92EC5D8BCB2F25BE4F67982B972CD4FC81947372B8CE3622C436AC6A109D9E5CDF6C385681F85F29EE69DF7FF7D73C7AD014664FC227C4E2A4A8AF34DC9FF885CC4888854519DFBFC0F3A97D9EA0E6632F7B10111FFE9A1FCDC7EB09F6
Uri: http://10.226.14.33:8080/telehealth/Services/External/Recipient.svc/List?OrgId={FDB521B6-1ADA-40D3-8AE9-0F59B9F2DB11}&Ticket=528A00E6A8A7E9ACED60290A5CCB9CC1EB45C232189B0D789BB29C13ADD24D797264FE18187B8BABDDFF7CC89F0CB58CAAAD3915AC5D5CAAD88D2FBED8C3E543D7B21299D7A9570576FF52923A502B697FBCCBC7A5F208BA38A07CD7578338FBD5733F36BB3DAC55BB3BC02A44908FC6CF0271265D9C8C92EC5D8BCB2F25BE4F67982B972CD4FC81947372B8CE3622C436AC6A109D9E5CDF6C385681F85F29EE69DF7FF7D73C7AD014664FC227C4E2A4A8AF34DC9FF885CC4888854519DFBFC0F3A97D9EA0E6632F7B10111FFE9A1FCDC7EB09F6
AbsoluteUri: http://10.226.14.33:8080/telehealth/Services/External/Recipient.svc/List?OrgId={FDB521B6-1ADA-40D3-8AE9-0F59B9F2DB11}&Ticket=528A00E6A8A7E9ACED60290A5CCB9CC1EB45C232189B0D789BB29C13ADD24D797264FE18187B8BABDDFF7CC89F0CB58CAAAD3915AC5D5CAAD88D2FBED8C3E543D7B21299D7A9570576FF52923A502B697FBCCBC7A5F208BA38A07CD7578338FBD5733F36BB3DAC55BB3BC02A44908FC6CF0271265D9C8C92EC5D8BCB2F25BE4F67982B972CD4FC81947372B8CE3622C436AC6A109D9E5CDF6C385681F85F29EE69DF7FF7D73C7AD014664FC227C4E2A4A8AF34DC9FF885CC4888854519DFBFC0F3A97D9EA0E6632F7B10111FFE9A1FCDC7EB09F6