For what it's worth, I believe (though I may be wrong) that the gcj
people solved the problem in a manner very similar to what you describe.
Some information may be found at:

http://gcc.gnu.org/ml/java/2002-01/msg00169.html

I haven't looked at libsigsegv at all, so I don't know how it compares.

In any case, I am thrilled to see that this is on the road-map because,
as stated by a few others, it does seem important. 

Keep up the great work...Kudos!

Mike


On Tue, 2003-07-15 at 10:51, Varga Zoltan wrote:
>                                               Hi,
> 
>    What about write protecting the last few frames of the
> stack, and
> catching the protection fault ? Can that work ?
> 
>                     Zoltan
> 
> Simon Kitching <[EMAIL PROTECTED]> írta:
> 
> > Well, Sun's Java Virtual Machine on Linux manages to
> detect stack
> > overflow and throw an exception so it must be possible.
> > 
> > 
> > On Mon, 2003-07-14 at 22:51, Dietmar Maurer wrote:
> > > > -----Ursprüngliche Nachricht-----
> > > > Von: Michael Levy [mailto:[EMAIL PROTECTED] 
> > > > Gesendet: Freitag, 11. Juli 2003 22:29
> > > > An: [EMAIL PROTECTED]
> > > > Betreff: [Mono-list] Segmentation fault / 
> > > > StackOverflowException not thrown
> > > > 
> > > > 
> > > > Hello,
> > > >         I am fairly new to C# (and mono) but I think that I may 
> > > > have found a potential bug. I have attached a short
> peice of 
> > > > (silly) code which shows the problem. The code basically 
> > > > causes a method (or property, depending on what you have 
> > > > un-commented) to recursivly call itsel until it blows the 
> > > > stack. I would expect that this sort of pathological 
> > > > recursion should generate 
> > > > a StackoverflowException when executed, but it simpley
> causes 
> > > > a Segmentation fault. I have not been able to confirm
> this 
> > > > behaviour on Windows. I am using the lates release of
> mono (0.25).
> > > 
> > > The problem is that Unix has no real support to catch
> stack overflow, i.e.
> > > it is highly system specific. So we decided to do a
> Segmentation fault in
> > > that case.
> > > 
> > > Anyways, it should be possible to detect simple cases at
> compile time -  so
> > > the c# compiler could emit a warning in that case.
> > > 
> > > - Dietmar
> > >  
> > > 
> > > _______________________________________________
> > > Mono-list maillist  -  [EMAIL PROTECTED]
> > > http://lists.ximian.com/mailman/listinfo/mono-list
> > > 
> > 
> > _______________________________________________
> > Mono-list maillist  -  [EMAIL PROTECTED]
> > http://lists.ximian.com/mailman/listinfo/mono-list
> > 
> > 
> > 
> 
> 
> 
> 
> _______________________________________________
> Mono-list maillist  -  [EMAIL PROTECTED]
> http://lists.ximian.com/mailman/listinfo/mono-list
_______________________________________________
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to