[Mono-bugs] [Bug 417862] New: Generic class with external method triggers mono assertion
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Sun Aug 17 05:45:16 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=417862
Summary: Generic class with external method triggers mono
assertion
Product: Mono: Runtime
Version: 1.9
Platform: i686
OS/Version: Linux
Status: NEW
Severity: Major
Priority: P5 - None
Component: generics
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: uhrm at inf.ethz.ch
QAContact: mono-bugs at lists.ximian.com
Found By: Other
The following code compiles fine but triggers an assertion in the Mono runtime
when executed:
using System;
using System.Runtime.InteropServices;
namespace ReproTest
{
public class Culprit<T>
{
private string msg;
public Culprit()
{
msg = "Hunt the bug.";
}
public void PrintMsg()
{
Console.WriteLine(msg);
}
[DllImport("somelib")]
private static extern void SomeFunc();
}
public class ReproMain
{
public static void Main(string[] args)
{
Culprit<int> c = new Culprit<int>();
c.PrintMsg();
}
}
}
Compile with: gmcs -target:exe -out:ReproTest.exe ReproMain.cs
Run with: mono ReproTest.exe
Output:
**
** ERROR:(loader.c:1406):mono_get_method_from_token: assertion failed: (loc)
Stacktrace:
Native stacktrace:
mono [0x8177145]
[0xffffe440]
/lib/libc.so.6(abort+0x108) [0xb7d0f8e8]
/usr/lib/libglib-2.0.so.0(g_assertion_message+0x10e) [0xb7eaf7aa]
Debug info from gdb:
(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
0xffffe410 in __kernel_vsyscall ()
=================================================================
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
--
Configure bugmail: https://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