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

2012-01-26 Thread krlm
Hi.. I've found an underlying reason of that bug and prepared a test case. You can find the code and a description of a problem here: http://bugzilla.xamarin.com/show_bug.cgi?id=3004 Now I'm trying to solve this issue but I need some information about ideas which stands behind the expression

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

2011-06-20 Thread krlm
Hello, Unfortunately that problem still exists and probably it was not related to that one linked by Zoltan. Still cannot provide a way to reproduce it but it's gone after switching mono back to the 2.8 version (it's build from last commit in 2.8 branch). Maybe this information can help to

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

2011-06-20 Thread jmalcolm
krlm wrote: Hello, Unfortunately that problem still exists and probably it was not related to that one linked by Zoltan. Still cannot provide a way to reproduce it but it's gone after switching mono back to the 2.8 version (it's build from last commit in 2.8 branch). Maybe this

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

2011-06-20 Thread krlm
Hi jmalcolm, Thanks for your reply, I forgot to mention (or I did it in previous posts). I always compile the latest stable branch so I'm sure that problem still exist in 2.10 branch. BTW, No, I've not added the problem into Bugzilla, I thought I'd need to gather more information. Best

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

2011-06-20 Thread Alex
Hi Marcin, I think it'd be OK to add a Bugzilla entry and point to this ML thread, even if more information is still needed. Regards, Alex 2011/6/20 krlm kr...@poczta.onet.pl: Hi jmalcolm, Thanks for your reply, I forgot to mention (or I did it in previous posts). I always compile the

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

2011-05-06 Thread pwo
Hello, I'm afraid this wasn't our case, because after updating mono to version 2.10.2 (from branch not a tarball) we still get reports that stack overflow occurs. Does anybody have any idea how can I find cause of this problem? Best Regards, Pawel Zoltan Varga wrote: Hi, This was

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

2011-05-01 Thread pwo
Hi, I'd like to provide some additional data on this problem. I added some code into Equals method of System.MulticastDelegate that uses Object.ReferenceEquals(this,this.prev) to check whether this == this.prev, I used it instead of this.Equals(this.prev) because we suspected that original

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

2011-05-01 Thread Zoltan Varga
Hi, This was probably caused by: https://bugzilla.novell.com/show_bug.cgi?id=687902 https://bugzilla.novell.com/show_bug.cgi?id=687902which is now fixed. Zoltan On Mon, May 2, 2011 at 2:45 AM, pwo szy...@onet.pl wrote: Hi, I'd like to provide some additional data on

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

2011-04-04 Thread kralu
W dniu 2011-03-30 22:07:45 użytkownik Miguel de Icaza mig...@novell.com napisał: While another one is doing an equality test, the state is half-built. The way you could instrument this is to rewrite that routine to not be recursive, but instead to be iterative, and have a maximum count,

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

2011-04-04 Thread Alan
Aren't event handler methods emitted with a [synchronized] attribute by default which would prevent this issue? You can check by disassembling the IL and seeing if its there. Alan On 4 Apr 2011 14:55, kr...@poczta.onet.pl wrote: W dniu 2011-03-30 22:07:45 użytkownik Miguel de Icaza

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

2011-04-04 Thread Gonzalo Paniagua Javier
On Mon, 2011-04-04 at 20:48 +0100, Alan wrote: Aren't event handler methods emitted with a [synchronized] attribute by default which would prevent this issue? You can check by disassembling the IL and seeing if its there. They are synchronized as long as you don't replace the default

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

2011-04-04 Thread kralu
On Mon, 2011-04-04 22:03:47 Gonzalo Paniagua Javier gonzalo.m...@gmail.com wrote: On Mon, 2011-04-04 at 20:48 +0100, Alan wrote: Aren't event handler methods emitted with a [synchronized] attribute by default which would prevent this issue? You can check by disassembling the IL and seeing

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

2011-04-04 Thread nekresh
On Mon, Apr 4, 2011 at 10:37 PM, kr...@poczta.onet.pl wrote: On Mon, 2011-04-04 22:03:47 Gonzalo Paniagua Javier gonzalo.m...@gmail.com wrote: On Mon, 2011-04-04 at 20:48 +0100, Alan wrote: Aren't event handler methods emitted with a [synchronized] attribute by default which would prevent

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

2011-04-04 Thread kralu
On Mon, 2011-04-04 22:41:47 nekresh nekr...@gmail.com wrote: On Mon, Apr 4, 2011 at 10:37 PM, kr...@poczta.onet.pl wrote: On Mon, 2011-04-04 22:03:47 Gonzalo Paniagua Javier gonzalo.m...@gmail.com wrote: On Mon, 2011-04-04 at 20:48 +0100, Alan wrote: Aren't event handler methods

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

2011-04-04 Thread Alan
Hey, Well the other thing is that the delegate class is supposed to be immutable. Therefore it should be impossible to produce a corrupt delegate through multithreaded access as any modification to a delegate instance results in a new copy of the delegate (with modification) being created, just

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

2011-03-30 Thread Tom Spink
Hi Marcin, I very much agree with you here. Even searching for assignments to prev, doesn't yield anything too suspicious (except for where a local variable overrides the scope of the class-level field!). All assignments *appear* to be clones, which is okay. Can you squeeze out any more

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

2011-03-30 Thread Miguel de Icaza
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

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

2011-03-29 Thread krlm
Hi Tom, Thanks for your reply. I've also just took a look on the MulticastDelegate implementation and on the CombineImpl method but I cannot see how to make that this.prev to be equals to this. Maybe the issue lies in the RemoveImpl method/KMP? I'll try to debug this step by step. Thanks in

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

2011-03-28 Thread krlm
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

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

2011-03-28 Thread Tom Spink
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