[Mono-dev] SIGSEGV - mono 1.1.13.4 - possible new bug
Jb Evain
mono at evain.net
Wed May 3 03:41:33 EDT 2006
Hey,
The attached patch fixes the problem, and makes the error more
consistent with the .net framework.
Is it ok to commit?
Jb
-------------- next part --------------
A non-text attachment was scrubbed...
Name: field.diff
Type: application/octet-stream
Size: 808 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060503/949ab071/attachment.obj
-------------- next part --------------
On May 3, 2006, at 9:25 AM, Jb Evain wrote:
> Hi Rafael,
>
> On May 3, 2006, at 5:45 AM, Rafael Ferreira wrote:
>> The testcase attached (bar.cs) consistently generates a SIGSEGV on my
>> fedora core 5 box running mono 1.1.13.4 and 1.1.14 . The code
>> attached
>> is basically part of a util class that I use to dynamic set fields
>> in an
>> object. If you guys think this is a new issue let me know and I'll
>> file
>> a bug entry for it.
>
> If you want your program to work, please apply this patch:
>
> --- bar.cs 2006-05-03 09:16:55.000000000 +0200
> +++ baz.cs 2006-05-03 09:16:07.000000000 +0200
> @@ -18,7 +18,7 @@
> p.SetValue(t, Convert.ChangeType
> (field_value.Trim(),p.FieldType ));
> - Console.WriteLine(p.GetValue(null));
> + Console.WriteLine(p.GetValue(t));
> return;
> }
>
> Of course, the runtime should not crash like that when you try to
> dynamically set an instance field, and that you don't give any
> instance. Yes, please file a bug.
>
> Thanks!
>
> Jb
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
More information about the Mono-devel-list
mailing list