[Mono-dev] StackOverflow on System.Delegate.Equals

Tom Spink tspink at gmail.com
Mon Mar 28 16:52:55 EDT 2011


Hello,

After a quick glance over the implementation of MulticastDelegate, it
looks like it could be a bug.  But I'm not too sure.

To me, it looks like the bug is here, line 96:

return this.prev.Equals (d.prev);

If 'this.prev' is == 'this', then, this would cause an infinite
recursion, as the call to equals would just call itself.  I think a
fix would be to add a call to ReferenceEquals, to see if this.prev ==
this, then return true - but I'm not too sure.

-- Tom

On 28 March 2011 09:22, krlm <kralu at poczta.onet.pl> wrote:
> Hello,
>
> I've found an issue in my ASP.NET application when it's running under heavy
> load. It throws an exception like that: http://pastebin.com/DRAYVM0F and
> then the whole application is down, i've to restart apache/mod-mono-server.
> It's running under mono 2.10.1, apache2 and mod-mono. On IIS/MS.NET i've not
> found any problems, even on heavier load. Maybe someone has any
> thoughts/ideas what might causing problem like this? Thanks in advance.
>
> Kind regards,
> Marcin
>
> --
> View this message in context: http://mono.1490590.n4.nabble.com/StackOverflow-on-System-Delegate-Equals-tp3411024p3411024.html
> Sent from the Mono - Dev mailing list archive at Nabble.com.
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>



-- 
Tom Spink


More information about the Mono-devel-list mailing list