Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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.
Created attachment 2138 [details]
Test case for the issue, using CompileAssemblyFromSource. (Bug originally found with CompileAssemblyFromFile)
Description of Problem:
The CSharpCodeProvider shipped with Mono 2.11.2 currently freezes for unknown reasons upon parsing a specific struct.
Steps to reproduce the problem:
1. Run the attached test case.
Compiler freezes and leaves the user having to shut down the program.
Compiler produces the assembly as expected.
How often does this happen?
Test case was produced after the test having been discovered in a embedded mono build.
It's worth mentioning that we are having another issue with JIT compiled scripts (using CSharpCodeProvider.CompileAssemblyFromFile) where we can only contain 21 events in the generated assembly, any more will lead to the application freezing at compilation.
I cannot reproduce it using mono 2.11.3 or master
I'll try and get this reproduced in a sample embed project (minimal) when I can.
I have created a embedded sample which JIT compiles the test case I provided here. This results in the same compiler freezing issue.
The sample can be found here: https://github.com/inkdev/Embedded-Mono-Sample
I have updated the sample mentioned above with improved tests, along with the latest Mono dev build. (2.11.3)
Has anyone looked into this yet?
Reopening, I did not see that we had a sample test case.
I can reproduce this somewhat on windows using mono 2.10.8 using the attached testcase. It has nothing to do with embedding.
Go to 'tmp' and run:
Created attachment 2544 [details]
This works fine on osx. Also, commenting out the
compilerParameters.GenerateInMemory = true;
line makes this work on windows too.
I cannot reproduce this here on Windows.
Mono JIT compiler version 3.0.3 (master/39c48d5)
Filip, can you still reproduce this with a recent version of Mono?
This works fine with the mono 2.12 packages.