Please do not reply to this email- if you want to comment on the bug, go to the URL shown below and enter your comments there.
Changed by [EMAIL PROTECTED] http://bugzilla.ximian.com/show_bug.cgi?id=82528 --- shadow/82528 2007-08-21 21:30:28.000000000 -0400 +++ shadow/82528.tmp.8859 2007-08-21 21:30:28.000000000 -0400 @@ -0,0 +1,82 @@ +Bug#: 82528 +Product: Mono: Class Libraries +Version: 1.2 +OS: +OS Details: Gentoo amd64 +Status: NEW +Resolution: +Severity: +Priority: Normal +Component: System +AssignedTo: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +TargetMilestone: --- +URL: +Cc: +Summary: Segfault when Type.IsInstanceOfType is used on result from float.Parse when invoked as a delegate returning Object. + +Description of Problem: + +Mono 1.2.4 seems behave improperly when float.Parse is invoked as a +delegate returning an object. + +Steps to reproduce the problem: +1. Compile the following code with gmcs 1.2.4.0: + +using System; + +delegate object ParseFun(string text); + +class MonoBug { + public static void Main() { + ParseFun fun = float.Parse; + object obj = fun("123.45"); + + if (typeof(float).IsInstanceOfType(obj)) + Console.WriteLine("Got a float: {0}", obj); + } +} + +Actual Results: + +Segfault: + +Stacktrace: + + at (wrapper managed-to-native) System.Type.IsInstanceOfType (object) +<0x0000b> + at (wrapper managed-to-native) System.Type.IsInstanceOfType (object) +<0xffffffff> + at MonoBug.Main () <0x00082> + at (wrapper runtime-invoke) System.Object.runtime_invoke_void +(object,intptr,intptr,intptr) <0xffffffff> + +Native stacktrace: + + mono [0x51a3d1] + mono [0x4e222d] + /lib/libpthread.so.0 [0x2b441f1def90] + mono(mono_object_isinst+0x64) [0x4968d4] + mono [0x49c138] + [0x4022c0c0] + + +Expected Results: + +Should print "Got a float: 123.45" + +How often does this happen? + +Every time. + +Additional Information: + +OS: Linux Gilead 2.6.21-gentoo-r4 #1 SMP Thu Aug 2 23:10:45 PDT 2007 x86_64 +AMD Athlon(tm) 64 X2 Dual Core Processor 4200+ AuthenticAMD GNU/Linux + +gcc: x86_64-pc-linux-gnu-4.1.1 +glibc: 2.5-r4 +binutils: 2.17 +libtool: 1.5.24 +os-headers: 2.6.21 _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
