[Mono-bugs] [Bug 517166] New: Generics sharing causes application to crash

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Jun 28 09:30:00 EDT 2009


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


           Summary: Generics sharing causes application to crash
    Classification: Mono
           Product: Mono: Runtime
           Version: 2.4.x
          Platform: x86-64
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: generics
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: robertj at gmx.net
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.11)
Gecko/2009060215 Firefox/3.0.11 (.NET CLR 3.5.30729)

Bug title: Generics sharing causes application to crash

Mono version: 2.4 (Debian 2.4+dfsg-2~ppa~jaunty)
Operating system: Ubuntu 9.04 (Jaunty Jackalope)

Steps to reproduce:
1. Download http://selene.ntlabs.org/Selene-0.1_RC1.tar.gz
2. Extract the archive and cd into the folder
3. Build it with monodevelop or "mdtool build"

4. Run it with "mono Selene.Testing/bin/Debug/Selene.Testing.exe"
5. Click the button with the "+" on it
6. Crash stacktrace similar to http://pastebin.com/m740a459d

7. Run it with "MONO_GENERIC_SHARING=none
Selene.Testing/bin/Debug/Selene.Testing.exe"
8. Click the button with the "+" on it again
9. Dialog like http://selene.ntlabs.org/images/screenshots/listview_gtk_add.png

I understand the provided code can take some time to grasp, so here's an
outline:
 -We start off with NotebookDialog<Container> with base DisplayBase<Gtk.Widget,
Container> 
 -It inspects the Container class reflection-wise
 -It finds a array of type Enclosed[] and inspects that too
 -It constructs a Gtk listview to display the Enclosed values
 -It creates a NotebookDialog<object> to allow editing/adding values
 -The application crashes on Dialog.Run in ListViewerBase.cs:AddRow()

Might this have something to do with a class of type A<T> indirectly containing 
a type of A<object> ?

Note that:
 -In the stacktrace, the call to NotebookDialog<Container>.Run is displayed
  as a call to NotebookDialog<object>.Run (line 24)

More information about Selene and her purpose can be found at
    http://selene.ntlabs.org


Reproducible: Always

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