[Mono-bugs] [Bug 581959] New: Runtime crash when calling CompareTo on 2D array index
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Feb 22 15:55:29 EST 2010
http://bugzilla.novell.com/show_bug.cgi?id=581959
http://bugzilla.novell.com/show_bug.cgi?id=581959#c0
Summary: Runtime crash when calling CompareTo on 2D array index
Classification: Mono
Product: Mono: Runtime
Version: 2.6.x
Platform: PC
OS/Version: Windows 7
Status: NEW
Severity: Normal
Priority: P5 - None
Component: JIT
AssignedTo: lupus at novell.com
ReportedBy: aChrisSmith at gmail.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
Description of Problem:
Calling 'Int32.CompareTo' on an index of a 2D array results in a runtime crash
in Mono.
Steps to reproduce the problem:
1. Download and install the latest F# CTP at:
http://www.microsoft.com/downloads/details.aspx?FamilyID=ba52e650-4e77-4b0b-b987-9f9ecd3bab3b&displaylang=en
2. Run the F# Interactive window (mono fsi.exe)
3. Enter the following code:
let s = [1 .. 2]
let q = [s; s; s]
let a = array2D q;;
a.[1,1].CompareTo(3) ;;
Actual Results:
Crash.
> a.[1, 1].CompareTo(3);;
MonoArrayMethod
**
ERROR:reflection.c:11288:resolve_object: code should not be reached
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
Expected Results:
It just works.
How often does this happen?
Every time.
Additional Information:
The F# Interactive window uses Reflection.Emit to compile code and then execute
it. When compiled using fsc.exe, this code works as expected.
Note that other 2D array bugs have been recently fixed in Mono's trunk, which I
wasn't able to validate the bug against. So this might have already been fixed.
--
Configure bugmail: http://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