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

mono user mono.user789 at gmail.com
Fri Sep 5 17:40:18 UTC 2014

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 <
0xffff' 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 2000002
* Assertion at class.c:5600, condition `!mono_loader_get_last_error ()' not

Many thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20140905/0aa772fe/attachment.html>

More information about the Mono-devel-list mailing list