[Mono-list] Seemingly impossible null reference exception running managed code with embedded Mono on Linux

Weeble clockworksaint at gmail.com
Thu Mar 14 07:49:41 UTC 2013

On 14 Mar 2013 02:34, <Jean-Michel.Perraud at csiro.au> wrote:
> If anything I can only suspect an incorrect garbage collection on the
variable 'Type[] types', unlikely as it is.

That strikes me as improbable. Such a bug would be very likely to have been
observed before. Have a look at System.Types.GetMethod - it throws that
exception not just when types == null, but also when any element in types
is null. I think a more likely source of the bug is an access to
uninitialized memory, a use-after-free or an array overflow somewhere in
the native code of the R to CLR library, leading to a null value in the
array. I would try to rule that out long before looking at the garbage
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20130314/d77d3498/attachment.html>

More information about the Mono-list mailing list