Bug 11502 - Crash when locking method
Summary: Crash when locking method
Alias: None
Product: Compilers
Classification: Mono
Component: C# ()
Version: unspecified
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Marek Safar
Depends on:
Reported: 2013-04-01 11:29 UTC by Chris Hamons
Modified: 2013-04-02 03:50 UTC (History)
1 user (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 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.

Related Links:

Description Chris Hamons 2013-04-01 11:29:30 UTC
The following code crashes

	class MainClass
		public static void Main (string[] args)
			lock (Bar.Buzz) 
				Console.WriteLine ("Hello World!");

	class Bar
		internal void Buzz()

Xamarin Studio
Version 4.0.1 (build 9)
Installation UUID: e54973d4-38e2-48c4-91a9-5263d3f70f42
	Mono 2.10.11 (mono-2-10/2baeee2)
	GTK 2.24.14
	GTK# (
	Package version: 210110000

Apple Developer Tools
Xcode 4.3.2 (1177)
Build 4E2002

Xamarin.Mac: 1.0.11

Not Installed

Version: (Starter Edition)

Build Information
Git revision: Release ID: 400010009
Build date: 2013-03-05 17:24:34+0000
Xamarin addins: 181e75e43f263f1c0783b9f7e32234cac6850998

Operating System
Mac OS X 10.7.5
Darwin nextgenmac1.amer.corp.natinst.com 11.4.2 Darwin Kernel Version 11.4.2
    Thu Aug 23 16:25:48 PDT 2012
    root:xnu-1699.32.7~1/RELEASE_X86_64 x86_64
Comment 1 Marek Safar 2013-04-02 03:50:14 UTC
Already fixed in mono 3.0