fork download
  1. Imports System
  2.  
  3. Public Class Test
  4. Public Shared Sub Main()
  5. Dim n As Integer
  6. n = Console.ReadLine
  7. Do While n <> 42
  8. System.Console.WriteLine(n)
  9. n = Console.ReadLine
  10. Loop
  11. Try
  12. End Try
  13. End Sub
  14. End Class
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
1
2
10
42
11
compilation info
Visual Basic.Net Compiler version 0.0.0.5914 (Mono 2.4.2 - r)
Copyright (C) 2004-2008 Rolf Bjarne Kvinge. All rights reserved.



** ERROR **: No clauses for ex info block 0
aborting...
Stacktrace:

  at (wrapper managed-to-native) System.Reflection.Emit.ModuleBuilder.build_metadata (System.Reflection.Emit.ModuleBuilder) <0x00004>
  at (wrapper managed-to-native) System.Reflection.Emit.ModuleBuilder.build_metadata (System.Reflection.Emit.ModuleBuilder) <0xffffffff>
  at System.Reflection.Emit.ModuleBuilder.Save () [0x001c4] in /var/tmp/portage/dev-lang/mono-2.4.2.3/work/mono-2.4.2.3/mcs/class/corlib/System.Reflection.Emit/ModuleBuilder.cs:749
  at System.Reflection.Emit.AssemblyBuilder.Save (string,System.Reflection.PortableExecutableKinds,System.Reflection.ImageFileMachine) [0x001f5] in /var/tmp/portage/dev-lang/mono-2.4.2.3/work/mono-2.4.2.3/mcs/class/corlib/System.Reflection.Emit/AssemblyBuilder.cs:835
  at System.Reflection.Emit.AssemblyBuilder.Save (string) [0x00000] in /var/tmp/portage/dev-lang/mono-2.4.2.3/work/mono-2.4.2.3/mcs/class/corlib/System.Reflection.Emit/AssemblyBuilder.cs:846
  at vbnc.Compiler.Compile () [0x00446] in /var/tmp/portage/dev-lang/mono-basic-2.4.2/work/mono-basic-2.4.2/vbnc/vbnc/source/General/Compiler.vb:618
  at vbnc.Compiler.Compile (string[]) [0x00057] in /var/tmp/portage/dev-lang/mono-basic-2.4.2/work/mono-basic-2.4.2/vbnc/vbnc/source/General/Compiler.vb:279
  at vbnc.Main.Main (string[]) [0x0000f] in /var/tmp/portage/dev-lang/mono-basic-2.4.2/work/mono-basic-2.4.2/vbnc/vbnc/source/General/Main.vb:55
  at (wrapper runtime-invoke) vbnc.Main.runtime_invoke_int_object (object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

	mono [0x80c976f]
	[0xb76e940c]
	/lib/libc.so.6(abort+0x185) [0xb749ec25]
	/usr/lib/libglib-2.0.so.0 [0xb76442a4]
	/usr/lib/libglib-2.0.so.0(g_log+0x26) [0xb76442d6]
	mono [0x8189e78]
	mono [0x8189f91]
	mono [0x818a9ab]
	[0xb46df72c]
	[0xb46df423]
	[0xb46dad11]
	[0xb46da728]
	[0xb50fb2ea]
	[0xb5108671]
	[0xb6d88452]
	[0xb6d88203]
	mono(mono_runtime_exec_main+0x16e) [0x810d85e]
	mono(mono_runtime_run_main+0x16b) [0x810df6b]
	mono(mono_main+0x18da) [0x80b158a]
	mono [0x805b571]
	/lib/libc.so.6(__libc_start_main+0xe5) [0xb7489725]
	mono [0x805b481]

Debug info from gdb:


=================================================================
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.
=================================================================

/spoj/vb.net_compile: line 22:  6301 Aborted                 MONO_DISABLE_SHM=1 LANG=en_US.UTF-8 vbnc /addmodule:System -out:prog.exe prog.vb
stdout
Standard output is empty