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 18990 [details]
Source code that triggers the bug
I've got a Blake2 hash implementation where the compression method is unrolled. That method spans about 1300 lines.
Running this on a freshly-installed Debian 8 with Mono 184.108.40.206 crashes, presumably when Mono tries to JIT the compression method. A class that compiles with mcs and triggers that bug is attached.
This issue was already reported as https://bugzilla.xamarin.com/show_bug.cgi?id=22150 but wrongly categorized and then abandoned.
upserver@debian:~$ mono Blake2.exe
* Assertion at method-to-ir.c:14949, condition `lvregs_len < 1024' not met
at <unknown> <0xffffffff>
at domi1819.UpCore.Crypto.Blake2.Hash (byte,byte,byte) <0x0029b>
at domi1819.UpCore.Crypto.Blake2.Main () <0x0002b>
at (wrapper runtime-invoke) object.runtime_invoke_void (object,intptr,intptr,intptr) <0x000ba>
Debug info from gdb:
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
Fixed by mono master bf1862930b890472e6f93df4ad7e08f1d7620191.