[Mono-dev] How do I avoid these assertions?

2014-09-05 Thread mono user
Could somebody please tell me what might be triggering the assertions
below? They happen when I generate my own IL. While the same IL works fine
under .net, it could still be that I am doing something wrong because .net
tends to be more forgiving than the spec requires.

* Assertion at mini.c:4175, condition `code' not met

* Assertion at mini.c:4656, condition `cfg-code_size - cfg-epilog_begin 
0x' not met

On a related note, how do I run peverify please? I always seem to get the
following. The code runs fine (which seems to suggest the libraries are
available, which in turn seems to be the main reason for why it doesn't
work for others who ask about it in places Google can see). I think the
assertions might just go away if I fix whatever is reported by peverify.
Having said that, the .net version of peverify says everything is fine.

peverify /CLOCK /VERBOSE tmp.exe
Could not load class with token 202
* Assertion at class.c:5600, condition `!mono_loader_get_last_error ()' not
met

Many thanks.
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] How do I avoid these assertions?

2014-09-05 Thread Zoltan Varga
Hi,

  The mini.c:4656 assertion is a runtime bug, it happens when a method
becomes too large.

 Zoltan


On Fri, Sep 5, 2014 at 1:40 PM, mono user mono.user...@gmail.com wrote:

 Could somebody please tell me what might be triggering the assertions
 below? They happen when I generate my own IL. While the same IL works fine
 under .net, it could still be that I am doing something wrong because .net
 tends to be more forgiving than the spec requires.

 * Assertion at mini.c:4175, condition `code' not met

 * Assertion at mini.c:4656, condition `cfg-code_size - cfg-epilog_begin
  0x' not met

 On a related note, how do I run peverify please? I always seem to get the
 following. The code runs fine (which seems to suggest the libraries are
 available, which in turn seems to be the main reason for why it doesn't
 work for others who ask about it in places Google can see). I think the
 assertions might just go away if I fix whatever is reported by peverify.
 Having said that, the .net version of peverify says everything is fine.

 peverify /CLOCK /VERBOSE tmp.exe
 Could not load class with token 202
 * Assertion at class.c:5600, condition `!mono_loader_get_last_error ()'
 not met

 Many thanks.

 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list


___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list