Bug 35131 - FSI Crashes
Summary: FSI Crashes
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: F# Add-in ()
Version: unspecified
Hardware: PC Mac OS
: --- normal
Target Milestone: master
Assignee: Dave Thomas
URL:
Depends on:
Blocks:
 
Reported: 2015-10-21 07:57 UTC by Naveen
Modified: 2016-03-16 15:37 UTC (History)
2 users (show)

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


Attachments
Fixed (261.61 KB, image/png)
2016-03-16 15:32 UTC, Jason Imison
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 Naveen 2015-10-21 07:57:47 UTC
Description of Problem:

FSI Crashes for this code

#I "../packages/Octokit.0.16.0/lib/net45"
#r "Octokit.dll"

open Octokit

let client = new GitHubClient(new ProductHeaderValue("test"))

client.User.Get("dsyme")


Here is the call-stack


F# Interactive for F# 3.1 (Open Source Edition)
Freely distributed under the Apache 2.0 Open Source License
For help type #help;;

> 
--> Added '/Users/naveen/Projects/scratchpad/scratchpad/../packages/Octokit.0.16.0/lib/net45' to library include path
--> Referenced '/Users/naveen/Projects/scratchpad/scratchpad/../packages/Octokit.0.16.0/lib/net45/Octokit.dll' (file may be locked by F# Interactive process)
Stacktrace:
  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) System.Net.Dns.GetHostByName_internal (string,string&,string[]&,string[]&) <IL 0x00010, 0xffffffff>
  at System.Net.Dns.GetHostByName (string) [0x00011] in /private/tmp/source-mono-mac-4.0.0-bug-33585-hotfix/bockbuild-mono-4.0.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.0.4/mcs/class/System/System.Net/Dns.cs:419
  at System.Net.ServicePoint.get_HostEntry () [0x000a8] in /private/tmp/source-mono-mac-4.0.0-bug-33585-hotfix/bockbuild-mono-4.0.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.0.4/mcs/class/System/System.Net/ServicePoint.cs:369
  at System.Net.WebConnection.Connect (System.Net.HttpWebRequest) [0x00084] in /private/tmp/source-mono-mac-4.0.0-bug-33585-hotfix/bockbuild-mono-4.0.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.0.4/mcs/class/System/System.Net/WebConnection.cs:170
  at System.Net.WebConnection.InitConnection (object) [0x00044] in /private/tmp/source-mono-mac-4.0.0-bug-33585-hotfix/bockbuild-mono-4.0.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.0.4/mcs/class/System/System.Net/WebConnection.cs:772
  at System.Net.WebConnection.<WebConnection>m__0 (object) [0x00000] in /private/tmp/source-mono-mac-4.0.0-bug-33585-hotfix/bockbuild-mono-4.0.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.0.4/mcs/class/System/System.Net/WebConnection.cs:124
  at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context (object) [0x0000e] in /private/tmp/mono20150828-95616-u66q2h/mono-4.2.0/external/referencesource/mscorlib/system/threading/threadpool.cs:1291
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) [0x00081] in /private/tmp/mono20150828-95616-u66q2h/mono-4.2.0/external/referencesource/mscorlib/system/threading/executioncontext.cs:581
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) [0x00000] in /private/tmp/mono20150828-95616-u66q2h/mono-4.2.0/external/referencesource/mscorlib/system/threading/executioncontext.cs:530
  at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () [0x0002a] in /private/tmp/mono20150828-95616-u66q2h/mono-4.2.0/external/referencesource/mscorlib/system/threading/threadpool.cs:1268
  at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00096] in /private/tmp/mono20150828-95616-u66q2h/mono-4.2.0/external/referencesource/mscorlib/system/threading/threadpool.cs:859
  at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in /private/tmp/mono20150828-95616-u66q2h/mono-4.2.0/external/referencesource/mscorlib/system/threading/threadpool.cs:1196
  at (wrapper runtime-invoke) <Module>.runtime_invoke_bool (object,intptr,intptr,intptr) <IL 0x00060, 0xffffffff>
Native stacktrace:
Debug info from gdb:
=================================================================
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.
=================================================================



I am running on El - Capatin
Comment 1 Naveen 2015-10-21 07:58:56 UTC
This is with XS Studio. Outside XS it does not crash.
Comment 2 Jason Imison 2016-03-16 15:32:40 UTC
Created attachment 15430 [details]
Fixed

Working now.
Comment 3 Jason Imison 2016-03-16 15:37:31 UTC
I've recently made some changes here https://github.com/fsharp/xamarin-monodevelop-fsharp-addin/pull/279

I'm not sure if this contributed to it working, or whether this has been fixed by mono, but it's working now - see attachment.