[Bug 495112] New: Can't compile cyclic structs with mono-2.4
http://bugzilla.novell.com/show_bug.cgi?id=495112 Summary: Can't compile cyclic structs with mono-2.4 Classification: openSUSE Product: openSUSE 11.2 Version: Factory Platform: All OS/Version: SuSE Other Status: NEW Severity: Critical Priority: P5 - None Component: Mono AssignedTo: bnc-team-mono@forge.provo.novell.com ReportedBy: pmladek@novell.com QAContact: qa@suse.de Found By: Development Created an attachment (id=285848) --> (http://bugzilla.novell.com/attachment.cgi?id=285848) test file I am unable to compile the following code with mono-2.4: --- cut --- public unsafe struct A { public B * pB; } public unsafe struct B { public A * pA; } --- cut --- It fails with the following error: --- cut --- $> /usr/bin/mcs -unsafe -target:library test-cyclic-structs.cs Stack overflow in unmanaged: IP: 0x811db39, fault addr: 0xbf71bff0 Unhandled Exception: Mono.CSharp.InternalErrorException: test-cyclic-structs.cs(6,22): B ---> System.StackOverflowException: The requested operation caused a stack overflow. at (wrapper managed-to-native) System.Type:type_is_subtype_of (System.Type,System.Type,bool) at System.Type.IsSubclassOf (System.Type c) [0x00000] at System.Reflection.Emit.TypeBuilder.IsSubclassOf (System.Type c) [0x00000] at System.Type.get_IsEnum () [0x00000] at System.Reflection.Emit.TypeBuilder.get_UnderlyingSystemType () [0x00000] at System.Type.Equals (System.Type o) [0x00000] at Mono.CSharp.TypeManager.IsEqual (System.Type a, System.Type b) [0x00000] at Mono.CSharp.Struct.IsUnmanagedType () [0x00000] at Mono.CSharp.TypeManager.IsUnmanagedType (System.Type t) [0x00000] at Mono.CSharp.Struct.IsUnmanagedType () [0x00000] at Mono.CSharp.TypeManager.IsUnmanagedType (System.Type t) [0x00000] at Mono.CSharp.Struct.IsUnmanagedType () [0x00000] at Mono.CSharp.TypeManager.IsUnmanagedType (System.Type t) [0x00000] [...] at Mono.CSharp.Struct.IsUnmanagedType () [0x00000] at Mono.CSharp.TypeManager.IsUnmanagedType (System.Type t) [0x00000] --- End of inner exception stack trace --- at Mono.CSharp.RootContext.PopulateTypes () [0x00000] at Mono.CSharp.Driver.Compile () [0x00000] at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] --- cut --- It breaks compilation of the mono stuff in OpenOffice_org in openSUSE-Factory. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=495112 User coolo@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=495112#c1 Stephan Kulow <coolo@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P1 - Urgent CC| |coolo@novell.com --- Comment #1 from Stephan Kulow <coolo@novell.com> 2009-04-15 07:05:46 MDT --- we need to have this pretty badly. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=495112 User pmladek@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=495112#c2 --- Comment #2 from Petr Mladek <pmladek@novell.com> 2009-04-28 04:35:24 MDT --- Created an attachment (id=288567) --> (http://bugzilla.novell.com/attachment.cgi?id=288567) Workaround to build OOo with the broken mono. I am not sure if it works then, though. It would be really nice to provide the right fix in mono. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=495112 User pmladek@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=495112#c3 --- Comment #3 from Petr Mladek <pmladek@novell.com> 2009-05-07 09:30:55 MDT --- It seems to be a duplicate of the bug #471379. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=495112 User msafar@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=495112#c4 Marek Safar <msafar@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #4 from Marek Safar <msafar@novell.com> 2009-05-07 12:00:57 MDT --- Duplicate. *** This bug has been marked as a duplicate of bug 471379 *** http://bugzilla.novell.com/show_bug.cgi?id=471379 -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=495112 User msafar@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=495112#c5 Marek Safar <msafar@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mjsmagalhaes.insc@gmail.com --- Comment #5 from Marek Safar <msafar@novell.com> 2009-06-01 04:16:47 MDT --- *** Bug 508576 has been marked as a duplicate of this bug. *** http://bugzilla.novell.com/show_bug.cgi?id=508576 -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com