[Mono-bugs] [Bug 353604] New: Unexpected Unhandled Exception: System. TypeInitializationException when using Mono's ilasm

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Jan 14 07:27:32 EST 2008


https://bugzilla.novell.com/show_bug.cgi?id=353604


           Summary: Unexpected Unhandled Exception:
                    System.TypeInitializationException when using Mono's
                    ilasm
           Product: Mono: Compilers
           Version: unspecified
          Platform: 32bit
        OS/Version: Windows Vista
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: IL assembler
        AssignedTo: jankit at novell.com
        ReportedBy: stephen at gennard.net
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---



Stephen Gennard <stephen at gennard.net> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
               Flag|                                                |SHIP_STOPPER?


Description of Problem:

If Microsoft's ILASM is used we do not get a TypeInitializationException when
using the exe but when we do it if use Mono's ilasm.

NOTE: A resolution to this issue is important to use as we are a COBOL vendor
      looking to produce use Mono.

Steps to reproduce the problem:
1. unzip attached .zip
2. execute bld.bat


Actual Results:
d:\bug>echo -- Executing hi.exe (built with Microsoft's ILASM) 
-- Executing hi.exe (built with Microsoft's ILASM)

d:\bug>call mono hi.exe 
Hello world (from hi.cb)
Hello world (from b.cbl)
press return to finish
d:\bug>echo -- Building hi.exe, b.dll with Mono's ILASM 
-- Building hi.exe, b.dll with Mono's ILASM

d:\bug>call ilasm hi.il 
Assembling 'hi.il' , no listing file, to exe --> 'hi.exe'

Operation completed successfully

d:\bug>call ilasm /dll b.dll 
Assembling 'b.dll' , no listing file, to dll --> 'b.dll'

b.dll (1, 3) : Error : irrecoverable syntax error

***** FAILURE *****


d:\bug>call mono hi.exe 
** (hi.exe:6092): WARNING **: The class System.Collections.Generic.List`1 could 
not be loaded, used in mscorlib, Version=2.0.0.0, Culture=neutral,
PublicKeyToke
n=b77a5c561934e089                                                              

Unhandled Exception: System.TypeInitializationException: An exception was
thrown
 by the type initializer for HI ---> System.TypeLoadException: A type load
excep
tion has occurred.                                                              
  at HI..cctor () [0x00000] --- End of inner exception stack trace ---          


d:\bug>del hi.exe 

d:\bug>del b.dll 


Expected Results:
Hello world (from hi.cb)
Hello world (from b.cbl)
press return to finish


How often does this happen? 
Always

Additional Information:


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