Bug 32500 - InvalidProgramException
Summary: InvalidProgramException
Status: NEW
Alias: None
Product: Runtime
Classification: Mono
Component: Verifier ()
Version: 4.0.0
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2015-07-27 16:24 UTC by jan_007
Modified: 2015-08-03 16:51 UTC (History)
3 users (show)

Is this bug a regression?: ---
Last known good build:

Test case (1.19 KB, text/plain)
2015-07-27 16:24 UTC, jan_007

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report for Bug 32500 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description jan_007 2015-07-27 16:24:52 UTC
Created attachment 12243 [details]
Test case

Mono setup
TLS:           normal
SIGSEGV:       normal
Notification:  Thread + polling
Architecture:  x86
Disabled:      none
Misc:          softdebug
LLVM:          supported, not enabled.
GC:            sgen

When creating a DynamicMethod with the following IL code I get an InvalidProgramException in mono but not on the .NET framework. This might have something to do with the skipVerify on the DynamicMethod constructor.
starg_s 2

The signature for this method is "static void (int* a, int b, int* c)"
I have included a small sample file indicating the bug.
Comment 1 Zoltan Varga 2015-08-03 16:51:07 UTC
I can reproduce this using mono 4.0, but not using mono master or the mono 4.2 branch.