Bug 307 - A function call causes a crash in the device (System.ExecutionEngineException: SIGILL) after about 10 executions
Summary: A function call causes a crash in the device (System.ExecutionEngineException...
Alias: None
Product: iOS
Classification: Xamarin
Component: XI runtime ()
Version: 4.x
Hardware: PC Mac OS
: --- major
Target Milestone: Untriaged
Assignee: Bugzilla
Depends on:
Reported: 2011-08-16 17:34 UTC by steott
Modified: 2011-08-18 10:24 UTC (History)
3 users (show)

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

Sample for reproducing the issue (11.11 KB, application/octet-stream)
2011-08-16 17:34 UTC, steott

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 steott 2011-08-16 17:34:46 UTC
Created attachment 144 [details]
Sample for reproducing the issue

I've reproduced in a sample app a strange issue that I have with a generic function.

From the sample, the generic function Execute of ServiceExecutor class is called for two types of parameters (Request1 and Request2).

If the execute method is called about 10 times for one kind of parameter (Request1) and then is called for the other type (Request2) the app crashes, raising a System.ExecutionEngineException: SIGILL (I cannot get more specific info about the problem from the exception message).

I have this problem only when I use the app in a real device (I tested on iPad 1), while it works correctly on the simulator.
In order to reproduce it, just run the app in the device and click the only button about 11-12 times, it should crash.

If I use ServiceExecutor directly, without using a IServiceExecutor interface, it works too, but I'd like to use the interface.

I'm running MonoTouch
I don't know if this issue http://bugzilla.xamarin.com/show_bug.cgi?id=60 can be caused by the same problem and if the same solution (in MT 4.1) can be applied.
Comment 1 steott 2011-08-18 05:06:35 UTC
With version 4.1 the problem seems to be solved!
Comment 2 Sebastien Pouliot 2011-08-18 10:24:42 UTC
Then it was likely the same issue. Thanks for testing and reporting this back to us!