Bug 58132 - [llvm/bitcode] Crash in mono_class_has_failure (class.c:9850)
Summary: [llvm/bitcode] Crash in mono_class_has_failure (class.c:9850)
Status: ASSIGNED
Alias: None
Product: iOS
Classification: Xamarin
Component: Mono runtime / AOT compiler (show other bugs)
Version: XI 10.14 (d15-4)
Hardware: PC Mac OS
: --- normal
Target Milestone: 15.6
Assignee: Zoltan Varga
URL:
Depends on:
Blocks:
 
Reported: 2017-07-13 09:50 UTC by Rolf Bjarne Kvinge [MSFT]
Modified: 2017-09-28 18:43 UTC (History)
2 users (show)

See Also:
Tags:
Is this bug a regression?: Yes
Last known good build: It worked this spring (maybe 15.1, not sure)


Attachments
crash report (52.50 KB, text/plain)
2017-07-13 09:50 UTC, Rolf Bjarne Kvinge [MSFT]
Details
Smaller test case (90.17 KB, application/zip)
2017-07-14 15:16 UTC, Rolf Bjarne Kvinge [MSFT]
Details

Description Rolf Bjarne Kvinge [MSFT] 2017-07-13 09:50:53 UTC
Created attachment 23525 [details]
crash report

Repro:

* Build xamarin-macios/d15-4 locally
* Open tests/monotouch-test-watchos.sln
* Select monotouch-test-watchos-app as the startup project.
* Select the Release|iPhone configuration and a watch as the device.
* Run
* Tap "Run tests" when the app shows up (10-15 minutes later) on the watch.

Result:

* App crashes. See attached crash report

Application output: https://gist.github.com/rolfbjarne/3b2d882ca54c6cc46b83260ed394126c
lldb session: https://gist.github.com/rolfbjarne/68183fa6f45ab99122aeb7b6232dca78
Comment 1 Zoltan Varga 2017-07-13 11:43:36 UTC
Is this a regression ?
Comment 2 Rolf Bjarne Kvinge [MSFT] 2017-07-13 11:46:15 UTC
Yes, monotouchtest ran successfully earlier this year (around February I think).
Comment 3 Rolf Bjarne Kvinge [MSFT] 2017-07-14 15:16:40 UTC
Created attachment 23568 [details]
Smaller test case

I'm attaching a smaller test case.

Run the monotouch-test-watchos-app project on a watchOS device in release mode.

This is the output in the application output:

DownloadDataAsync a
DownloadDataAsync v
DownloadDataAsync f
DownloadDataAsync ii
Xamarin.Hosting: Process '425' exited.

The last part is because the process crashed.

The executed code is in monotouch-test-watchos-extension/InterfaceController.cs:

		public void DownloadDataAsync ()
		{
			Console.WriteLine ("DownloadDataAsync a");

			NSTimer.CreateScheduledTimer (0.01, async (v) => {
				Console.WriteLine ("DownloadDataAsync f");
				var tcs = new System.Threading.Tasks.TaskCompletionSource<bool> ();
				Console.WriteLine ("DownloadDataAsync ii");
				await tcs.Task;
				Console.WriteLine ("DownloadDataAsync j");
			});

			Console.WriteLine ("DownloadDataAsync v");
		}

but it's not only related to this code (I've added this code to a different watchOS project, and it works fine).
Comment 4 Chris Hardy [MSFT] 2017-09-11 15:35:45 UTC
Moving out to 15.5
Comment 5 Chris Hardy [MSFT] 2017-09-28 17:57:52 UTC
Moving out to 15.6 too as this is a late Mono change to bring in if this was fixed

Note You need to log in before you can comment on or make changes to this bug.