[Mono-bugs] [Bug 81502][Nor] New - F# AsyncDelegates sample does not run in interpreter

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue May 1 04:09:26 EDT 2007


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by gert.driesen at pandora.be.

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

--- shadow/81502	2007-05-01 04:09:26.000000000 -0400
+++ shadow/81502.tmp.1564	2007-05-01 04:09:26.000000000 -0400
@@ -0,0 +1,225 @@
+Bug#: 81502
+Product: Mono: Runtime
+Version: 1.2
+OS: GNU/Linux [Other]
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: gert.driesen at pandora.be               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: F# AsyncDelegates sample does not run in interpreter
+
+When running the AsyncDelegates sample using the F# interpreter (fsi), 
+then the following errors are reported:
+
+using fsi10.exe:
+error: null: GetTRefType (assembly mscorlib, Version=1.0.5000.0, 
+Culture=neutral, PublicKeyToken=b77a5c561934e089, ty = System.Converter)
+
+using fsi.exe:
+** ERROR **: file mini.c: line 3975 (mono_method_to_ir): assertion failed: 
+(!sig->has_type_parameters)
+aborting...
+Stacktrace:
+
+  at FSI_0002.Main.asyncApp 
+(Microsoft.FSharp.Core.FastFunc`2,Microsoft.FSharp.Core.FastFunc`2) 
+<0xffffffff>
+  at FSI_0002.Main.asyncApp 
+(Microsoft.FSharp.Core.FastFunc`2,Microsoft.FSharp.Core.FastFunc`2) 
+<0x0001f>
+  at <StartupCode>.FSI_0002_Main._main () <0x00396>
+  at (wrapper runtime-invoke) System.Object.runtime_invoke_void 
+(object,intptr,intptr,intptr) <0xffffffff>
+  at (wrapper managed-to-native) 
+System.Reflection.MonoMethod.InternalInvoke (object,object[]) <0x00004>
+  at (wrapper managed-to-native) 
+System.Reflection.MonoMethod.InternalInvoke (object,object[]) <0xffffffff>
+  at System.Reflection.MonoMethod.Invoke 
+(object,System.Reflection.BindingFlags,System.Reflection.Binder,object
+[],System.Globalization.CultureInfo) <0x0009a>
+  at System.MonoType.InvokeMember 
+(string,System.Reflection.BindingFlags,System.Reflection.Binder,object,obje
+ct[],System.Reflection.ParameterModifier
+[],System.Globalization.CultureInfo,string[]) <0x00364>
+  at System.Reflection.Emit.TypeBuilder.InvokeMember 
+(string,System.Reflection.BindingFlags,System.Reflection.Binder,object,obje
+ct[],System.Reflection.ParameterModifier
+[],System.Globalization.CultureInfo,string[]) <0x00035>
+  at System.Type.InvokeMember 
+(string,System.Reflection.BindingFlags,System.Reflection.Binder,object,obje
+ct[]) <0x00023>
+  at execEntryPtFun at 1742_1.Invoke (Microsoft.FSharp.Core.Unit) <0x000a2>
+  at processInputs at 679.Invoke (Microsoft.FSharp.Core.FastFunc`2) <0x00015>
+  at List.iter 
+(Microsoft.FSharp.Core.FastFunc`2,Microsoft.FSharp.Collections.List) 
+<0x00023>
+  at Microsoft.FSharp.Compiler.Interactive.Shell.processInputs 
+(int,Microsoft.FSharp.Compiler.Interactive.Shell/interactionState,Microsoft
+.FSharp.Collections.List,bool,bool,Microsoft.FSharp.Collections.List) 
+<0x00abf>
+  at Microsoft.FSharp.Compiler.Interactive.Shell.evalInputsFromLoadedFiles 
+(Microsoft.FSharp.Compiler.Interactive.Shell/interactionState,Microsoft.FSh
+arp.Collections.List) <0x00096>
+  at Microsoft.FSharp.Compiler.Interactive.Shell.evalLoadFiles 
+(Microsoft.FSharp.Compiler.Interactive.Shell/interactionState,long,Microsof
+t.FSharp.Collections.List) <0x001b0>
+  at initial at 1260@1265.Invoke 
+(Microsoft.FSharp.Compiler.Interactive.Shell/interactionState) <0x0005d>
+  at Microsoft.FSharp.Compiler.Interactive.Shell.interactiveCatch 
+(Microsoft.FSharp.Core.FastFunc`2,Microsoft.FSharp.Compiler.Interactive.She
+ll/interactionState) <0x00036>
+  at Microsoft.FSharp.Compiler.Interactive.Shell.initial at 1260@1260 () 
+<0x004a6>
+  at Microsoft.FSharp.Compiler.Interactive.Shell.main () <0x00169>
+  at <StartupCode>.Microsoft.FSharp.Compiler.Interactive.Shell._main () 
+<0x0154f>
+  at (wrapper runtime-invoke) System.Object.runtime_invoke_void 
+(object,intptr,intptr,intptr) <0xffffffff>
+
+Native stacktrace:
+
+        mono [0x81695be]
+        [0xffffe440]
+        /lib/tls/libc.so.6(abort+0xeb) [0xb7e1a353]
+        /usr/lib/libglib-2.0.so.0(g_log+0) [0xb7f6aad4]
+
+Debug info from gdb:
+
+Using host libthread_db library "/lib/tls/libthread_db.so.1".
+[Thread debugging using libthread_db enabled]
+[New Thread -1210124608 (LWP 15372)]
+[New Thread -1249567824 (LWP 15378)]
+[New Thread -1248515152 (LWP 15377)]
+[New Thread -1245484112 (LWP 15376)]
+[New Thread -1241949264 (LWP 15375)]
+[New Thread -1218708560 (LWP 15374)]
+[New Thread -1213006928 (LWP 15373)]
+0xffffe410 in ?? ()
+  7 Thread -1213006928 (LWP 15373)  0xffffe410 in ?? ()
+  6 Thread -1218708560 (LWP 15374)  0xffffe410 in ?? ()
+  5 Thread -1241949264 (LWP 15375)  0xffffe410 in ?? ()
+  4 Thread -1245484112 (LWP 15376)  0xffffe410 in ?? ()
+  3 Thread -1248515152 (LWP 15377)  0xffffe410 in ?? ()
+  2 Thread -1249567824 (LWP 15378)  0xffffe410 in ?? ()
+  1 Thread -1210124608 (LWP 15372)  0xffffe410 in ?? ()
+
+Thread 7 (Thread -1213006928 (LWP 15373)):
+#0  0xffffe410 in ?? ()
+#1  0xb7b2f458 in ?? ()
+#2  0x081f9694 in ?? ()
+#3  0x00000000 in ?? ()
+
+Thread 6 (Thread -1218708560 (LWP 15374)):
+#0  0xffffe410 in ?? ()
+#1  0xb75bf288 in ?? ()
+#2  0x0000000f in ?? ()
+#3  0x00000000 in ?? ()
+
+Thread 5 (Thread -1241949264 (LWP 15375)):
+#0  0xffffe410 in ?? ()
+#1  0xb5f95020 in ?? ()
+#2  0x00000400 in ?? ()
+#3  0x000c1ab0 in ?? ()
+#4  0xb7f31fdb in __read_nocancel () from /lib/tls/libpthread.so.0
+#5  0x081019c6 in console_read (handle=0x0, buffer=0xc1ab0, numbytes=1024,
+    bytesread=0xb5f95070, overlapped=0x0) at io.c:1069
+#6  0x08102f75 in ReadFile (handle=0x0, buffer=0xfffffe00,
+    numbytes=4294966784, bytesread=0xfffffe00, overlapped=0xfffffe00)
+    at io.c:2177
+#7  0x080f61c4 in ves_icall_System_IO_MonoIO_Read (handle=0xfffffe00,
+    dest=0xc1aa0, dest_offset=793264, count=1024, error=0xb5f950dc)
+    at file-io.c:600
+#8  0xb5fa484b in ?? ()
+#9  0x00000000 in ?? ()
+
+Thread 4 (Thread -1245484112 (LWP 15376)):
+#0  0xffffe410 in ?? ()
+#1  0xb5c362bc in ?? ()
+#2  0x081f9694 in ?? ()
+#3  0xb5c3629c in ?? ()
+#4  0xb7f327c6 in __nanosleep_nocancel () from /lib/tls/libpthread.so.0
+#5  0x0810a0f6 in SleepEx (ms=800, alertable=1) at threads.c:997
+#6  0x080b67b2 in ves_icall_System_Threading_Thread_Sleep_internal (ms=800)
+    at threads.c:651
+#7  0xb5c5227e in ?? ()
+#8  0x00000320 in ?? ()
+#9  0x0955a698 in ?? ()
+#10 0xb649f2a8 in ?? ()
+#11 0x00021ed8 in ?? ()
+#12 0x00a91e88 in ?? ()
+#13 0x00000320 in ?? ()
+#14 0x00bb4c60 in ?? ()
+#15 0xb5c36308 in ?? ()
+#16 0xb5c5225c in ?? ()
+#17 0xb5c3631c in ?? ()
+#18 0xb5c52207 in ?? ()
+#19 0x00000320 in ?? ()
+#20 0x00bb4c60 in ?? ()
+#21 0x0002b990 in ?? ()
+#22 0xb5c36340 in ?? ()
+#23 0xb5c51f9e in ?? ()
+#24 0x00000320 in ?? ()
+#25 0x00021ed8 in ?? ()
+#26 0x00667640 in ?? ()
+#27 0x0002b990 in ?? ()
+#28 0x00bb4c60 in ?? ()
+#29 0x00a91e88 in ?? ()
+#30 0x00a91e88 in ?? ()
+#31 0xb5c36354 in ?? ()
+#32 0xb5e87db8 in ?? ()
+#33 0x00bb4c60 in ?? ()
+#34 0x00ad8bb8 in ?? ()
+#35 0x0953ed30 in ?? ()
+#36 0xb5c36378 in ?? ()
+#37 0xb649f2d1 in ?? ()
+#38 0x00a91e88 in ?? ()
+#39 0x08312944 in ?? ()
+#40 0x00000000 in ?? ()
+
+Thread 3 (Thread -1248515152 (LWP 15377)):
+#0  0xffffe410 in ?? ()
+#1  0xb5952290 in ?? ()
+#2  0x0000063c in ?? ()
+#3  0x00000000 in ?? ()
+
+Thread 2 (Thread -1249567824 (LWP 15378)):
+#0  0xffffe410 in ?? ()
+#1  0xb5851290 in ?? ()
+#2  0x0000063e in ?? ()
+#3  0x00000000 in ?? ()
+
+Thread 1 (Thread -1210124608 (LWP 15372)):
+#0  0xffffe410 in ?? ()
+#1  0x00000008 in ?? ()
+#2  0x00000008 in ?? ()
+#3  0xbfaa5c98 in ?? ()
+#4  0xb7f31fdb in __read_nocancel () from /lib/tls/libpthread.so.0
+#5  0xb7f89a14 in g_spawn_error_quark () from /usr/lib/libglib-2.0.so.0
+#6  0xbfaa5c98 in ?? ()
+#7  0x00000008 in ?? ()
+#8  0x00000000 in ?? ()
+#0  0xffffe410 in ?? ()
+
+
+=================================================================
+Got a SIGABRT while executing native code. This usually indicates
+a fatal error in the mono runtime or one of the native libraries
+used by your application.
+=================================================================
+
+
+Note: running the compiled sample works fine.
+
+To reproduce:
+1. extract the attached gzipped tar archive (which contains the f# 
+binaries).
+2. run 'make' to eecute both the 1.0 and 2.0 test, or run 'make test-mono-
+1.0' or 'make test-mono-2.0' to run them separately.


More information about the mono-bugs mailing list