Bug 44170 - SIGABRT Int64[][][] doesn't implement ICollection<IList<IList<Int64>>>
Summary: SIGABRT Int64[][][] doesn't implement ICollection<IList<IList<Int64>>>
Status: NEW
Alias: None
Product: Runtime
Classification: Mono
Component: General (show other bugs)
Version: 4.4.1 (C7SR0)
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-09-11 06:42 UTC by horahoraboom
Modified: 2017-08-28 15:02 UTC (History)
2 users (show)

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


Attachments
test case (434 bytes, text/x-csharp)
2016-09-11 06:42 UTC, horahoraboom
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 for Bug 44170 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
NEW

Description horahoraboom 2016-09-11 06:42:32 UTC
Created attachment 17409 [details]
test case

The runtime has problems with generics at a depth of 3. Int64[][] seems to be working just fine. See the test case attached.

I'm running Mono 4.4.1 (Nightly 4.4.1.0/4747417 Thu Jul 14 18:06:32 UTC 2016) on Arch Linux (up-to-date).

When compiled with csc/msc and ran against Microsoft .Net, the test case produces "foo\nbar". (expected behavior)
When compiled with csc/msc and ran against Mono, the test case produces "foo" and then crashes with SIGABRT:

  foo
  System.Int64[][][] doesn't implement interface System.Collections.Generic.ICollection<System.Collections.Generic.IList<System.Collections.Generic.IList<System.Int64>>>

  Stacktrace:

    at <unknown> <0xffffffff>
    at Program.Program.Main (string[]) <0x00081>
    at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object (object,intptr,intptr,intptr) <0x000c8>

  Native stacktrace:

    mono() [0x4acddf]
    /usr/lib/libpthread.so.0(+0x11080) [0x7fa4b6377080]
    /usr/lib/libc.so.6(gsignal+0xcf) [0x7fa4b5de404f]
    /usr/lib/libc.so.6(abort+0x16a) [0x7fa4b5de547a]
    mono() [0x64ff99]
    mono() [0x65022c]
    mono() [0x6502ff]
    mono() [0x4ae077]
    mono() [0x4ae4ad]
    mono() [0x4aee40]
    [0x40f3d589]

  Debug info from gdb:


  =================================================================
  Got a SIGABRT while executing native code. This usually indicates
  a fatal error in the mono runtime or one of the native libraries 
  used by your application.
  =================================================================

  Aborted (core dumped)