[Mono-bugs] [Bug 522303] New: Generics problem with call to ICollection<Array> parameter with Array of Array of strings

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Jul 15 10:35:36 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=522303


           Summary: Generics problem with call to ICollection<Array>
                    parameter with Array of Array of strings
    Classification: Mono
           Product: Mono: Runtime
           Version: 2.4.x
          Platform: 32bit
        OS/Version: Windows Vista
            Status: NEW
          Severity: Critical
          Priority: P5 - None
         Component: generics
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: i-ellang at microsoft.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Created an attachment (id=305285)
 --> (http://bugzilla.novell.com/attachment.cgi?id=305285)
C# file used for compilation with gmcs

User-Agent:       Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; GTB6;
SLCC1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.5.30729; .NET CLR 3.0.30618)

calls to the following method : using Array of Array of string as the input
parameter:

 public static ICollection<int> ArrayLengths(ICollection<Array> arrayList)

cause Mono 2.4 to crash with the following error message: 
-------------------------------------------------------------------------------
System.Array.InternalEnumerator<System.String[]> doesn't implement interface
System.Collections.Generic.IEnumerator<System.Array>

** ERROR **: file mini-trampolines.c: line 42
(mono_convert_imt_slot_to_vtable_s        
lot): should not be reached
aborting...
Stacktrace:

  at TestArrayLengths.MyStringUtil.ArrayLengths
(System.Collections.Generic.ICol        
lection`1) <0xffffffff>
  at TestArrayLengths.MyStringUtil.ArrayLengths
(System.Collections.Generic.ICol        
lection`1) <0x00066>
  at TestArrayLengths.Program.Main (string[]) <0x0019c>
  at (wrapper runtime-invoke)
TestArrayLengths.Program.runtime_invoke_void_strin        
g[] (object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

        mono [0x8181fa0]
        /lib/tls/libpthread.so.0 [0x53ea90]
        /lib/tls/libc.so.6(abort+0xe9) [0x30f289]
        /usr/lib/libglib-2.0.so.0(g_log+0) [0x7b3ebe]
        /usr/lib/libglib-2.0.so.0(g_log+0x32) [0x7b3ef0]
        mono [0x8188428]
        mono [0x818890f]
        [0x111066]
        [0x1213d5]
        [0x1211c3]
        mono [0x816ec93]
        mono(mono_runtime_invoke+0x27) [0x80fc687]
        mono(mono_runtime_exec_main+0xb0) [0x8100d10]
        mono(mono_runtime_run_main+0x226) [0x8101436]
        mono(mono_main+0xa15) [0x8059785]
        mono [0x805886e]
        /lib/tls/libc.so.6(__libc_start_main+0xd3) [0x2fadf3]
        mono [0x80587b1]

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
--------------------------------------------------------------------------------

The same error message is reproduced when running Mono on Windows Vista and
RedHat Linux:
 (Linux version 2.6.9-89.ELsmp (mockbuild at hs20-bc12.build.redhat.com)          
(gcc version 3.4.6 20060404 (Red Hat 3.4.6-11))

Reproducible: Always

Steps to Reproduce:
1.gmcs TestArrays.cs
2.mono TestArrays.exe
3.
Actual Results:  
See the attached file and compile and run as shown above
There are no file dependancies.

Expected Results:  
See the above error message: 
i.e:
System.Array.InternalEnumerator<System.String[]> doesn't implement interface
System.Collections.Generic.IEnumerator<System.Array>

** ERROR **: file mini-trampolines.c: line 42
(mono_convert_imt_slot_to_vtable_s        
lot): should not be reached
aborting...

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list