[Mono-bugs] [Bug 668026] New: [regression] Compiler crashes, giving "Unhandled Exception: System.ArgumentOutOfRangeException: Cannot be negative."
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Fri Jan 28 13:02:00 EST 2011
https://bugzilla.novell.com/show_bug.cgi?id=668026
https://bugzilla.novell.com/show_bug.cgi?id=668026#c0
Summary: [regression] Compiler crashes, giving "Unhandled
Exception: System.ArgumentOutOfRangeException: Cannot
be negative."
Classification: Mono
Product: Mono: Compilers
Version: 2.8.x
Platform: Macintosh
OS/Version: Mac OS X 10.6
Status: NEW
Severity: Critical
Priority: P5 - None
Component: C#
AssignedTo: msafar at novell.com
ReportedBy: jeffcraighead at gmail.com
QAContact: mono-bugs at lists.ximian.com
Found By: Customer
Blocker: ---
Created an attachment (id=411051)
--> (http://bugzilla.novell.com/attachment.cgi?id=411051)
This is the project that causes the crash described in the report.
Description of Problem:
When compiling the attached project (which compiled fine in 2.6.4 and 2.6.7)
the compiler crashes with the output below. This is on OSX 10.6.6 with Mono
2.8.2_1.
Steps to reproduce the problem:
1. Unzip the attached project
2. Compile (I was using Mono Develop 2.4.2)
Actual Results:
Building: Ubisense.NamingRestService (Release|x86)
Performing main compilation...
/Library/Frameworks/Mono.framework/Versions/2.8.2/bin/gmcs /noconfig
"/out:/Users/craighea/Dropbox/Ubisense/Ubisense.NamingRestService/Ubisense.NamingRestService/bin/Release/Ubisense.NamingRestService.exe"
"/r:/Library/Frameworks/Mono.framework/Versions/2.8.2/lib/mono/2.0/System.dll"
"/r:/Library/Frameworks/Mono.framework/Versions/2.8.2/lib/mono/2.0/System.ServiceModel.Web.dll"
"/r:/Library/Frameworks/Mono.framework/Versions/2.8.2/lib/mono/2.0/System.ServiceModel.dll"
"/r:/Users/craighea/Dropbox/Ubisense/Ubisense.NamingRestService/UbisenseLocationEngine.dll"
"/r:/Users/craighea/Dropbox/Ubisense/Ubisense.NamingRestService/UbisenseLocationServices.dll"
"/r:/Users/craighea/Dropbox/Ubisense/Ubisense.NamingRestService/UbisensePlatform.dll"
/nologo /warn:4 /optimize- /codepage:utf8 /platform:x86
/main:Ubisense.NamingRestService.MainClass /t:exe
"/Users/craighea/Dropbox/Ubisense/Ubisense.NamingRestService/Ubisense.NamingRestService/Main.cs"
"/Users/craighea/Dropbox/Ubisense/Ubisense.NamingRestService/Ubisense.NamingRestService/Schemas.cs"
"/Users/craighea/Dropbox/Ubisense/Ubisense.NamingRestService/Ubisense.NamingRestService/INamingService.cs"
"/Users/craighea/Dropbox/Ubisense/Ubisense.NamingRestService/Ubisense.NamingRestService/NamingService.cs"
"/Users/craighea/Dropbox/Ubisense/Ubisense.NamingRestService/Ubisense.NamingRestService/Location.cs"
"/Users/craighea/Dropbox/Ubisense/Ubisense.NamingRestService/Ubisense.NamingRestService/Area.cs"
"/Users/craighea/Dropbox/Ubisense/Ubisense.NamingRestService/Ubisense.NamingRestService/Point.cs"
"/Users/craighea/Dropbox/Ubisense/Ubisense.NamingRestService/Ubisense.NamingRestService/Wall.cs"
"/Users/craighea/Dropbox/Ubisense/Ubisense.NamingRestService/Ubisense.NamingRestService/Room.cs"
Unhandled Exception: System.ArgumentOutOfRangeException: Cannot be negative.
Parameter name: length
at System.String.Substring (Int32 startIndex, Int32 length) [0x00000] in
<filename unknown>:0
at Mono.CSharp.ImportedTypeDefinition.get_Name () [0x00000] in <filename
unknown>:0
at Mono.CSharp.MemberSpec.get_Name () [0x00000] in <filename unknown>:0
at Mono.CSharp.Namespace.AddType (Mono.CSharp.TypeSpec ts) [0x00000] in
<filename unknown>:0
at Mono.CSharp.ReflectionMetaImporter.ImportAssembly
(System.Reflection.Assembly assembly, Mono.CSharp.Namespace targetNamespace)
[0x00000] in <filename unknown>:0
at Mono.CSharp.RootNamespace.ImportTypes (Mono.CSharp.CompilerContext ctx)
[0x00000] in <filename unknown>:0
at Mono.CSharp.GlobalRootNamespace.ComputeNamespaces
(Mono.CSharp.CompilerContext ctx) [0x00000] in <filename unknown>:0
at Mono.CSharp.Driver.LoadReferences () [0x00000] in <filename unknown>:0
at Mono.CSharp.Driver.Compile () [0x00000] in <filename unknown>:0
at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in <filename
unknown>:0
Unhandled Exception: System.ArgumentOutOfRangeException: Cannot be negative.
Parameter name: length
at System.String.Substring (Int32 startIndex, Int32 length) [0x00000] in
<filename unknown>:0
at Mono.CSharp.ImportedTypeDefinition.get_Name () [0x00000] in <filename
unknown>:0
at Mono.CSharp.MemberSpec.get_Name () [0x00000] in <filename unknown>:0
at Mono.CSharp.Namespace.AddType (Mono.CSharp.TypeSpec ts) [0x00000] in
<filename unknown>:0
at Mono.CSharp.ReflectionMetaImporter.ImportAssembly
(System.Reflection.Assembly assembly, Mono.CSharp.Namespace targetNamespace)
[0x00000] in <filename unknown>:0
at Mono.CSharp.RootNamespace.ImportTypes (Mono.CSharp.CompilerContext ctx)
[0x00000] in <filename unknown>:0
at Mono.CSharp.GlobalRootNamespace.ComputeNamespaces
(Mono.CSharp.CompilerContext ctx) [0x00000] in <filename unknown>:0
at Mono.CSharp.Driver.LoadReferences () [0x00000] in <filename unknown>:0
at Mono.CSharp.Driver.Compile () [0x00000] in <filename unknown>:0
at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in <filename
unknown>:0
Build complete -- 1 error, 0 warnings
---------------------- Done ----------------------
Expected Results:
Compile without error.
How often does this happen?
Every time.
Additional Information:
--
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