[Mono-bugs] [Bug 71172][Maj] New - Some regression in the Lock statement code-generation

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 11 Jan 2005 11:27:02 -0500 (EST)


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 rafaelteixeirabr@hotmail.com.

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

--- shadow/71172	2005-01-11 11:27:02.000000000 -0500
+++ shadow/71172.tmp.16008	2005-01-11 11:27:02.000000000 -0500
@@ -0,0 +1,91 @@
+Bug#: 71172
+Product: Mono: Compilers
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: Basic
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: rafaelteixeirabr@hotmail.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Some regression in the Lock statement code-generation
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+A exception occurs when compiling a source with a lock statement:
+
+--------
+MonoBASIC: THIS IS AN ALPHA SOFTWARE.
+--------
+Internal warning BC-0018: Cannot find any symbol writer
+ 
+         at Mono.MonoBASIC.Report.Warning ()
+         at Mono.MonoBASIC.Report.Warning ()
+         at Mono.MonoBASIC.CodeGen.InitializeSymbolWriter ()
+         at Mono.MonoBASIC.CodeGen.Init ()
+         at Mono.Languages.Driver.InitializeDebuggingSupport ()
+         at Mono.Languages.Driver.ResolveAllTypes ()
+         at Mono.Languages.Driver.CompileAll ()
+         at Mono.Languages.Driver.MainDriver ()
+         at Mono.Languages.Driver.Main ()
+Exception: System.NotSupportedException: Not in an exception block
+in [0x0001b] (at
+/home/rafael/source/mcs/class/corlib/System.Reflection.Emit/ILGenerator.cs:387)
+System.Reflection.Emit.ILGenerator:BeginFinallyBlock ()
+in [0x000b5] (at /home/rafael/source/mcs/mbas/statement.cs:4120)
+Mono.MonoBASIC.Lock:DoEmit (Mono.MonoBASIC.EmitContext)
+in [0x0000e] (at /home/rafael/source/mcs/mbas/statement.cs:47)
+Mono.MonoBASIC.Statement:Emit (Mono.MonoBASIC.EmitContext)
+in [0x0003f] (at /home/rafael/source/mcs/mbas/statement.cs:3247)
+Mono.MonoBASIC.Block:DoEmit (Mono.MonoBASIC.EmitContext)
+in [0x0000e] (at /home/rafael/source/mcs/mbas/statement.cs:47)
+Mono.MonoBASIC.Statement:Emit (Mono.MonoBASIC.EmitContext)
+in [0x0003f] (at /home/rafael/source/mcs/mbas/statement.cs:3247)
+Mono.MonoBASIC.Block:DoEmit (Mono.MonoBASIC.EmitContext)
+in [0x0000e] (at /home/rafael/source/mcs/mbas/statement.cs:47)
+Mono.MonoBASIC.Statement:Emit (Mono.MonoBASIC.EmitContext)
+in [0x000a0] (at /home/rafael/source/mcs/mbas/codegen.cs:587)
+Mono.MonoBASIC.EmitContext:EmitTopBlock
+(Mono.MonoBASIC.Block,string,Mono.MonoBASIC.InternalParameters,Mono.MonoBASIC.Location)
+in [0x0026a] (at /home/rafael/source/mcs/mbas/class.cs:3150)
+Mono.MonoBASIC.MethodData:Emit
+(Mono.MonoBASIC.TypeContainer,Mono.MonoBASIC.Block,object)
+in [0x0000e] (at /home/rafael/source/mcs/mbas/class.cs:2292)
+Mono.MonoBASIC.Method:Emit (Mono.MonoBASIC.TypeContainer)
+in [0x000a3] (at /home/rafael/source/mcs/mbas/class.cs:1426)
+Mono.MonoBASIC.TypeContainer:Emit ()
+in [0x000d7] (at /home/rafael/source/mcs/mbas/rootcontext.cs:768)
+Mono.MonoBASIC.RootContext:EmitCode ()
+in [0x00016] (at /home/rafael/source/mcs/mbas/driver.cs:875)
+Mono.Languages.Driver:GenerateAssembly ()
+in [0x00021] (at /home/rafael/source/mcs/mbas/driver.cs:953)
+Mono.Languages.Driver:CompileAll ()
+ 
+Compilation succeeded: 1 warning(s)
+
+---
+
+It's also not good that the compilation proceeds...
+
+
+Steps to reproduce the problem:
+1. do 'make test-local' in mcs/mbas/Test/misc
+
+Actual Results:
+Above shown exception
+
+Expected Results:
+Just a good compilation
+
+How often does this happen? 
+With current svn HEAD, always
+
+Additional Information: