[Mono-bugs] [Bug 687282] New: Code crashes c# compiler in MT4.0 RTM

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Apr 13 12:02:06 EDT 2011


https://bugzilla.novell.com/show_bug.cgi?id=687282

https://bugzilla.novell.com/show_bug.cgi?id=687282#c0


           Summary: Code crashes c# compiler in MT4.0 RTM
    Classification: Mono
           Product: MonoTouch
           Version: unspecified
          Platform: Macintosh
        OS/Version: Mac OS X 10.6
            Status: NEW
          Severity: Critical
          Priority: P5 - None
         Component: Tools
        AssignedTo: gnorton at novell.com
        ReportedBy: nicw at fastchicken.co.nz
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US)
AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16

When compiling an old project, the c# compiler crashes.

This projects works fine in MonoTouch 3.x.

The stack trace from the compiler is:

Building: LondonBike (Debug|iPhoneSimulator)

Building Solution LondonBike

Building: LondonBike (Debug|iPhoneSimulator)

Performing main compilation...
/Developer/MonoTouch/usr/bin/smcs /noconfig
"/out:/Users/nic/code/git/londonbikeapp/bin/iPhoneSimulator/Debug/LondonBike.exe"
"/r:/Developer/MonoTouch/usr/lib/mono/2.1/System.dll"
"/r:/Developer/MonoTouch/usr/lib/mono/2.1/System.Xml.dll"
"/r:/Developer/MonoTouch/usr/lib/mono/2.1/System.Core.dll"
"/r:/Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll"
"/r:/Developer/MonoTouch/usr/lib/mono/2.1/System.Xml.Linq.dll"
"/r:/Users/nic/code/git/monotouch.dialog/MonoTouch.Dialog/bin/iPhoneSimulator/Debug/MonoTouch.Dialog.dll"
/nologo /warn:4 /debug:+ /debug:full /optimize- /codepage:utf8
"/define:DEBUG"  /t:exe
"/Users/nic/code/git/londonbikeapp/MainWindow.xib.designer.cs"
"/Users/nic/code/git/londonbikeapp/Main.cs"
"/Users/nic/code/git/londonbikeapp/Resources.cs"
"/Users/nic/code/git/londonbikeapp/BikeLocation.cs"
"/Users/nic/code/git/londonbikeapp/NearDialogViewController.cs"
"/Users/nic/code/git/londonbikeapp/MapViewController.cs"
"/Users/nic/code/git/londonbikeapp/TimerViewController.xib.cs"
"/Users/nic/code/git/londonbikeapp/TimerViewController.xib.designer.cs"
"/Users/nic/code/git/londonbikeapp/MapRouting.cs"
"/Users/nic/code/git/londonbikeapp/CSRouteAnnotation.cs"
"/Users/nic/code/git/londonbikeapp/CSRouteView.cs"
"/Users/nic/code/git/londonbikeapp/LoadingView.cs"
"/Users/nic/code/git/londonbikeapp/Util.cs"
"/Users/nic/code/git/londonbikeapp/DistanceView.xib.cs"
"/Users/nic/code/git/londonbikeapp/DistanceView.xib.designer.cs"
"/Users/nic/code/git/londonbikeapp/TempBikeLocation.cs"
"/Users/nic/code/git/londonbikeapp/Reachability.cs"
"/Users/nic/code/git/londonbikeapp/Appirator.cs"
"/Users/nic/code/git/londonbikeapp/CompassView.xib.cs"
"/Users/nic/code/git/londonbikeapp/CompassView.xib.designer.cs"
"/Users/nic/code/git/londonbikeapp/InfoViewController.cs"
"/Users/nic/code/git/londonbikeapp/TripLogViewController.cs"
"/Users/nic/code/git/londonbikeapp/Elements.cs"
"/Users/nic/code/git/londonbikeapp/TripLog.cs"
"/Users/nic/code/git/londonbikeapp/TripLogDetailViewController.xib.cs"
"/Users/nic/code/git/londonbikeapp/TripLogDetailViewController.xib.designer.cs"
"/Users/nic/code/git/londonbikeapp/Locations.cs"
"/Users/nic/code/git/londonbikeapp/TflTripLog.cs"
"/Users/nic/code/git/londonbikeapp/HttpUtility.cs"
"/Users/nic/code/git/londonbikeapp/TFLLoginViewController.cs"
Internal compiler error at
/Users/nic/code/git/londonbikeapp/MapViewController.cs(136,78)::
exception caught while emitting MethodBuilder
[<MapViewController>c__AnonStorey3::<>m__1C]

/Users/nic/code/git/londonbikeapp/TripLogDetailViewController.xib.cs(9,1):
warning CS0105: The using directive for `System.Collections.Generic'
appeared previously in this namespace
/Users/nic/code/git/londonbikeapp/TripLogDetailViewController.xib.cs(3,26):
(Location of the symbol related to previous warning)
/Users/nic/code/git/londonbikeapp/Elements.cs(20,49): warning CS0108:
`LondonBike.DetailStringElement.Accessory' hides inherited member
`MonoTouch.Dialog.StringElement.Accessory'. Use the new keyword if
hiding was intended
/Users/nic/code/git/monotouch.dialog/MonoTouch.Dialog/bin/iPhoneSimulator/Debug/MonoTouch.Dialog.dll
(Location of the symbol related to previous warning)
/Users/nic/code/git/londonbikeapp/Main.cs(75,29): warning CS0219: The
variable `bikes' is assigned but its value is never used
/Users/nic/code/git/londonbikeapp/BikeLocation.cs(349,29): warning
CS0219: The variable `i' is assigned but its value is never used
/Users/nic/code/git/londonbikeapp/BikeLocation.cs(418,32): warning
CS0219: The variable `dLat' is assigned but its value is never used
- Show quoted text -
/Users/nic/code/git/londonbikeapp/TripLogDetailViewController.xib.cs(9,1):
warning CS0105: The using directive for `System.Collections.Generic'
appeared previously in this namespace
/Users/nic/code/git/londonbikeapp/TripLogDetailViewController.xib.cs(3,26):
(Location of the symbol related to previous warning)
/Users/nic/code/git/londonbikeapp/Elements.cs(20,49): warning CS0108:
`LondonBike.DetailStringElement.Accessory' hides inherited member
`MonoTouch.Dialog.StringElement.Accessory'. Use the new keyword if
hiding was intended
/Users/nic/code/git/monotouch.dialog/MonoTouch.Dialog/bin/iPhoneSimulator/Debug/MonoTouch.Dialog.dll
(Location of the symbol related to previous warning)
/Users/nic/code/git/londonbikeapp/Main.cs(75,29): warning CS0219: The
variable `bikes' is assigned but its value is never used
/Users/nic/code/git/londonbikeapp/BikeLocation.cs(349,29): warning
CS0219: The variable `i' is assigned but its value is never used
/Users/nic/code/git/londonbikeapp/BikeLocation.cs(418,32): warning
CS0219: The variable `dLat' is assigned but its value is never used
- Show quoted text -
Build complete -- 1 error, 5 warnings

---------------------- Done ----------------------

Build: 1 error, 5 warnings


The line (136,78) in MapViewController

ThreadPool.QueueUserWorkItem(delegate { <<------ 136. col 78 doesn't exist....?
  using (NSAutoreleasePool newPool = new NSAutoreleasePool())
  {
    location = mapView.UserLocation.Location.Coordinate;
//#if DEBUG
    //location = Locations.Home;
//#endif

    MapRouting routing = new MapRouting(location, ca.Coordinate);


I've tried compiling for all the platforms (sim/device, debug/release), no joy.

If you want the full project, yell out and I'll put it somewhere for you.
(nic.wise at the google thing)


Running:

MD 2.6 beta
Mono 2.10

#mono --version
Mono JIT compiler version 2.10.1 (tarball Fri Feb 25 15:56:49 MST 2011)
Copyright (C) 2002-2011 Novell, Inc and Contributors. www.mono-project.com
        TLS:           normal
        SIGSEGV:       normal
        Notification:  Thread + polling
        Architecture:  x86
        Disabled:      none
        Misc:          debugger softdebug
        LLVM:          yes(2.9svn-mono)
        GC:            Included Boehm (with typed GC)




MonoTouch 4.0 (or 3.whatever.the.last.one.was)
XCode/SDK 4.0.1

Reproducible: Always

Steps to Reproduce:
Open my code
Compile the project (build, clean, etc)
boom.


Expected Results:  
A not crashing compiler.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list