Skip to content

Instantly share code, notes, and snippets.

View kumpera's full-sized avatar

Rodrigo Kumpera kumpera

View GitHub Profile
diff --git a/mono/mini/aot-compiler.c b/mono/mini/aot-compiler.c
index 9502e54..1c197fd 100644
--- a/mono/mini/aot-compiler.c
+++ b/mono/mini/aot-compiler.c
@@ -65,6 +65,7 @@
#include "mini.h"
#include "image-writer.h"
#include "dwarfwriter.h"
+#include "mini-gc.h"
System.ExecutionEngineException: Attempting to JIT compile method 'System.Array:Sort<int, string> (int[],string[],System.Collections.Generic.IComparer`1<int>)' while running with --aot-only. See http://docs.xamarin.com/ios/about/limitations for more information.
at System.Linq.QuickSort`1[System.String].PerformSort () [0x00000] in <filename unknown>:0
at System.Linq.QuickSort`1+<Sort>c__Iterator2F[System.String].MoveNext () [0x00000] in <filename unknown>:0
at System.Linq.Enumerable+<CreateSelectIterator>c__Iterator1D`2[System.String,System.String].MoveNext () [0x00000] in <filename unknown>:0
at System.Linq.Enumerable.ToArray[String] (IEnumerable`1 source) [0x00000] in <filename unknown>:0
at TweetStation.OAuthAuthorizer.MakeSignature (System.String method, System.String base_uri, System.Collections.Generic.Dictionary`2 headers) [0x00000] in <filename unknown>:0
at TweetStation.OAuthAuthorizer.AuthorizeRequest (TweetStation.OAuthConfig config, System.String oauthToken, System.String o
sgen_gray_object_enqueue_fast (SgenGrayQueue *queue, char *object)
{
GrayQueueSection *first = queue->first;
if (G_UNLIKELY (!first || first->end == SGEN_GRAY_QUEUE_SECTION_SIZE))
sgen_gray_object_enqueue (queue, object);
else
first->objects [first->end++] = object;
PREFETCH (object);
}
diff --git a/mono/metadata/sgen-alloc.c b/mono/metadata/sgen-alloc.c
index a1ac53d..ce4b1b0 100644
--- a/mono/metadata/sgen-alloc.c
+++ b/mono/metadata/sgen-alloc.c
@@ -339,6 +339,24 @@ mono_gc_alloc_obj_nolock (MonoVTable *vtable, size_t size)
return p;
}
+
+void
mac-10-6-1:src builder$ MONO_LOG_LEVEL=debug /Library/Frameworks/Mono.framework/Versions/3.0.3/bin/mono-sgen ../lib/bootstrap/2.0/fslex.exe absil/illex.fsl -o whatever.fs --lexlib Internal.Utilities.Text.Lexing --unicode
Mono: Assembly Loader probing location: '/Library/Frameworks/Mono.framework/Versions/3.0.3/lib/mono/2.0/mscorlib.dll'.
Mono: Image addref mscorlib[0x507cb0] -> /Library/Frameworks/Mono.framework/Versions/3.0.3/lib/mono/2.0/mscorlib.dll[0x825400]: 2
Mono: AOT failed to load AOT module /Library/Frameworks/Mono.framework/Versions/3.0.3/lib/mono/2.0/mscorlib.dll.dylib: dlopen(/Library/Frameworks/Mono.framework/Versions/3.0.3/lib/mono/2.0/mscorlib.dll.dylib, 9): image not found
Mono: Assembly Loader loaded assembly from location: '/Library/Frameworks/Mono.framework/Versions/3.0.3/lib/mono/2.0/mscorlib.dll'.
Mono: Config attempting to parse: '/Library/Frameworks/Mono.framework/Versions/3.0.3/lib/mono/2.0/mscorlib.dll.config'.
Mono: Config attempting to parse: '/Library/Frameworks/Mono.framework/
2013-02-15 13:33:43.473 corlib_testbed[93770:c07] *** -[NSAutoreleasePool release]: This pool has already been released, do not drain it (double release).
Unhandled Exception:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Threading.ThreadAbortException: Thread was being aborted
at (wrapper managed-to-native) System.Threading.Monitor:try_enter_with_atomic_var (object,int,bool&)
at System.Threading.Monitor.TryEnter (System.Object obj, Int32 millisecondsTimeout, System.Boolean& lockTaken) [0x00041] in /Users/kumpera/src/monotouch/master-30/mono/mcs/class/corlib/System.Threading/Monitor.cs:224
at System.Threading.Monitor.Enter (System.Object obj, System.Boolean& lockTaken) [0x00000] in /Users/kumpera/src/monotouch/master-30/mono/mcs/class/corlib/System.Threading/Monitor.cs:198
at (wrapper unknown) System.Threading.Monitor:FastMonitorEnterV4 (object,bool&)
at MonoTouch.ObjCRuntime.Runtime.RegisterNSObject (MonoTouch.Foundation.NSObje
using System;
using NUnit.Framework;
using System.Runtime.Remoting;
using System.Runtime.Remoting.Channels;
using System.Runtime.Remoting.Proxies;
using System.Runtime.Remoting.Messaging;
namespace remoting
using System;
using System.Collections;
interface IFoo {}
class Bar : MarshalByRefObject {
public void Tst () {}
public int field;
}
"<unnamed thread>" tid=0x0xac212a28 this=0x0x658f20 thread handle 0x103 state : waiting on 0x110 : Event owns ()
at <unknown> <0xffffffff>
at (wrapper managed-to-native) System.Threading.WaitHandle.WaitOne_internal (System.Threading.WaitHandle,intptr,int,bool) <0xffffffff>
at System.Threading.WaitHandle.WaitOne () <0x0005f>
at Xamarin.Android.Tasks.MandroidDaemon.SendCommand (Microsoft.Build.Utilities.Task,string[],System.Action`1<string>) <0x001f1>
at Xamarin.Android.Tasks.MandroidDaemon.GetEdition (Microsoft.Build.Utilities.Task) <0x000a7>
at MSBuildExtensions.GetLicenseEdition (Microsoft.Build.Utilities.Task) <0x00013>
at Xamarin.Android.Tasks.ResolveSdks.Execute () <0x000d3>
at Microsoft.Build.BuildEngine.TaskEngine.Execute () <0x00019>
at Microsoft.Build.BuildEngine.BuildTask.Execute () <0x00287>
async Task ShowStuffAsync ()
{
var client = new HttpClient ();
var content = JsonValue.Parse (await client.GetStringAsync ("http://api.worldbank.org/countries?format=json"));
int number_of_countries = content [0] ["per_page"];
int done = 0, error = 0;
CountriesLabel.Text = string.Format ("Countries: {0} done: 0 error: 0", number_of_countries);