https://bugzilla.novell.com/show_bug.cgi?id=633312
https://bugzilla.novell.com/show_bug.cgi?id=633312#c0 Summary: ilasm2 /debug crashes with System.IndexOutOfRangeException Classification: Mono Product: Mono: Compilers Version: 2.6.x Platform: i686 OS/Version: Linux Status: NEW Severity: Normal Priority: P5 - None Component: IL assembler AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- Created an attachment (id=384544) --> (http://bugzilla.novell.com/attachment.cgi?id=384544) Output of dnet for postinc_2.d Description of Problem: I used simple D2 program, to test it: // postinc_2.d void main() { for (int i; i != 3; i++) { } } Compiled it using dnet compiler to il (attached), and then used ilasm2 to compile it to exe. $ ilasm2 postinc_2.d # works $ ilasm2 /debug postinc_2.d # crash Assembling 'postinc_2.il' , no listing file, to exe --> 'postinc_2.exe' Unhandled Exception: System.IndexOutOfRangeException: Array index is out of range. at Mono.ILASM.MethodDef.GetLocalVars () [0x00000] in <filename unknown>:0 at Mono.ILASM.SourceMethod.Write (Mono.CompilerServices.SymbolWriter.MonoSymbolWriter writer) [0x00000] in <filename unknown>:0 at Mono.ILASM.SymbolWriter.Write (Guid guid) [0x00000] in <filename unknown>:0 at Mono.ILASM.CodeGen.Write () [0x00000] in <filename unknown>:0 at Mono.ILASM.Driver+DriverMain.Run () [0x00000] in <filename unknown>:0 Even if dnet compiler is producing bogus il file, ilasm2 should not crash. How often does this happen? Always Additional Information: Using Debian sid. Both mono 2.4.0 and 2.6.3 have this behaviour. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
