Bug 22907 - An emitted call via method extracted from lambda fails in IL
Summary: An emitted call via method extracted from lambda fails in IL
Alias: None
Product: Class Libraries
Classification: Mono
Component: mscorlib ()
Version: master
Hardware: PC Linux
: --- normal
Target Milestone: Untriaged
Assignee: Marek Safar
Depends on:
Reported: 2014-09-12 05:09 UTC by Konrad Kruczyński
Modified: 2014-09-15 12:37 UTC (History)
5 users (show)

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

Program that shows the problem (755 bytes, application/octet-stream)
2014-09-12 05:09 UTC, Konrad Kruczyński

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 on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Konrad Kruczyński 2014-09-12 05:09:29 UTC
Created attachment 8016 [details]
Program that shows the problem

Description of Problem:

Steps to reproduce the problem:
1. Compile and run attached program

Actual Results:
Invalid IL code in (wrapper dynamic-method) Test829.MainClass:Metoda (): IL_0001: call      0x00000001

Expected Results:
7 printed by program.

How often does this happen? 

Additional Information:
Mono JIT compiler version 3.10.1 (master/ebe2a3d śro, 10 wrz 2014, 12:33:15 CEST)
Works fine on Microsoft .NET 4.5 (and used to work on mono as well).
Comment 1 Marek Safar 2014-09-15 12:37:11 UTC
Fixed in master