[Mono-dev] SEGV in mono_class_is_assignable_from in gmcs

Casey Marshall casey.s.marshall at gmail.com
Fri Sep 5 19:13:35 EDT 2008


Bug filed with test case: https://bugzilla.novell.com/show_bug.cgi?id=423975

This is easy to work around in my case, so it's low priority.


Casey Marshall wrote:
> Running gmcs under the mono debugger got me further: I was able to find 
> the code causing the issue.
> 
> There were two methods in a class that had the form:
> 
>   private static XXX<T> FindRelevant<T>(XXX<T>[] candidates);
>   private static object FindRelevant<T>(IComparable[] candidates);
> 
> And the type XXX is 'public class XXX<T> : IComparable<XXX<T>>'. These 
> FindRelevant methods are called in various places in the containing 
> class, always with an argument of type XXX<T>[]. Renaming the latter 
> method fixed this issue, but I'll still try to make a concise test case.
> 
> Casey Marshall wrote:
>> I'm getting a SEGV in the function `mono_class_is_assignable_from' 
>> when trying to compile some internal code. I can't get the location in 
>> my source code where the error occurs, but I'll add some info from GDB 
>> to this email. Has anyone seen something like this before?
>>
>>   [...]



More information about the Mono-devel-list mailing list