Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when using the assembly-resolve event and the checker from within a fsi session. #466

Closed
matthid opened this issue Nov 18, 2015 · 2 comments
Labels

Comments

@matthid
Copy link
Contributor

matthid commented Nov 18, 2015

It seems that FSharp.Compiler.Service crashes with a quite weird error message if you use the checker and the AssemblyResolve event from within a fsi-session.

The code to reproduce this can be found here: matthid@548894a

The problem can only be reproduced on linux/mono:

git clone https://github.com/matthid/FSharp.Compiler.Service.git
cd FSharp.Compiler.Service
git checkout -b global_handler_crash origin/global_handler_crash
./build.sh
cp bin/v4.5/RunAssemblyResolveProblem.exe* ./
cp bin/v4.5/FSharp.Compiler.Service.* ./
mono --debug RunAssemblyResolveProblem.exe
matthid@gentoo-cup ~/projects/FSharp.Compiler.Service $ mono --debug RunAssemblyResolveProblem.exe
Start Session...
Start EvalInteraction...
Adding Handler...
Creating Checker...
Get results... [|"--simpleresolution"; "--noframework"; "--debug:full"; "--define:DEBUG";
  "--optimize-"; "/tmp/tmp5d2ed48f.fs"; "-r:/usr/lib64/mono/4.5/mscorlib.dll";
  "-r:/usr/lib64/mono/4.5/System.dll"; "-r:/usr/lib64/mono/4.5/System.Core.dll";
  "-r:/mnt/data/home/matthid/projects/FSharp.Compiler.Service/TEST_BUG/FSharp.Core.dll";
  "-r:/mnt/data/home/matthid/projects/FSharp.Compiler.Service/TEST_BUG/AssemblyResolveProblem.dll";
  "-r:/mnt/data/home/matthid/projects/FSharp.Compiler.Service/TEST_BUG/FSharp.Configuration.dll";
  "-r:/mnt/data/home/matthid/projects/FSharp.Compiler.Service/TEST_BUG/unresolved/SharpYaml.dll";
  "--out:/tmp/tmp5d2ed48f.dll"; "--doc:/tmp/tmp5d2ed48f.xml"; "--warn:3";
  "--fullpaths"; "--flaterrors"; "--target:library"|]
Get ParseAndCheckProject...
resolving SharpYaml, Version=1.2.0.29887, Culture=neutral, PublicKeyToken=1ced8108e942bc02
Error: Microsoft.FSharp.Compiler.ErrorLogger+ReportedError: One or more errors seen during provided type setup
  at Microsoft.FSharp.Compiler.ErrorLogger+ErrorLoggerExtensions.ErrorLogger.Warning (Microsoft.FSharp.Compiler.ErrorLogger x, System.Exception exn) [0x00019] in /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/ErrorLogger.fs:317
  at Microsoft.FSharp.Compiler.IncrementalBuilder.CombineImportedAssembliesTask[a] (Microsoft.FSharp.Compiler.a _arg1) [0x000b9] in /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/vs/IncrementalBuild.fs:1326
  at <StartupCode$FSharp-Compiler-Service>[email protected] (System.Tuple`2[] _arg1) [0x00000] in /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/vs/IncrementalBuild.fs:1530
  at Microsoft.FSharp.Compiler.IncrementalBuild+Vector+BoxingDemultiplex@897-1[a,I,O].Invoke (a[] i) [0x00059] in /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/vs/IncrementalBuild.fs:897
  at Microsoft.FSharp.Compiler.IncrementalBuild+DemultiplexOp@650.Invoke (Microsoft.FSharp.Core.Unit unitVar0) [0x00000] in /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/vs/IncrementalBuild.fs:651
  at Microsoft.FSharp.Compiler.IncrementalBuild+Action.Execute () [0x00086] in /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/vs/IncrementalBuild.fs:303
  at [email protected] (Microsoft.FSharp.Compiler.Action action, Microsoft.FSharp.Compiler.PartialBuild bt) [0x00000] in /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/vs/IncrementalBuild.fs:771

  at Microsoft.FSharp.Core.FSharpFunc`2[T,TResult].InvokeFast[V] (Microsoft.FSharp.Core.FSharpFunc`2 func, Microsoft.FSharp.Core.T arg1, Microsoft.FSharp.Core.TResult arg2) <0x40dd4410 + 0x00087> in <filename unknown>:0
  at Microsoft.FSharp.Compiler.IncrementalBuild.visitScalar@637-1[acc] (Microsoft.FSharp.Compiler.PartialBuild bt, Microsoft.FSharp.Core.FSharpFunc`2 actionFunc, System.Collections.Generic.Dictionary`2 seen, Microsoft.FSharp.Compiler.ScalarBuildRule se, Microsoft.FSharp.Compiler.acc acc) [0x000a2] in /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/vs/IncrementalBuild.fs:652
  at Microsoft.FSharp.Compiler.IncrementalBuild.visitVector@521-1[acc] (Microsoft.FSharp.Compiler.PartialBuild bt, Microsoft.FSharp.Core.FSharpFunc`2 actionFunc, System.Collections.Generic.Dictionary`2 seen, Microsoft.FSharp.Core.FSharpOption`1 optSlot, Microsoft.FSharp.Compiler.VectorBuildRule ve, Microsoft.FSharp.Compiler.acc acc) [0x000ec] in /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/vs/IncrementalBuild.fs:562
  at Microsoft.FSharp.Compiler.IncrementalBuild.visitScalar@637-1[acc] (Microsoft.FSharp.Compiler.PartialBuild bt, Microsoft.FSharp.Core.FSharpFunc`2 actionFunc, System.Collections.Generic.Dictionary`2 seen, Microsoft.FSharp.Compiler.ScalarBuildRule se, Microsoft.FSharp.Compiler.acc acc) [0x000ba] in /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/vs/IncrementalBuild.fs:653
  at Microsoft.FSharp.Compiler.IncrementalBuild.ForeachAction[acc] (Microsoft.FSharp.Compiler.Target _arg1, Microsoft.FSharp.Compiler.PartialBuild bt, Microsoft.FSharp.Core.FSharpFunc`2 actionFunc, Microsoft.FSharp.Compiler.acc acc) [0x0006c] in /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/vs/IncrementalBuild.fs:674
  at Microsoft.FSharp.Compiler.IncrementalBuild.eval@765 (Microsoft.FSharp.Compiler.Target target, Microsoft.FSharp.Compiler.PartialBuild bt, Int32 gen) [0x00000] in /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/vs/IncrementalBuild.fs:771
  at Microsoft.FSharp.Compiler.IncrementalBuild.EvalLeafsFirst (Microsoft.FSharp.Compiler.Target target, Microsoft.FSharp.Compiler.PartialBuild bt) [0x00000] in /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/vs/IncrementalBuild.fs:765
  at Microsoft.FSharp.Compiler.IncrementalBuilder.EvalAndKeepOutput (INode output, Microsoft.FSharp.Core.FSharpOption`1 optSlot) [0x00000] in /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/vs/IncrementalBuild.fs:1566
  at <StartupCode$FSharp-Compiler-Service>[email protected] (Microsoft.FSharp.Core.FSharpOption`1 optSlot) [0x00000] in /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/vs/IncrementalBuild.fs:1660
  at <StartupCode$FSharp-Compiler-Service>[email protected] (Microsoft.FSharp.Core.FSharpOption`1 arg10) [0x00000] in /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/vs/IncrementalBuild.fs:1660
  at Microsoft.FSharp.Core.FSharpFunc`2[T,TResult].InvokeFast[V] (Microsoft.FSharp.Core.FSharpFunc`2 func, Microsoft.FSharp.Core.T arg1, Microsoft.FSharp.Core.TResult arg2) <0x40dd4410 + 0x000a5> in <filename unknown>:0
  at Microsoft.FSharp.Compiler.IncrementalBuilder.GetCheckResultsAndImplementationsForProject () [0x00000] in /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/vs/IncrementalBuild.fs:1660
  at Microsoft.FSharp.Compiler.SourceCodeServices.BackgroundCompiler.ParseAndCheckProjectImpl (Microsoft.FSharp.Compiler.SourceCodeServices.FSharpProjectOptions options) [0x0003c] in /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/vs/service.fs:2541
  at <StartupCode$FSharp-Compiler-Service>[email protected] (CancellationToken _ct) [0x00000] in /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/vs/service.fs:2555
  at <StartupCode$FSharp-Compiler-Service>.$Reactor+EnqueueAndAwaitOpAsync@136-2[T].Invoke (Microsoft.FSharp.Core.Unit unitVar0) [0x00008] in /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/vs/Reactor.fs:139
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () in /mnt/temp/var/tmp/portage/dev-lang/mono-4.2.1.60/work/mono-4.2.1/external/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:line 143
   at Microsoft.FSharp.Control.AsyncBuilderImpl.commit[a] (Microsoft.FSharp.Control.Result`1 res) in /mnt/temp/var/tmp/portage/dev-lang/fsharp-4.0.0.4/work/fsharp-4.0.0.4/src/fsharp/FSharp.Core/control.fs:line 691
   at Microsoft.FSharp.Control.CancellationTokenOps.RunSynchronously[a] (CancellationToken token, Microsoft.FSharp.Control.FSharpAsync`1 computation, Microsoft.FSharp.Core.FSharpOption`1 timeout) in /mnt/temp/var/tmp/portage/dev-lang/fsharp-4.0.0.4/work/fsharp-4.0.0.4/src/fsharp/FSharp.Core/control.fs:line 1262
   at Microsoft.FSharp.Control.FSharpAsync.RunSynchronously[T] (Microsoft.FSharp.Control.FSharpAsync`1 computation, Microsoft.FSharp.Core.FSharpOption`1 timeout, Microsoft.FSharp.Core.FSharpOption`1 cancellationToken) in /mnt/temp/var/tmp/portage/dev-lang/fsharp-4.0.0.4/work/fsharp-4.0.0.4/src/fsharp/FSharp.Core/control.fs:line 1381
   at RunAssemblyResolveProblem.Test.run () in /mnt/data/home/matthid/projects/FSharp.Compiler.Service/RunAssemblyResolveProblem/Program.fs:line 59
   at <StartupCode$FSI_0001>.$FSI_0001_RunAssemblyResolveProblem$fsx.main@ () in <filename unknown>:line 0
Output: , Error:

I noticed the following:

  • It seems to work with fsharpi for some reason:
matthid@gentoo-cup ~/projects/FSharp.Compiler.Service $ fsharpi RunAssemblyResolveProblem.fsx
Adding Handler...
Creating Checker...
resolving FSharp.Compiler.Service.resources, Version=1.4.2.1, Culture=de-DE, PublicKeyToken=null
resolving FSharp.Compiler.Service.resources, Version=1.4.2.1, Culture=de, PublicKeyToken=null
Get results... [|"--simpleresolution"; "--noframework"; "--debug:full"; "--define:DEBUG";
  "--optimize-"; "/tmp/tmp66993c42.fs"; "-r:/usr/lib64/mono/4.5/mscorlib.dll";
  "-r:/usr/lib64/mono/4.5/System.dll"; "-r:/usr/lib64/mono/4.5/System.Core.dll";
  "-r:/mnt/data/home/matthid/projects/FSharp.Compiler.Service/TEST_BUG/FSharp.Core.dll";
  "-r:/mnt/data/home/matthid/projects/FSharp.Compiler.Service/TEST_BUG/AssemblyResolveProblem.dll";
  "-r:/mnt/data/home/matthid/projects/FSharp.Compiler.Service/TEST_BUG/FSharp.Configuration.dll";
  "-r:/mnt/data/home/matthid/projects/FSharp.Compiler.Service/TEST_BUG/unresolved/SharpYaml.dll";
  "--out:/tmp/tmp66993c42.dll"; "--doc:/tmp/tmp66993c42.xml"; "--warn:3";
  "--fullpaths"; "--flaterrors"; "--target:library"|]
Get ParseAndCheckProject...
resolving SharpYaml, Version=1.2.0.29887, Culture=neutral, PublicKeyToken=1ced8108e942bc02
Get referenceMap...
Get map...
  • on windows FCS doesn't tries to resolve the assembly at all (not even when the SharpYaml reference is removed from the checker arguments):
dragon@DESKTOP-QC1PJDC MINGW64 /c/PROJ/FSharp.Compiler.Service (global_handler_crash)
$ ./RunAssemblyResolveProblem.exe
Start Session...
Start EvalInteraction...
Adding Handler...
Creating Checker...
Get results... [|"--simpleresolution"; "--noframework"; "--debug:full"; "--define:DEBUG";
  "--optimize-"; "C:\Users\dragon\AppData\Local\Temp\tmp312D.fs";
  "-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\mscorlib.dll";
  "-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.dll";
  "-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Core.dll";
  "-r:C:\PROJ\FSharp.Compiler.Service\TEST_BUG\FSharp.Core.dll";
  "-r:C:\PROJ\FSharp.Compiler.Service\TEST_BUG\AssemblyResolveProblem.dll";
  "-r:C:\PROJ\FSharp.Compiler.Service\TEST_BUG\FSharp.Configuration.dll";
  "-r:C:\PROJ\FSharp.Compiler.Service\TEST_BUG\unresolved\SharpYaml.dll";
  "--out:C:\Users\dragon\AppData\Local\Temp\tmp312D.dll";
  "--doc:C:\Users\dragon\AppData\Local\Temp\tmp312D.xml"; "--warn:3";
  "--fullpaths"; "--flaterrors"; "--target:library"|]
Get ParseAndCheckProject...
Get referenceMap...
Get map...
Output: , Error:

We basically need this when executing FSharp.Formatting from within a FAKE script.
I think this might be a known issue/limitation because I read somewhere that there are limitations because of the globally installed event handler, but I currently cannot find it anywhere. But why is fsharpi working and can we somehow do the same with FCS?

@matthid matthid changed the title [linux/mono] Crash when using the checker from within a fsi session. [linux/mono] Crash when using the assembly-resolve event and the checker from within a fsi session. Nov 19, 2015
@matthid
Copy link
Contributor Author

matthid commented Nov 19, 2015

This issue might be another instance of where mono is just more eager in loading assemblies than windows is. One obvious workaround is to load the affected assemblies before the AssemblyResolve event is even triggered (but I don't think we should or even can add that to FSF because we don't know which assemblies will be problematic). The problem with this is that FCS doesn't show the name of the missing reference (the exception is not useful at all), so it's not trivial to figure out which assemblies need to be loaded beforehand...

Note also that in FSF we only try to fetch metadata from assemblies, so it is not obvious why FCS tries/needs to load those assemblies at all (while in this repro-code I call a constructor of the assembly via reflection, that code is not even executed). Maybe related to some special handling of type-providers (which the stacktraces and error messages would support)?

Trying to provide further info for example more verbose logging and a stacktrace where FCS tries to load the assembly. Maybe with this info somebody can help me understand what's going on here (This already took way too much time to track down ;) ):

  • The output with all FCS debugging features enabled (the ones I know about at least):

Linux:

(sdb)          r RunAssemblyResolveProblem.exe
Inferior process '32416' ('RunAssemblyResolveProblem.exe') started
Start Session...
Installing logger on id=1 name=
Inferior thread '2' ('<Thread Pool>') started
Inferior thread '3' ('<Thread Pool>') started
Inferior thread '4' ('<Thread Pool>') started
Converting IL assembly to F# data structures mscorlib
Converting F# assembly to F# data structures FSharp.Core
Relinking interface info from F# assembly FSharp.Core
Converting IL assembly to F# data structures System.Core
Converting IL assembly to F# data structures System.Numerics
Converting IL assembly to F# data structures System
found optimization data for CCU FSharp.Core
Start EvalInteraction...
Parsing... /mnt/data/home/matthid/projects/FSharp.Compiler.Service/RunAssemblyResolveProblem.fsx
Parsed /mnt/data/home/matthid/projects/FSharp.Compiler.Service/RunAssemblyResolveProblem.fsx
Converting F# assembly to F# data structures FSharp.Compiler.Service
Relinking interface info from F# assembly FSharp.Compiler.Service
found optimization data for CCU FSharp.Compiler.Service
Converting F# assembly to F# data structures RunAssemblyResolveProblem
Relinking interface info from F# assembly RunAssemblyResolveProblem
found optimization data for CCU RunAssemblyResolveProblem
ParsedInput.ImplFile, nm = /mnt/data/home/matthid/projects/FSharp.Compiler.Service/RunAssemblyResolveProblem.fsx, qualNameOfFile = FSI_0001_RunAssemblyResolveProblem$fsx, ?rootSigOpt = false
Typecheck implementation FSI_0001.RunAssemblyResolveProblem
--> accFreeInTypeLeftToRight
--> accFreeInTypeLeftToRight
--> accFreeInTypeLeftToRight
--> accFreeInTypeLeftToRight
--> accFreeInTypeLeftToRight
--> accFreeInTypeLeftToRight
--> accFreeInTypeLeftToRight
--> accFreeInTypeLeftToRight
--> accFreeInTypeLeftToRight
--> accFreeInTypeLeftToRight
--> accFreeInTypeLeftToRight
--> accFreeInTypeLeftToRight
--> accFreeInTypeLeftToRight
--> accFreeInTypeLeftToRight
--> accFreeInTypeLeftToRight
--> accFreeInTypeLeftToRight
--> accFreeInTypeLeftToRight
--> accFreeInTypeLeftToRight
--> accFreeInTypeLeftToRight
--> accFreeInTypeLeftToRight
--> accFreeInTypeLeftToRight
--> accFreeInTypeLeftToRight
--> accFreeInTypeLeftToRight
--> accFreeInTypeLeftToRight
--> accFreeInTypeLeftToRight
--> accFreeInTypeLeftToRight
IsHidden module FSI_0001 :
end ??
IsHidden module FSI_0001 :
  module RunAssemblyResolveProblem :
  end
end ??
IsHidden, #mrmi = 1, module FSI_0001 :
end = false
IsHidden module RunAssemblyResolveProblem :
end ??
IsHidden module RunAssemblyResolveProblem :
end ??
IsHidden, #mrmi = 1, module RunAssemblyResolveProblem :
end = false
done TypeCheckOneImplFile...
done TypeCheckOneInputEventually...
TIME:  6.9 Delta:  0.7 Mem: 186 G0:   1 G1:  1 G2:  1 [Optimizations]
Generating ILX code...
IsHidden module FSI_0001 :
end ??
IsHidden module FSI_0001 :
  module RunAssemblyResolveProblem :
  end
end ??
IsHidden, #mrmi = 1, module FSI_0001 :
end = false
IsHidden module RunAssemblyResolveProblem :
end ??
IsHidden module RunAssemblyResolveProblem :
end ??
IsHidden, #mrmi = 1, module RunAssemblyResolveProblem :
end = false
IsHidden fp ??
IsHidden fp ??
IsHidden, #mrmi = 1, fp = false
IsHidden fp ??
IsHidden fp ??
IsHidden, #mrmi = 1, fp = false
IsHidden map ??
IsHidden map ??
IsHidden, #mrmi = 1, map = false
IsHidden fp ??
IsHidden fp ??
IsHidden, #mrmi = 1, fp = false
TIME:  7.5 Delta:  0.5 Mem: 191 G0:   0 G1:  0 G2:  0 [Ending Optimizations]
TIME:  7.5 Delta:  0.0 Mem: 191 G0:   0 G1:  0 G2:  0 [TAST -> ILX]
TIME:  7.5 Delta:  0.0 Mem: 191 G0:   0 G1:  0 G2:  0 [Linking]
TIME:  7.5 Delta:  0.0 Mem: 192 G0:   0 G1:  0 G2:  0 [ILX -> IL (Unions)]
TIME:  7.5 Delta:  0.0 Mem: 192 G0:   0 G1:  0 G2:  0 [ILX -> IL (Funcs)]
TIME:  7.6 Delta:  0.1 Mem: 192 G0:   0 G1:  0 G2:  0 [Assembly refs Normalised]
TIME:  7.8 Delta:  0.2 Mem: 209 G0:   0 G1:  0 G2:  0 [Reflection.Emit]
Adding Handler...
Creating Checker...
Get results... [|"--simpleresolution"; "--noframework"; "--debug:full"; "--define:DEBUG";
  "--optimize-"; "/tmp/tmp476735a0.fs"; "-r:/usr/lib64/mono/4.5/mscorlib.dll";
  "-r:/usr/lib64/mono/4.5/System.dll"; "-r:/usr/lib64/mono/4.5/System.Core.dll";
  "-r:/mnt/data/home/matthid/projects/FSharp.Compiler.Service/TEST_BUG/FSharp.Core.dll";
  "-r:/mnt/data/home/matthid/projects/FSharp.Compiler.Service/TEST_BUG/AssemblyResolveProblem.dll";
  "-r:/mnt/data/home/matthid/projects/FSharp.Compiler.Service/TEST_BUG/FSharp.Configuration.dll";
  "-r:/mnt/data/home/matthid/projects/FSharp.Compiler.Service/TEST_BUG/unresolved/SharpYaml.dll";
  "--out:/tmp/tmp476735a0.dll"; "--doc:/tmp/tmp476735a0.xml"; "--warn:3";
  "--fullpaths"; "--flaterrors"; "--target:library"|]
Get ParseAndCheckProject...
Inferior thread '5' ('<Thread Pool>') started
Converting IL assembly to F# data structures mscorlib
Converting F# assembly to F# data structures FSharp.Core
Relinking interface info from F# assembly FSharp.Core
Converting IL assembly to F# data structures System
Converting IL assembly to F# data structures System.Core
Converting F# assembly to F# data structures AssemblyResolveProblem
Relinking interface info from F# assembly AssemblyResolveProblem
Converting F# assembly to F# data structures FSharp.Configuration
Relinking interface info from F# assembly FSharp.Configuration
Converting IL assembly to F# data structures SharpYaml
Inferior thread '6' ('') started
FSC Resolving: SharpYaml, Version=1.2.0.29887, Culture=neutral, PublicKeyToken=1ced8108e942bc02
Phase: Parameter, Error: FileNameNotResolved(SharpYaml.dll, /usr/lib64/mono/4.5
 /mnt/data/home/matthid/projects/FSharp.Compiler.Service
 /mnt/data/home/matthid/projects/FSharp.Compiler.Service/TEST_BUG, stdin (0,0--0,80) IsSynthetic=false): Exception of type 'Microsoft.FSharp.Compiler.CompileOps+FileNameNotResolved' was thrown.    at Microsoft.FSharp.Compiler.CompileOps+TcConfig.ResolveLibWithDirectories (Microsoft.FSharp.Compiler.CcuLoadFailureAction ccuLoadFaulureAction, Microsoft.FSharp.Compiler.AssemblyReference r) in /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/CompileOps.fs:line 2853
   at Microsoft.FSharp.Compiler.CompileOps+TcImports.TryResolveAssemblyReference (Microsoft.FSharp.Compiler.AssemblyReference assemblyReference, Microsoft.FSharp.Compiler.ResolveAssemblyReferenceMode mode) in /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/CompileOps.fs:line 4380
   at Microsoft.FSharp.Compiler.Interactive.Shell+MagicAssemblyResolution.ResolveAssembly (range m, Microsoft.FSharp.Compiler.TcConfigBuilder tcConfigB, Microsoft.FSharp.Compiler.TcImports tcImports, Microsoft.FSharp.Compiler.Interactive.FsiDynamicCompiler fsiDynamicCompiler, Microsoft.FSharp.Compiler.Interactive.FsiConsoleOutput fsiConsoleOutput, System.String fullAssemName) in /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/fsi/fsi.fs:line 1500
Phase: Parameter, Error: FileNameNotResolved(SharpYaml.dll, /usr/lib64/mono/4.5
 /mnt/data/home/matthid/projects/FSharp.Compiler.Service
 /mnt/data/home/matthid/projects/FSharp.Compiler.Service/TEST_BUG, stdin (0,0--0,80) IsSynthetic=false): Exception of type 'Microsoft.FSharp.Compiler.CompileOps+FileNameNotResolved' was thrown.    at Microsoft.FSharp.Compiler.CompileOps+TcConfig.ResolveLibWithDirectories (Microsoft.FSharp.Compiler.CcuLoadFailureAction ccuLoadFaulureAction, Microsoft.FSharp.Compiler.AssemblyReference r) in /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/CompileOps.fs:line 2853
   at Microsoft.FSharp.Compiler.CompileOps+TcImports.TryResolveAssemblyReference (Microsoft.FSharp.Compiler.AssemblyReference assemblyReference, Microsoft.FSharp.Compiler.ResolveAssemblyReferenceMode mode) in /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/CompileOps.fs:line 4380
   at Microsoft.FSharp.Compiler.Interactive.Shell+MagicAssemblyResolution.ResolveAssembly (range m, Microsoft.FSharp.Compiler.TcConfigBuilder tcConfigB, Microsoft.FSharp.Compiler.TcImports tcImports, Microsoft.FSharp.Compiler.Interactive.FsiDynamicCompiler fsiDynamicCompiler, Microsoft.FSharp.Compiler.Interactive.FsiConsoleOutput fsiConsoleOutput, System.String fullAssemName) in /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/fsi/fsi.fs:line 1500
resolving SharpYaml, Version=1.2.0.29887, Culture=neutral, PublicKeyToken=1ced8108e942bc02
Inferior process '32416' ('RunAssemblyResolveProblem.exe') suspended
#0 [0x00000000] FSharp.Configuration.YamlConfigTypeProvider.typedYamlConfig (no source)
    nop
(sdb)          Inferior thread '2' ('<Thread Pool>') exited
c
Inferior process '32416' ('RunAssemblyResolveProblem.exe') resumed
Inferior thread '8' ('<Thread Pool>') started
Inferior thread '9' ('<Thread Pool>') started
Phase: Parameter, Error: Microsoft.FSharp.Compiler.ErrorLogger+Error: One or more errors seen during provided type setup
Phase: Parameter, Error: Microsoft.FSharp.Compiler.ErrorLogger+Error: One or more errors seen during provided type setup
Error: Microsoft.FSharp.Compiler.ErrorLogger+ReportedError: One or more errors seen during provided type setup
  at Microsoft.FSharp.Compiler.ErrorLogger+ErrorLoggerExtensions.ErrorLogger.Warning (Microsoft.FSharp.Compiler.ErrorLogger x, System.Exception exn) [0x00000] in /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/ErrorLogger.fs:321
  at Microsoft.FSharp.Compiler.IncrementalBuilder.CombineImportedAssembliesTask[a] (Microsoft.FSharp.Compiler.a _arg1) [0x000b9] in /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/vs/IncrementalBuild.fs:1326
  at <StartupCode$FSharp-Compiler-Service>[email protected] (System.Tuple`2[] _arg1) [0x00000] in /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/vs/IncrementalBuild.fs:1530
  at Microsoft.FSharp.Compiler.IncrementalBuild+Vector+BoxingDemultiplex@897-1[a,I,O].Invoke (a[] i) [0x00059] in /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/vs/IncrementalBuild.fs:897
  at Microsoft.FSharp.Compiler.IncrementalBuild+DemultiplexOp@650.Invoke (Microsoft.FSharp.Core.Unit unitVar0) [0x00000] in /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/vs/IncrementalBuild.fs:651
  at Microsoft.FSharp.Compiler.IncrementalBuild+Action.Execute () [0x00086] in /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/vs/IncrementalBuild.fs:303
  at [email protected] (Microsoft.FSharp.Compiler.Action action, Microsoft.FSharp.Compiler.PartialBuild bt) [0x00000] in /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/vs/IncrementalBuild.fs:771
  at Microsoft.FSharp.Core.FSharpFunc`2[T,TResult].InvokeFast[V] (Microsoft.FSharp.Core.FSharpFunc`2 func, Microsoft.FSharp.Core.T arg1, Microsoft.FSharp.Core.TResult arg2) <0x40ef4d10 + 0x000a7> in <filename unknown>:0

  at Microsoft.FSharp.Compiler.IncrementalBuild.visitScalar@637-1[acc] (Microsoft.FSharp.Compiler.PartialBuild bt, Microsoft.FSharp.Core.FSharpFunc`2 actionFunc, System.Collections.Generic.Dictionary`2 seen, Microsoft.FSharp.Compiler.ScalarBuildRule se, Microsoft.FSharp.Compiler.acc acc) [0x000a2] in /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/vs/IncrementalBuild.fs:652
  at Microsoft.FSharp.Compiler.IncrementalBuild.visitVector@521-1[acc] (Microsoft.FSharp.Compiler.PartialBuild bt, Microsoft.FSharp.Core.FSharpFunc`2 actionFunc, System.Collections.Generic.Dictionary`2 seen, Microsoft.FSharp.Core.FSharpOption`1 optSlot, Microsoft.FSharp.Compiler.VectorBuildRule ve, Microsoft.FSharp.Compiler.acc acc) [0x000ec] in /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/vs/IncrementalBuild.fs:562
  at Microsoft.FSharp.Compiler.IncrementalBuild.visitScalar@637-1[acc] (Microsoft.FSharp.Compiler.PartialBuild bt, Microsoft.FSharp.Core.FSharpFunc`2 actionFunc, System.Collections.Generic.Dictionary`2 seen, Microsoft.FSharp.Compiler.ScalarBuildRule se, Microsoft.FSharp.Compiler.acc acc) [0x000ba] in /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/vs/IncrementalBuild.fs:653
  at Microsoft.FSharp.Compiler.IncrementalBuild.ForeachAction[acc] (Microsoft.FSharp.Compiler.Target _arg1, Microsoft.FSharp.Compiler.PartialBuild bt, Microsoft.FSharp.Core.FSharpFunc`2 actionFunc, Microsoft.FSharp.Compiler.acc acc) [0x0006c] in /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/vs/IncrementalBuild.fs:674
  at Microsoft.FSharp.Compiler.IncrementalBuild.eval@765 (Microsoft.FSharp.Compiler.Target target, Microsoft.FSharp.Compiler.PartialBuild bt, Int32 gen) [0x00000] in /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/vs/IncrementalBuild.fs:771
  at Microsoft.FSharp.Compiler.IncrementalBuild.EvalLeafsFirst (Microsoft.FSharp.Compiler.Target target, Microsoft.FSharp.Compiler.PartialBuild bt) [0x00000] in /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/vs/IncrementalBuild.fs:765
  at Microsoft.FSharp.Compiler.IncrementalBuilder.EvalAndKeepOutput (INode output, Microsoft.FSharp.Core.FSharpOption`1 optSlot) [0x00000] in /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/vs/IncrementalBuild.fs:1566
  at <StartupCode$FSharp-Compiler-Service>[email protected] (Microsoft.FSharp.Core.FSharpOption`1 optSlot) [0x00000] in /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/vs/IncrementalBuild.fs:1660
  at <StartupCode$FSharp-Compiler-Service>[email protected] (Microsoft.FSharp.Core.FSharpOption`1 arg10) [0x00000] in /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/vs/IncrementalBuild.fs:1660
  at Microsoft.FSharp.Core.FSharpFunc`2[T,TResult].InvokeFast[V] (Microsoft.FSharp.Core.FSharpFunc`2 func, Microsoft.FSharp.Core.T arg1, Microsoft.FSharp.Core.TResult arg2) [0x0001f] in <filename unknown>:0
  at Microsoft.FSharp.Compiler.IncrementalBuilder.GetCheckResultsAndImplementationsForProject () [0x00000] in /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/vs/IncrementalBuild.fs:1660
  at Microsoft.FSharp.Compiler.SourceCodeServices.BackgroundCompiler.ParseAndCheckProjectImpl (Microsoft.FSharp.Compiler.SourceCodeServices.FSharpProjectOptions options) [0x0003c] in /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/vs/service.fs:2541
  at <StartupCode$FSharp-Compiler-Service>[email protected] (CancellationToken _ct) [0x00000] in /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/vs/service.fs:2555
  at <StartupCode$FSharp-Compiler-Service>.$Reactor+EnqueueAndAwaitOpAsync@136-2[T].Invoke (Microsoft.FSharp.Core.Unit unitVar0) [0x00008] in /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/vs/Reactor.fs:139
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () in /mnt/temp/var/tmp/portage/dev-lang/mono-4.2.1.60/work/mono-4.2.1/external/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:line 143
   at Microsoft.FSharp.Control.AsyncBuilderImpl.commit[a] (Microsoft.FSharp.Control.Result`1 res) in /mnt/temp/var/tmp/portage/dev-lang/fsharp-4.0.0.4/work/fsharp-4.0.0.4/src/fsharp/FSharp.Core/control.fs:line 691
   at Microsoft.FSharp.Control.CancellationTokenOps.RunSynchronously[a] (CancellationToken token, Microsoft.FSharp.Control.FSharpAsync`1 computation, Microsoft.FSharp.Core.FSharpOption`1 timeout) in /mnt/temp/var/tmp/portage/dev-lang/fsharp-4.0.0.4/work/fsharp-4.0.0.4/src/fsharp/FSharp.Core/control.fs:line 1262
   at Microsoft.FSharp.Control.FSharpAsync.RunSynchronously[T] (Microsoft.FSharp.Control.FSharpAsync`1 computation, Microsoft.FSharp.Core.FSharpOption`1 timeout, Microsoft.FSharp.Core.FSharpOption`1 cancellationToken) in /mnt/temp/var/tmp/portage/dev-lang/fsharp-4.0.0.4/work/fsharp-4.0.0.4/src/fsharp/FSharp.Core/control.fs:line 1381
   at RunAssemblyResolveProblem.Test.run () in /mnt/data/home/matthid/projects/FSharp.Compiler.Service/RunAssemblyResolveProblem/Program.fs:line 59
   at <StartupCode$FSI_0001>.$FSI_0001_RunAssemblyResolveProblem$fsx.main@ () in <filename unknown>:line 0
Output: , Error:

Windows:

Start Session...
Installing logger on id=1 name=
Converting IL assembly to F# data structures mscorlib
Converting F# assembly to F# data structures FSharp.Core
Relinking interface info from F# assembly FSharp.Core
Converting IL assembly to F# data structures System.Core
Converting IL assembly to F# data structures System.Numerics
Converting IL assembly to F# data structures System
found optimization data for CCU FSharp.Core
Start EvalInteraction...
Parsing... RunAssemblyResolveProblem.fsx
Parsed RunAssemblyResolveProblem.fsx
Converting F# assembly to F# data structures FSharp.Compiler.Service
Relinking interface info from F# assembly FSharp.Compiler.Service
found optimization data for CCU FSharp.Compiler.Service
Converting F# assembly to F# data structures RunAssemblyResolveProblem
Relinking interface info from F# assembly RunAssemblyResolveProblem
found optimization data for CCU RunAssemblyResolveProblem
ParsedInput.ImplFile, nm = C:\PROJ\FSharp.Compiler.Service\RunAssemblyResolveProblem.fsx, qualNameOfFile = FSI_0001_RunAssemblyResolveProblem$fsx, ?rootSigOpt = false
Typecheck implementation FSI_0001.RunAssemblyResolveProblem
--> accFreeInTypeLeftToRight
--> accFreeInTypeLeftToRight
--> accFreeInTypeLeftToRight
--> accFreeInTypeLeftToRight
--> accFreeInTypeLeftToRight
--> accFreeInTypeLeftToRight
--> accFreeInTypeLeftToRight
--> accFreeInTypeLeftToRight
--> accFreeInTypeLeftToRight
--> accFreeInTypeLeftToRight
--> accFreeInTypeLeftToRight
--> accFreeInTypeLeftToRight
--> accFreeInTypeLeftToRight
--> accFreeInTypeLeftToRight
--> accFreeInTypeLeftToRight
--> accFreeInTypeLeftToRight
--> accFreeInTypeLeftToRight
--> accFreeInTypeLeftToRight
--> accFreeInTypeLeftToRight
--> accFreeInTypeLeftToRight
--> accFreeInTypeLeftToRight
--> accFreeInTypeLeftToRight
--> accFreeInTypeLeftToRight
--> accFreeInTypeLeftToRight
--> accFreeInTypeLeftToRight
--> accFreeInTypeLeftToRight
IsHidden module FSI_0001 :
end ??
IsHidden module FSI_0001 :
module RunAssemblyResolveProblem :
end
end ??
IsHidden, #mrmi = 1, module FSI_0001 :
end = false
IsHidden module RunAssemblyResolveProblem :
end ??
IsHidden module RunAssemblyResolveProblem :
end ??
IsHidden, #mrmi = 1, module RunAssemblyResolveProblem :
end = false
done TypeCheckOneImplFile...
done TypeCheckOneInputEventually...
TIME:  3.6 Delta:  0.3 Mem: 159 G0:   0 G1:  0 G2:  0 [Optimizations]
Generating ILX code...
IsHidden module FSI_0001 :
end ??
IsHidden module FSI_0001 :
module RunAssemblyResolveProblem :
end
end ??
IsHidden, #mrmi = 1, module FSI_0001 :
end = false
IsHidden module RunAssemblyResolveProblem :
end ??
IsHidden module RunAssemblyResolveProblem :
end ??
IsHidden, #mrmi = 1, module RunAssemblyResolveProblem :
end = false
IsHidden fp ??
IsHidden fp ??
IsHidden, #mrmi = 1, fp = false
IsHidden fp ??
IsHidden fp ??
IsHidden, #mrmi = 1, fp = false
IsHidden map ??
IsHidden map ??
IsHidden, #mrmi = 1, map = false
IsHidden fp ??
IsHidden fp ??
IsHidden, #mrmi = 1, fp = false
TIME:  3.9 Delta:  0.3 Mem: 162 G0:   0 G1:  0 G2:  0 [Ending Optimizations]
TIME:  3.9 Delta:  0.0 Mem: 162 G0:   1 G1:  0 G2:  0 [TAST -> ILX]
TIME:  3.9 Delta:  0.0 Mem: 162 G0:   1 G1:  0 G2:  0 [Linking]
TIME:  4.0 Delta:  0.0 Mem: 162 G0:   0 G1:  0 G2:  0 [ILX -> IL (Unions)]
TIME:  4.0 Delta:  0.0 Mem: 162 G0:   0 G1:  0 G2:  0 [ILX -> IL (Funcs)]
TIME:  4.0 Delta:  0.0 Mem: 162 G0:   0 G1:  0 G2:  0 [Assembly refs Normalised]
TIME:  4.1 Delta:  0.1 Mem: 164 G0:   0 G1:  0 G2:  0 [Reflection.Emit]
Adding Handler...
Creating Checker...
Get results... [|"--simpleresolution"; "--noframework"; "--debug:full"; "--define:DEBUG";
"--optimize-"; "C:\Users\dragon\AppData\Local\Temp\tmpCDAA.fs";
"-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\mscorlib.dll";
"-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.dll";
"-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Core.dll";
"-r:C:\PROJ\FSharp.Compiler.Service\TEST_BUG\FSharp.Core.dll";
"-r:C:\PROJ\FSharp.Compiler.Service\TEST_BUG\AssemblyResolveProblem.dll";
"-r:C:\PROJ\FSharp.Compiler.Service\TEST_BUG\FSharp.Configuration.dll";
"-r:C:\PROJ\FSharp.Compiler.Service\TEST_BUG\unresolved\SharpYaml.dll";
"--out:C:\Users\dragon\AppData\Local\Temp\tmpCDAA.dll";
"--doc:C:\Users\dragon\AppData\Local\Temp\tmpCDAA.xml"; "--warn:3";
"--fullpaths"; "--flaterrors"; "--target:library"|]
Get ParseAndCheckProject...
Converting IL assembly to F# data structures mscorlib
Converting F# assembly to F# data structures FSharp.Core
Relinking interface info from F# assembly FSharp.Core
Converting IL assembly to F# data structures System
Converting IL assembly to F# data structures System.Core
Converting F# assembly to F# data structures AssemblyResolveProblem
Relinking interface info from F# assembly AssemblyResolveProblem
Converting F# assembly to F# data structures FSharp.Configuration
Relinking interface info from F# assembly FSharp.Configuration
Converting IL assembly to F# data structures SharpYaml
Parsing... tmpCDAA.fs
Parsed tmpCDAA.fs
ParsedInput.ImplFile, nm = C:\Users\dragon\AppData\Local\Temp\tmpCDAA.fs, qualNameOfFile = M, ?rootSigOpt = false
Typecheck implementation M
IsHidden module M :
end ??
IsHidden module M :
end ??
IsHidden, #mrmi = 1, module M :
end = false
done TypeCheckOneImplFile...
done TypeCheckOneInputEventually...
Generating interface data attribute...
Generated interface data attribute!
Get referenceMap...
Get map...
Output: , Error:

  • Stacktrace from the AssemblyResolve Event to see why FCS needs to resolve SharpYaml:
(sdb)          bt
#0 [0x00000000] FSharp.Configuration.YamlConfigTypeProvider.typedYamlConfig (no source)
    nop
#1 [0x0000004D] FSharp.Configuration.ConfigTypeProvider.FSharpConfigurationProvider..ctor (no source)
    call ProvidedTypeDefinition FSharp.Configuration.YamlConfigTypeProvider:typedYamlConfig (Context)
#2 [0x0000001C] System.Reflection.MonoCMethod.InternalInvoke
#3 [0x00000007] System.Reflection.MonoCMethod.InternalInvoke at /mnt/temp/var/tmp/portage/dev-lang/mono-4.2.1.60/work/mono-4.2.1/mcs/class/corlib/System.Reflection/MonoMethod.cs:644 (no source)
    call Object System.Reflection.MonoCMethod:InternalInvoke (Object, Object[], Exception)
#4 [0x0000008D] System.Reflection.MonoCMethod.DoInvoke at /mnt/temp/var/tmp/portage/dev-lang/mono-4.2.1.60/work/mono-4.2.1/mcs/class/corlib/System.Reflection/MonoMethod.cs:635 (no source)
    call Object System.Reflection.MonoCMethod:InternalInvoke (Object, Object[])
#5 [0x00000007] System.Reflection.MonoCMethod.Invoke at /mnt/temp/var/tmp/portage/dev-lang/mono-4.2.1.60/work/mono-4.2.1/mcs/class/corlib/System.Reflection/MonoMethod.cs:663 (no source)
    call Object System.Reflection.MonoCMethod:DoInvoke (Object, BindingFlags, Binder, Object[], CultureInfo)
#6 [0x00000205] System.RuntimeType.CreateInstanceImpl at /mnt/temp/var/tmp/portage/dev-lang/mono-4.2.1.60/work/mono-4.2.1/external/referencesource/mscorlib/system/rttype.cs:5512 (no source)
    callvirt Object System.Reflection.ConstructorInfo:Invoke (BindingFlags, Binder, Object[], CultureInfo)
#7 [0x000000DE] System.Activator.CreateInstance at /mnt/temp/var/tmp/portage/dev-lang/mono-4.2.1.60/work/mono-4.2.1/external/referencesource/mscorlib/system/activator.cs:108 (no source)
    callvirt Object System.RuntimeType:CreateInstanceImpl (BindingFlags, Binder, Object[], CultureInfo, Object[], StackCrawlMark)
#8 [0x0000000A] System.Activator.CreateInstance at /mnt/temp/var/tmp/portage/dev-lang/mono-4.2.1.60/work/mono-4.2.1/external/referencesource/mscorlib/system/activator.cs:119 (no source)
    call Object System.Activator:CreateInstance (Type, BindingFlags, Binder, Object[], CultureInfo, Object[])
#9 [0x0000001F] Microsoft.FSharp.Compiler.ExtensionTyping.CreateTypeProvider@124.Invoke at /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/ExtensionTyping.fs:124
            protect (fun () -> Activator.CreateInstance(typeProviderImplementationType, [| box e|]) :?> ITypeProvider )
#10 [0x00000004] Microsoft.FSharp.Compiler.ExtensionTyping.protect@100-1<Microsoft.FSharp.Core.CompilerServices.ITypeProvider> at /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/ExtensionTyping.fs:102
                f ()
#11 [0x0000008D] Microsoft.FSharp.Compiler.ExtensionTyping.CreateTypeProvider at /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/ExtensionTyping.fs:124
            protect (fun () -> Activator.CreateInstance(typeProviderImplementationType, [| box e|]) :?> ITypeProvider )
#12 [0x0000002C] Microsoft.FSharp.Compiler.ExtensionTyping.GetTypeProvidersOfAssembly@157-1.Invoke at /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/ExtensionTyping.fs:158
                        let resolver = CreateTypeProvider (t, runTimeAssemblyFileName, resolutionEnvironment, isInvalidationSupported, isInteractive, systemRuntimeContainsType, systemRuntimeAssemblyVersion, m)
#13 [0x00000020] Microsoft.FSharp.Collections.IEnumerator.map@111[[System.Collections.Generic.IEnumerable`1[[System.Tuple`2[[Microsoft.FSharp.Core.CompilerServices.ITypeProvider, FSharp.Core, Version=4.4.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a].DoMoveNext at /mnt/temp/var/tmp/portage/dev-lang/fsharp-4.0.0.4/work/fsharp-4.0.0.4/src/fsharp/FSharp.Core/seq.fs:114 (no source)
    callvirt 0 Microsoft.FSharp.Core.FSharpFunc`2:Invoke (1)
#14 [0x00000013] Microsoft.FSharp.Collections.IEnumerator.MapEnumerator<System.Collections.Generic.IEnumerable<System.Tuple<Microsoft.FSharp.Core.CompilerServices.ITypeProvider,Microsoft.FSharp.Compiler.AbstractIL.IL.ILScopeRef>>>.System-Collections-IEnumerator-MoveNext at /mnt/temp/var/tmp/portage/dev-lang/fsharp-4.0.0.4/work/fsharp-4.0.0.4/src/fsharp/FSharp.Core/seq.fs:100 (no source)
    callvirt Boolean MapEnumerator`1:DoMoveNext (0)
#15 [0x00000007] Microsoft.FSharp.Core.CompilerServices.RuntimeHelpers.takeOuter@713<System.Tuple<Microsoft.FSharp.Core.CompilerServices.ITypeProvider,Microsoft.FSharp.Compiler.AbstractIL.IL.ILScopeRef>, System.Collections.Generic.IEnumerable<System.Tuple<Microsoft.FSharp.Core.CompilerServices.ITypeProvider,Microsoft.FSharp.Compiler.AbstractIL.IL.ILScopeRef>>> at /mnt/temp/var/tmp/portage/dev-lang/fsharp-4.0.0.4/work/fsharp-4.0.0.4/src/fsharp/FSharp.Core/seq.fs:714 (no source)
    callvirt Boolean System.Collections.IEnumerator:MoveNext ()
#16 [0x00000027] Microsoft.FSharp.Core.CompilerServices.RuntimeHelpers.takeInner@706<System.Tuple<Microsoft.FSharp.Core.CompilerServices.ITypeProvider,Microsoft.FSharp.Compiler.AbstractIL.IL.ILScopeRef>, System.Collections.Generic.IEnumerable<System.Tuple<Microsoft.FSharp.Core.CompilerServices.ITypeProvider,Microsoft.FSharp.Compiler.AbstractIL.IL.ILScopeRef>>> at /mnt/temp/var/tmp/portage/dev-lang/fsharp-4.0.0.4/work/fsharp-4.0.0.4/src/fsharp/FSharp.Core/seq.fs:713 (no source)
    call Boolean Microsoft.FSharp.Core.CompilerServices.RuntimeHelpers:takeOuter@713 (ConcatEnumerator`2, Unit)
#17 [0x00000024] Microsoft.FSharp.Core.CompilerServices.RuntimeHelpers.ConcatEnumerator<System.Tuple<Microsoft.FSharp.Core.CompilerServices.ITypeProvider,Microsoft.FSharp.Compiler.AbstractIL.IL.ILScopeRef>,System.Collections.Generic.IEnumerable<System.Tuple<Microsoft.FSharp.Core.CompilerServices.ITypeProvider,Microsoft.FSharp.Compiler.AbstractIL.IL.ILScopeRef>>>.System-Collections-IEnumerator-MoveNext at /mnt/temp/var/tmp/portage/dev-lang/fsharp-4.0.0.4/work/fsharp-4.0.0.4/src/fsharp/FSharp.Core/seq.fs:706 (no source)
    call Boolean Microsoft.FSharp.Core.CompilerServices.RuntimeHelpers:takeInner@706 (ConcatEnumerator`2, Unit)
#18 [0x0000000E] <StartupCode$FSharp-Core>.$Seq.MoveNextImpl@819[[System.Tuple`2[[Microsoft.FSharp.Core.CompilerServices.ITypeProvider, FSharp.Core, Version=4.4.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a].GenerateNext at /mnt/temp/var/tmp/portage/dev-lang/fsharp-4.0.0.4/work/fsharp-4.0.0.4/src/fsharp/FSharp.Core/seq.fs:821 (no source)
    callvirt Boolean System.Collections.IEnumerator:MoveNext ()
#19 [0x0000001B] Microsoft.FSharp.Core.CompilerServices.GeneratedSequenceBase<System.Tuple<Microsoft.FSharp.Core.CompilerServices.ITypeProvider,Microsoft.FSharp.Compiler.AbstractIL.IL.ILScopeRef>>.MoveNextImpl at /mnt/temp/var/tmp/portage/dev-lang/fsharp-4.0.0.4/work/fsharp-4.0.0.4/src/fsharp/FSharp.Core/seq.fs:810 (no source)
    callvirt Int32 Microsoft.FSharp.Core.CompilerServices.GeneratedSequenceBase`1:GenerateNext (IEnumerable`1)
#20 [0x00000002] Microsoft.FSharp.Core.CompilerServices.GeneratedSequenceBase<System.Tuple<Microsoft.FSharp.Core.CompilerServices.ITypeProvider,Microsoft.FSharp.Compiler.AbstractIL.IL.ILScopeRef>>.System-Collections-IEnumerator-MoveNext at /mnt/temp/var/tmp/portage/dev-lang/fsharp-4.0.0.4/work/fsharp-4.0.0.4/src/fsharp/FSharp.Core/seq.fs:839 (no source)
    callvirt Boolean Microsoft.FSharp.Core.CompilerServices.GeneratedSequenceBase`1:MoveNextImpl ()
#21 [0x00000041] Microsoft.FSharp.Collections.SeqModule.ToList<System.Tuple<Microsoft.FSharp.Core.CompilerServices.ITypeProvider,Microsoft.FSharp.Compiler.AbstractIL.IL.ILScopeRef>> at /mnt/temp/var/tmp/portage/dev-lang/fsharp-4.0.0.4/work/fsharp-4.0.0.4/src/fsharp/FSharp.Core/seq.fs:305 (no source)
    callvirt Boolean System.Collections.IEnumerator:MoveNext ()
#22 [0x00000061] Microsoft.FSharp.Compiler.ExtensionTyping.GetTypeProvidersOfAssembly at /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/ExtensionTyping.fs:153
                [ match designTimeAssemblyName,resolutionEnvironment.outputFile with
#23 [0x000000BB] [email protected] at /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/CompileOps.fs:4023
                      yield ExtensionTyping.GetTypeProvidersOfAssembly(fileNameOfRuntimeAssembly, ilScopeRefOfRuntimeAssembly, assemblyName, typeProviderEnvironment,
#24 [0x0000001B] Microsoft.FSharp.Core.CompilerServices.GeneratedSequenceBase<Microsoft.FSharp.Collections.FSharpList<Microsoft.FSharp.Compiler.Tainted<Microsoft.FSharp.Core.CompilerServices.ITypeProvider>>>.MoveNextImpl at /mnt/temp/var/tmp/portage/dev-lang/fsharp-4.0.0.4/work/fsharp-4.0.0.4/src/fsharp/FSharp.Core/seq.fs:810 (no source)
    callvirt Int32 Microsoft.FSharp.Core.CompilerServices.GeneratedSequenceBase`1:GenerateNext (IEnumerable`1)
#25 [0x00000002] Microsoft.FSharp.Core.CompilerServices.GeneratedSequenceBase<Microsoft.FSharp.Collections.FSharpList<Microsoft.FSharp.Compiler.Tainted<Microsoft.FSharp.Core.CompilerServices.ITypeProvider>>>.System-Collections-IEnumerator-MoveNext at /mnt/temp/var/tmp/portage/dev-lang/fsharp-4.0.0.4/work/fsharp-4.0.0.4/src/fsharp/FSharp.Core/seq.fs:839 (no source)
    callvirt Boolean Microsoft.FSharp.Core.CompilerServices.GeneratedSequenceBase`1:MoveNextImpl ()
#26 [0x00000041] Microsoft.FSharp.Collections.SeqModule.ToList<Microsoft.FSharp.Collections.FSharpList<Microsoft.FSharp.Compiler.Tainted<Microsoft.FSharp.Core.CompilerServices.ITypeProvider>>> at /mnt/temp/var/tmp/portage/dev-lang/fsharp-4.0.0.4/work/fsharp-4.0.0.4/src/fsharp/FSharp.Core/seq.fs:305 (no source)
    callvirt Boolean System.Collections.IEnumerator:MoveNext ()
#27 [0x000000F9] Microsoft.FSharp.Compiler.CompileOps.TcImports.ImportTypeProviderExtensions at /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/CompileOps.fs:4021
            let providers =
#28 [0x00000063] Microsoft.FSharp.Compiler.CompileOps.ccuRawDataAndInfos@4223-1.Invoke at /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/CompileOps.fs:4226
                         ccuinfo.TypeProviders <- tcImports.ImportTypeProviderExtensions (tcConfig, filename, ilScopeRef, ilModule.ManifestOfAssembly.CustomAttrs.AsList, ccu.Contents, invalidateCcu, m)
#29 [0x0000001A] Microsoft.FSharp.Compiler.CompileOps.PrepareToImportReferencedFSharpDll@4239-4.Invoke at /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/CompileOps.fs:4239
            ccuRawDataAndInfos |> List.iter (fun (_,_,phase2) -> phase2())
#30 [0x0000001B] Microsoft.FSharp.Primitives.Basics.List.iter<System.Tuple<Microsoft.FSharp.Compiler.TastPickle.PickledDataWithReferences<Microsoft.FSharp.Compiler.Tast.PickledCcuInfo>,Microsoft.FSharp.Compiler.CompileOps.ImportedAssembly,Microsoft.FSharp.Core.FSharpFunc<Microsoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>> at /mnt/temp/var/tmp/portage/dev-lang/fsharp-4.0.0.4/work/fsharp-4.0.0.4/src/fsharp/FSharp.Core/local.fs:25 (no source)
    callvirt Unit Microsoft.FSharp.Core.FSharpFunc`2:Invoke (0)
#31 [0x00000003] Microsoft.FSharp.Collections.ListModule.Iterate<System.Tuple<Microsoft.FSharp.Compiler.TastPickle.PickledDataWithReferences<Microsoft.FSharp.Compiler.Tast.PickledCcuInfo>,Microsoft.FSharp.Compiler.CompileOps.ImportedAssembly,Microsoft.FSharp.Core.FSharpFunc<Microsoft.FSharp.Core.Unit,Microsoft.FSharp.Core.Unit>>> at /mnt/temp/var/tmp/portage/dev-lang/fsharp-4.0.0.4/work/fsharp-4.0.0.4/src/fsharp/FSharp.Core/list.fs:106
(no source)
    call Void Microsoft.FSharp.Primitives.Basics.List:iter (FSharpFunc`2, FSharpList`1)
#32 [0x00000029] Microsoft.FSharp.Compiler.CompileOps.PrepareToImportReferencedFSharpDll@4237-1.Invoke at /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/CompileOps.fs:4239
            ccuRawDataAndInfos |> List.iter (fun (_,_,phase2) -> phase2())
#33 [0x00000005] Microsoft.FSharp.Compiler.CompileOps.RegisterAndImportReferencedAssemblies@4306-1.Invoke at /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/CompileOps.fs:4306
        let ccuinfos = (List.collect (fun phase2 -> phase2()) phase2s)
#34 [0x0000001E] Microsoft.FSharp.Primitives.Basics.List.collectToFreshConsTail<Microsoft.FSharp.Core.FSharpFunc<Microsoft.FSharp.Core.Unit,Microsoft.FSharp.Collections.FSharpList<Microsoft.FSharp.Compiler.CompileOps.AvailableImportedAssembly>>, Microsoft.FSharp.Compiler.CompileOps.AvailableImportedAssembly> at /mnt/temp/var/tmp/portage/dev-lang/fsharp-4.0.0.4/work/fsharp-4.0.0.4/src/fsharp/FSharp.Core/local.fs:216 (no source)
    callvirt FSharpList`1 Microsoft.FSharp.Core.FSharpFunc`2:Invoke (0)
#35 [0x0000003C] Microsoft.FSharp.Primitives.Basics.List.collect<Microsoft.FSharp.Core.FSharpFunc<Microsoft.FSharp.Core.Unit,Microsoft.FSharp.Collections.FSharpList<Microsoft.FSharp.Compiler.CompileOps.AvailableImportedAssembly>>, Microsoft.FSharp.Compiler.CompileOps.AvailableImportedAssembly> at /mnt/temp/var/tmp/portage/dev-lang/fsharp-4.0.0.4/work/fsharp-4.0.0.4/src/fsharp/FSharp.Core/local.fs:224 (no source)
    call Void Microsoft.FSharp.Primitives.Basics.List:collectToFreshConsTail (FSharpFunc`2, FSharpList`1, FSharpList`1)
#36 [0x00000005] Microsoft.FSharp.Collections.ListModule.Collect<Microsoft.FSharp.Core.FSharpFunc<Microsoft.FSharp.Core.Unit,Microsoft.FSharp.Collections.FSharpList<Microsoft.FSharp.Compiler.CompileOps.AvailableImportedAssembly>>, Microsoft.FSharp.Compiler.CompileOps.AvailableImportedAssembly> at /mnt/temp/var/tmp/portage/dev-lang/fsharp-4.0.0.4/work/fsharp-4.0.0.4/src/fsharp/FSharp.Core/list.fs:617 (no source)
    call FSharpList`1 Microsoft.FSharp.Primitives.Basics.List:collect (FSharpFunc`2, FSharpList`1)
#37 [0x0000002D] Microsoft.FSharp.Compiler.CompileOps.TcImports.RegisterAndImportReferencedAssemblies at /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/CompileOps.fs:4307
        dllinfos,ccuinfos
#38 [0x00000041] Microsoft.FSharp.Compiler.CompileOps.TcImports.BuildNonFrameworkTcImports at /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/CompileOps.fs:4537
        tcImports.DoRegisterAndImportReferencedAssemblies(references)
#39 [0x00000052] Microsoft.FSharp.Compiler.IncrementalBuilder.CombineImportedAssembliesTask<System.Tuple<Microsoft.FSharp.Core.FSharpChoice<string,Microsoft.FSharp.Compiler.CompileOps.IProjectReference>,System.DateTime>[]> at /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/vs/IncrementalBuild.fs:1309
                let tcImports = TcImports.BuildNonFrameworkTcImports(tcConfigP,tcGlobals,frameworkTcImports,nonFrameworkResolutions,unresolvedReferences)
#40 [0x00000008] <StartupCode$FSharp-Compiler-Service>[email protected] at /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/vs/IncrementalBuild.fs:1530
    let initialTcAccNode            = Vector.Demultiplex "CombineImportedAssemblies" CombineImportedAssembliesTask stampedReferencedAssembliesNode
#41 [0x00000062] Microsoft.FSharp.Compiler.IncrementalBuild.Vector.BoxingDemultiplex@897-1[[System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089].Invoke at /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/vs/IncrementalBuild.fs:897
                box(task (Array.map unbox i) )
#42 [0x0000001F] Microsoft.FSharp.Compiler.IncrementalBuild.DemultiplexOp@650.Invoke at /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/vs/IncrementalBuild.fs:651
                                    func input
#43 [0x0000008B] Microsoft.FSharp.Compiler.IncrementalBuild.Action.Execute at /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/vs/IncrementalBuild.fs:303
            | ScalarAction(id,_taskname,timestamp,inputsig,func) -> ScalarValuedResult(id,func(),timestamp,inputsig)
#44 [0x00000002] [email protected] at /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/vs/IncrementalBuild.fs:771
            let newBt = ForeachAction target bt ExecuteApply bt
#45 [0x00000012] Microsoft.FSharp.Core.FSharpFunc<Microsoft.FSharp.Compiler.IncrementalBuild.Action,Microsoft.FSharp.Compiler.IncrementalBuild.PartialBuild>.InvokeFast<Microsoft.FSharp.Compiler.IncrementalBuild.PartialBuild> (no source)
    callvirt 0 FSharpFunc`3:Invoke (0, 1)
#46 [0x000000B2] Microsoft.FSharp.Compiler.IncrementalBuild.visitScalar@637-1<Microsoft.FSharp.Compiler.IncrementalBuild.PartialBuild> at /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/vs/IncrementalBuild.fs:652
                                actionFunc (ScalarAction(id,taskname,inputtimestamp,currentsig,DemultiplexOp)) acc
#47 [0x000000F8] Microsoft.FSharp.Compiler.IncrementalBuild.visitVector@521-1<Microsoft.FSharp.Compiler.IncrementalBuild.PartialBuild> at /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/vs/IncrementalBuild.fs:562
                    visitVector None inputExpr (visitScalar accumulatorExpr acc)
#48 [0x000000BF] Microsoft.FSharp.Compiler.IncrementalBuild.visitScalar@637-1<Microsoft.FSharp.Compiler.IncrementalBuild.PartialBuild> at /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/vs/IncrementalBuild.fs:653
                            else acc
#49 [0x00000079] Microsoft.FSharp.Compiler.IncrementalBuild.ForeachAction<Microsoft.FSharp.Compiler.IncrementalBuild.PartialBuild> at /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/vs/IncrementalBuild.fs:674
        | ScalarBuildRule se -> visitScalar se acc
#50 [0x00000009] Microsoft.FSharp.Compiler.IncrementalBuild.eval@765 at /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/vs/IncrementalBuild.fs:771
            let newBt = ForeachAction target bt ExecuteApply bt
#51 [0x00000006] Microsoft.FSharp.Compiler.IncrementalBuild.EvalLeafsFirst at /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/vs/IncrementalBuild.fs:765
        let rec eval(bt,gen) =
#52 [0x00000013] Microsoft.FSharp.Compiler.IncrementalBuilder.EvalAndKeepOutput at /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/vs/IncrementalBuild.fs:1566
        let newPartialBuild = IncrementalBuild.Eval (Target(output.Name, optSlot)) partialBuild
#53 [0x0000000E] <StartupCode$FSharp-Compiler-Service>[email protected] at /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/vs/IncrementalBuild.fs:1660
        let build = EvalAndKeepOutput finalizedTypeCheckNode None
#54 [0x0000000A] <StartupCode$FSharp-Compiler-Service>[email protected] at /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/vs/IncrementalBuild.fs:1660
        let build = EvalAndKeepOutput finalizedTypeCheckNode None
#55 [0x00000022] Microsoft.FSharp.Core.FSharpFunc<Microsoft.FSharp.Compiler.IncrementalBuild.Scalar<System.Tuple<Microsoft.FSharp.Compiler.AbstractIL.IL.ILAssemblyRef,Microsoft.FSharp.Core.FSharpOption<Microsoft.FSharp.Compiler.CompileOps.IRawFSharpAssemblyData>,Microsoft.FSharp.Core.FSharpOption<Microsoft.FSharp.Compiler.Tast.TypedAssembly>,Microsoft.FSharp.Compiler.TypeCheckAccumulator>>,Microsoft.FSharp.Core.FSharpOption<int>>.InvokeFast<Microsoft.FSharp.Compiler.IncrementalBuild.PartialBuild> (no source)
    callvirt 0 Microsoft.FSharp.Core.FSharpFunc`2:Invoke (1)
#56 [0x0000000E] Microsoft.FSharp.Compiler.IncrementalBuilder.GetCheckResultsAndImplementationsForProject at /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/vs/IncrementalBuild.fs:1660
        let build = EvalAndKeepOutput finalizedTypeCheckNode None
#57 [0x0000003E] Microsoft.FSharp.Compiler.SourceCodeServices.BackgroundCompiler.ParseAndCheckProjectImpl at /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/vs/service.fs:2541
            let (tcProj, ilAssemRef, tcAssemblyDataOpt, tcAssemblyExprOpt)  = builder.GetCheckResultsAndImplementationsForProject()
#58 [0x0000000D] <StartupCode$FSharp-Compiler-Service>[email protected] at /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/vs/service.fs:2555
        reactor.EnqueueAndAwaitOpAsync("ParseAndCheckProject " + options.ProjectFileName, fun _ct -> bc.ParseAndCheckProjectImpl(options))
#59 [0x00000014] <StartupCode$FSharp-Compiler-Service>.$Reactor.EnqueueAndAwaitOpAsync@136-2[[Microsoft.FSharp.Compiler.SourceCodeServices.FSharpCheckProjectResults, FSharp.Compiler.Service, Version=1.4.2.1, Culture=neutral, PublicKeyToken=null].Invoke at /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/vs/Reactor.fs:139
                            f ct |> AsyncUtil.AsyncOk
#60 [0x000002BD] <StartupCode$FSharp-Compiler-Service>[email protected] at /mnt/data/home/matthid/projects/FSharp.Compiler.Service/src/fsharp/vs/Reactor.fs:68
                        op()
#61 [0x0000001D] Microsoft.FSharp.Control.AsyncBuilderImpl.args@835-1[[Microsoft.FSharp.Core.FSharpOption`1[[Microsoft.FSharp.Compiler.SourceCodeServices.ReactorCommands, FSharp.Compiler.Service, Version=1.4.2.1, Culture=neutral, PublicKeyToken=null].Invoke at /mnt/temp/var/tmp/portage/dev-lang/fsharp-4.0.0.4/work/fsharp-4.0.0.4/src/fsharp/FSharp.Core/control.fs:835 (no source)
    callvirt FSharpAsync`1 Microsoft.FSharp.Core.FSharpFunc`2:Invoke (0)
#62 [0x0000006F] Microsoft.FSharp.Control.AsyncBuilderImpl.resultA@817[[Microsoft.FSharp.Core.FSharpOption`1[[Microsoft.FSharp.Compiler.SourceCodeServices.ReactorCommands, FSharp.Compiler.Service, Version=1.4.2.1, Culture=neutral, PublicKeyToken=null].Invoke at /mnt/temp/var/tmp/portage/dev-lang/fsharp-4.0.0.4/work/fsharp-4.0.0.4/src/fsharp/FSharp.Core/control.fs:821 (no source)
    callvirt FakeUnitValue Microsoft.FSharp.Core.FSharpFunc`2:Invoke (0)
#63 [0x000000B7] Microsoft.FSharp.Control.AsyncBuilderImpl.args@835-1[[Microsoft.FSharp.Compiler.SourceCodeServices.ReactorCommands, FSharp.Compiler.Service, Version=1.4.2.1, Culture=neutral, PublicKeyToken=null].Invoke at /mnt/temp/var/tmp/portage/dev-lang/fsharp-4.0.0.4/work/fsharp-4.0.0.4/src/fsharp/FSharp.Core/control.fs:835 (no source)
    callvirt FakeUnitValue Microsoft.FSharp.Core.FSharpFunc`2:Invoke (AsyncParams`1)
#64 [0x0000006F] Microsoft.FSharp.Control.AsyncBuilderImpl.resultA@817[[Microsoft.FSharp.Compiler.SourceCodeServices.ReactorCommands, FSharp.Compiler.Service, Version=1.4.2.1, Culture=neutral, PublicKeyToken=null].Invoke at /mnt/temp/var/tmp/portage/dev-lang/fsharp-4.0.0.4/work/fsharp-4.0.0.4/src/fsharp/FSharp.Core/control.fs:821 (no source)
    callvirt FakeUnitValue Microsoft.FSharp.Core.FSharpFunc`2:Invoke (0)
#65 [0x00000138] Microsoft.FSharp.Control.AsyncBuilderImpl.callA@851[[Microsoft.FSharp.Compiler.SourceCodeServices.ReactorCommands, FSharp.Compiler.Service, Version=1.4.2.1, Culture=neutral, PublicKeyToken=null].Invoke at /mnt/temp/var/tmp/portage/dev-lang/fsharp-4.0.0.4/work/fsharp-4.0.0.4/src/fsharp/FSharp.Core/control.fs:855 (no source)
    callvirt FakeUnitValue Microsoft.FSharp.Core.FSharpFunc`2:Invoke (AsyncParams`1)
#66 [0x000000B7] Microsoft.FSharp.Control.AsyncBuilderImpl.args@835-1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089].Invoke at /mnt/temp/var/tmp/portage/dev-lang/fsharp-4.0.0.4/work/fsharp-4.0.0.4/src/fsharp/FSharp.Core/control.fs:835 (no source)
    callvirt FakeUnitValue Microsoft.FSharp.Core.FSharpFunc`2:Invoke (AsyncParams`1)
#67 [0x0000000A] <StartupCode$FSharp-Core>[email protected] at /mnt/temp/var/tmp/portage/dev-lang/fsharp-4.0.0.4/work/fsharp-4.0.0.4/src/fsharp/FSharp.Core/control.fs:2352 (no source)
    callvirt FakeUnitValue Microsoft.FSharp.Core.FSharpFunc`2:Invoke (Boolean)
#68 [0x00000003] <StartupCode$FSharp-Core>.$Control.loop@430-54 at /mnt/temp/var/tmp/portage/dev-lang/fsharp-4.0.0.4/work/fsharp-4.0.0.4/src/fsharp/FSharp.Core/control.fs:431 (no source)
    callvirt FakeUnitValue Microsoft.FSharp.Core.FSharpFunc`2:Invoke (Unit)
#69 [0x0000001A] Microsoft.FSharp.Control.Trampoline.ExecuteAction at /mnt/temp/var/tmp/portage/dev-lang/fsharp-4.0.0.4/work/fsharp-4.0.0.4/src/fsharp/FSharp.Core/control.fs:447 (no source)
    call Void <StartupCode$FSharp-Core>.$Control:loop@430-54 (Trampoline, FSharpFunc`2)
#70 [0x00000039] Microsoft.FSharp.Control.TrampolineHolder.Protect at /mnt/temp/var/tmp/portage/dev-lang/fsharp-4.0.0.4/work/fsharp-4.0.0.4/src/fsharp/FSharp.Core/control.fs:562 (no source)
    callvirt FakeUnitValue Microsoft.FSharp.Control.Trampoline:ExecuteAction (FSharpFunc`2)
#71 [0x00000019] <StartupCode$FSharp-Core>[email protected] at /mnt/temp/var/tmp/portage/dev-lang/fsharp-4.0.0.4/work/fsharp-4.0.0.4/src/fsharp/FSharp.Core/control.fs:518 (no source)
    callvirt FakeUnitValue Microsoft.FSharp.Control.TrampolineHolder:Protect (FSharpFunc`2)
#72 [0x00000015] System.Threading.QueueUserWorkItemCallback.WaitCallback_Context at /mnt/temp/var/tmp/portage/dev-lang/mono-4.2.1.60/work/mono-4.2.1/external/referencesource/mscorlib/system/threading/threadpool.cs:1291 (no source)
    callvirt Void System.Threading.WaitCallback:Invoke (Object)
#73 [0x00000083] System.Threading.ExecutionContext.RunInternal at /mnt/temp/var/tmp/portage/dev-lang/mono-4.2.1.60/work/mono-4.2.1/external/referencesource/mscorlib/system/threading/executioncontext.cs:581 (no source)
    callvirt Void System.Threading.ContextCallback:Invoke (Object)
#74 [0x00000004] System.Threading.ExecutionContext.Run at /mnt/temp/var/tmp/portage/dev-lang/mono-4.2.1.60/work/mono-4.2.1/external/referencesource/mscorlib/system/threading/executioncontext.cs:530 (no source)
    call Void System.Threading.ExecutionContext:RunInternal (ExecutionContext, ContextCallback, Object, Boolean)
#75 [0x00000037] System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem at /mnt/temp/var/tmp/portage/dev-lang/mono-4.2.1.60/work/mono-4.2.1/external/referencesource/mscorlib/system/threading/threadpool.cs:1268 (no source)
    call Void System.Threading.ExecutionContext:Run (ExecutionContext, ContextCallback, Object, Boolean)
#76 [0x00000097] System.Threading.ThreadPoolWorkQueue.Dispatch at /mnt/temp/var/tmp/portage/dev-lang/mono-4.2.1.60/work/mono-4.2.1/external/referencesource/mscorlib/system/threading/threadpool.cs:859 (no source)
    callvirt Void System.Threading.IThreadPoolWorkItem:ExecuteWorkItem ()
#77 [0x00000000] System.Threading._ThreadPoolWaitCallback.PerformWaitCallback at /mnt/temp/var/tmp/portage/dev-lang/mono-4.2.1.60/work/mono-4.2.1/external/referencesource/mscorlib/system/threading/threadpool.cs:1196 (no source)
    call Boolean System.Threading.ThreadPoolWorkQueue:Dispatch ()

The other threads don't seem to be doing anything useful:

#0 [0x0000001C] System.Threading.WaitHandle.WaitOne_internal
#1 [0x00000040] System.Threading.WaitHandle.WaitOne at /mnt/temp/var/tmp/portage/dev-lang/mono-4.2.1.60/work/mono-4.2.1/mcs/class/corlib/System.Threading/WaitHandle.cs:375 (no source)
    call Boolean System.Threading.WaitHandle:WaitOne_internal (IntPtr, Int32, Boolean)
#2 [0x0000002E] Microsoft.FSharp.Control.AsyncImpl.ResultCell<Microsoft.FSharp.Control.AsyncBuilderImpl.Result<Microsoft.FSharp.Compiler.SourceCodeServices.FSharpCheckProjectResults>>.TryWaitForResultSynchronously at /mnt/temp/var/tmp/portage/dev-lang/fsharp-4.0.0.4/work/fsharp-4.0.0.4/src/fsharp/FSharp.Core/control.fs:1213 (no source)
    callvirt Boolean System.Threading.WaitHandle:WaitOne (Int32, Boolean)
#3 [0x00000063] Microsoft.FSharp.Control.CancellationTokenOps.RunSynchronously<Microsoft.FSharp.Compiler.SourceCodeServices.FSharpCheckProjectResults> at /mnt/temp/var/tmp/portage/dev-lang/fsharp-4.0.0.4/work/fsharp-4.0.0.4/src/fsharp/FSharp.Core/control.fs:1248 (no source)
    callvirt FSharpOption`1 ResultCell`1:TryWaitForResultSynchronously (FSharpOption`1)
#4 [0x00000075] Microsoft.FSharp.Control.FSharpAsync.RunSynchronously<Microsoft.FSharp.Compiler.SourceCodeServices.FSharpCheckProjectResults> at /mnt/temp/var/tmp/portage/dev-lang/fsharp-4.0.0.4/work/fsharp-4.0.0.4/src/fsharp/FSharp.Core/control.fs:1381 (no source)
    call 0 Microsoft.FSharp.Control.CancellationTokenOps:RunSynchronously (CancellationToken, FSharpAsync`1, FSharpOption`1)
#5 [0x00000212] RunAssemblyResolveProblem.Test.run at /mnt/data/home/matthid/projects/FSharp.Compiler.Service/RunAssemblyResolveProblem/Program.fs:59
  let results = checker.ParseAndCheckProject(options) |> Async.RunSynchronously
#6 [0x0000003B] <StartupCode$FSI_0001>.$FSI_0001_RunAssemblyResolveProblem$fsx.main@ (no source)
    call IEnumerable`1 RunAssemblyResolveProblem.Test:run ()

Thread #3 '<Thread Pool>'
Backtrace for this thread is unavailable

Thread #5 '<Thread Pool>'
Backtrace for this thread is unavailable

Thread #7 'Finalizer'
Backtrace for this thread is unavailable

Thread #6 ''
#0 [0x0000001C] System.Threading.WaitHandle.WaitOne_internal
#1 [0x00000040] System.Threading.WaitHandle.WaitOne at /mnt/temp/var/tmp/portage/dev-lang/mono-4.2.1.60/work/mono-4.2.1/mcs/class/corlib/System.Threading/WaitHandle.cs:375 (no source)
    call Boolean System.Threading.WaitHandle:WaitOne_internal (IntPtr, Int32, Boolean)
#2 [0x00000003] System.Threading.WaitHandle.WaitOne at /mnt/temp/var/tmp/portage/dev-lang/mono-4.2.1.60/work/mono-4.2.1/mcs/class/corlib/System.Threading/WaitHandle.cs:388 (no source)
    callvirt Boolean System.Threading.WaitHandle:WaitOne (Int32, Boolean)
#3 [0x0000025E] System.Threading.Timer.Scheduler.SchedulerThread at /mnt/temp/var/tmp/portage/dev-lang/mono-4.2.1.60/work/mono-4.2.1/mcs/class/corlib/System.Threading/Timer.cs:395 (no source)
    callvirt Boolean System.Threading.WaitHandle:WaitOne (Int32)
#4 [0x00000022] System.Threading.ThreadHelper.ThreadStart_Context at /mnt/temp/var/tmp/portage/dev-lang/mono-4.2.1.60/work/mono-4.2.1/external/referencesource/mscorlib/system/threading/thread.cs:68 (no source)
    callvirt Void System.Threading.ThreadStart:Invoke ()
#5 [0x00000083] System.Threading.ExecutionContext.RunInternal at /mnt/temp/var/tmp/portage/dev-lang/mono-4.2.1.60/work/mono-4.2.1/external/referencesource/mscorlib/system/threading/executioncontext.cs:581 (no source)
    callvirt Void System.Threading.ContextCallback:Invoke (Object)
#6 [0x00000004] System.Threading.ExecutionContext.Run at /mnt/temp/var/tmp/portage/dev-lang/mono-4.2.1.60/work/mono-4.2.1/external/referencesource/mscorlib/system/threading/executioncontext.cs:530 (no source)
    call Void System.Threading.ExecutionContext:RunInternal (ExecutionContext, ContextCallback, Object, Boolean)
#7 [0x00000035] System.Threading.ExecutionContext.Run at /mnt/temp/var/tmp/portage/dev-lang/mono-4.2.1.60/work/mono-4.2.1/external/referencesource/mscorlib/system/threading/executioncontext.cs:519 (no source)
    call Void System.Threading.ExecutionContext:Run (ExecutionContext, ContextCallback, Object, Boolean)
#8 [0x00000017] System.Threading.ThreadHelper.ThreadStart at /mnt/temp/var/tmp/portage/dev-lang/mono-4.2.1.60/work/mono-4.2.1/external/referencesource/mscorlib/system/threading/thread.cs:105 (no source)
    call Void System.Threading.ExecutionContext:Run (ExecutionContext, ContextCallback, Object)

@matthid
Copy link
Contributor Author

matthid commented Nov 19, 2015

So, if the type provider needs to be created in order to create the type information, would it make sense (in order to work-around this scenario) to find all references of the provider and load them before we try to initialize a new instance (We should know all paths because they should be given via "-r" arguments, correct)?

Maybe only activate this code when running on linux? However, I think this bug can be triggered on windows as well as soon as the constructor of the type-provider is using a referenced assembly...

@matthid matthid changed the title [linux/mono] Crash when using the assembly-resolve event and the checker from within a fsi session. Crash when using the assembly-resolve event and the checker from within a fsi session. Nov 19, 2015
@dsyme dsyme added the bug label Nov 19, 2015
@dsyme dsyme closed this as completed Aug 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants