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)

See Also:
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

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)

Note You need to log in before you can comment on or make changes to this bug.