[Mono-bugs] [Bug 350480] New: ilasm crashes on switch with undefined label
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Fri Dec 21 18:18:39 EST 2007
https://bugzilla.novell.com/show_bug.cgi?id=350480
Summary: ilasm crashes on switch with undefined label
Product: Mono: Compilers
Version: unspecified
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: IL assembler
AssignedTo: jankit at novell.com
ReportedBy: rkumpera at novell.com
QAContact: mono-bugs at ximian.com
Found By: ---
a switch instruction crashes ilasm with the following exception:
Unhandled Exception: System.NullReferenceException: Object reference not set to
an instance of an object
at Mono.ILASM.MethodDef.GetLabelDef (System.String name) [0x00000]
at Mono.ILASM.SwitchInstr.Emit (Mono.ILASM.CodeGen code_gen,
Mono.ILASM.MethodDef meth, PEAPI.CILInstructions cil) [0x00000]
at Mono.ILASM.MethodDef.WriteCode (Mono.ILASM.CodeGen code_gen,
PEAPI.MethodDef methoddef) [0x00000]
at Mono.ILASM.MethodDef.Define (Mono.ILASM.CodeGen code_gen) [0x00000]
at Mono.ILASM.CodeGen.Write () [0x00000]
at Mono.ILASM.Driver+DriverMain.Run () [0x00000]
I'm attaching the patch that fixes it.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list