Bug 13058 - Invalid IL code stloc.1 using pointer to UInt64
Summary: Invalid IL code stloc.1 using pointer to UInt64
Alias: None
Product: iOS
Classification: Xamarin
Component: XI runtime ()
Version: 6.9.3.x
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Marek Safar
Depends on:
Reported: 2013-07-04 16:22 UTC by Ivo Smits
Modified: 2013-12-05 18:36 UTC (History)
2 users (show)

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

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 Developer Community or GitHub 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 Ivo Smits 2013-07-04 16:22:21 UTC
The following code results in a JIT exception while debugging:
  using System;
  class Program {
    static void Main() {
    unsafe static void Test() {
      UInt64* invp = stackalloc UInt64[2];
      invp[0] = invp[1] = 0;

System.InvalidProgramException: Invalid IL code in Test1.Application:Test (): IL_000d: stloc.1

The problem seems to be caused by the specific line "invp[0] = invp[1] = 0;", other variations of the same operation seem to work fine.
Comment 1 Sebastien Pouliot 2013-07-15 17:05:56 UTC
This works for me but it's likely related to the compiler being used. In 6.3+ the compiler comes from the system mono so we'll need to know all the versions informations you have.

The easiest way to get exact version information is to use the "Xamarin Studio" menu, "About Xamarin Studio" item, "Show Details" button and copy/paste the version informations (you can use the "Copy Information" button).
Comment 2 PJ 2013-11-19 17:06:05 UTC
This bug has been in the NEEDINFO state with no changes for the last 90 days. Can we put this back into the NEW or CONFIRMED state, or are we still awaiting response?

If there is no change in the status of this bug over the next two weeks, this bug will be marked as NORESPONSE.
Comment 3 PJ 2013-12-05 18:36:34 UTC
This bug has not been changed from the NEEDINFO state since my previous comment, marking as RESOLVED NORESPONSE.

Please feel free to REOPEN this bug at any time if you are still experiencing the issue. Please add the requested information and set the bug back to the NEW (or CONFIRMED) state.