Bug 10880 - Wrong System.IndexOutOfRangeException thrown for multi arry access
Summary: Wrong System.IndexOutOfRangeException thrown for multi arry access
Status: RESOLVED FIXED
Alias: None
Product: Runtime
Classification: Mono
Component: Verifier ()
Version: unspecified
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2013-03-04 10:51 UTC by xamarin.20.Dodak4Gi
Modified: 2013-03-09 09:33 UTC (History)
4 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Minimum example to reproduce this bug (853 bytes, text/x-csharp)
2013-03-04 10:51 UTC, xamarin.20.Dodak4Gi
Details


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:
Status:
RESOLVED FIXED

Description xamarin.20.Dodak4Gi 2013-03-04 10:51:25 UTC
Created attachment 3531 [details]
Minimum example to reproduce this bug

I've attached a minimum example.

The wrong Exception gets thrown in the line:
int dummy = multiArray[0, (j+4)];

When commenting this line out and using the semantically equivalent code:
int v=j+4;
int dummy = multiArray[0, v];

No exception gets thrown anymore.
Comment 1 Zoltan Varga 2013-03-08 07:21:55 UTC
Whats the output of mono --version ?
Comment 2 xamarin.20.Dodak4Gi 2013-03-09 02:54:20 UTC
The output of mono version:

$ mono --version
Mono JIT compiler version 2.10.8.1 (Debian 2.10.8.1-5ubuntu1)
Copyright (C) 2002-2011 Novell, Inc, Xamarin, Inc and Contributors. www.mono-project.com
	TLS:           __thread
	SIGSEGV:       altstack
	Notifications: epoll
	Architecture:  amd64
	Disabled:      none
	Misc:          softdebug 
	LLVM:          supported, not enabled.
	GC:            Included Boehm (with typed GC and Parallel Mark)






(It's the version of the default repositories of Linux Mint 14 x64)
Comment 3 Zoltan Varga 2013-03-09 09:33:31 UTC
I think this was already fixed in recent 2.10 releases by 117a60e03d2ff14dab4fd73fec1191c717513476.