POV-Ray : Newsgroups : povray.general : Segmentation fault : Re: Segmentation fault Server Time
29 Jul 2024 06:24:16 EDT (-0400)
  Re: Segmentation fault  
From: Alain
Date: 24 Oct 2012 16:47:00
Message: <508853c4$1@news.povray.org>

> clipka <ano### [at] anonymousorg> wrote:
>> Am 13.10.2012 17:44, schrieb Anthony D. Baye:
>>
>>> at any rate, it would probably be a good idea to do some error checking on the
>>> stack size before it overflows and causes a segfault.
>>
>> We'll implement such a check as soon as we've figured a way to solve the
>> halting problem :-P
>
> Funny.  Really.
>
> I had assumed that the stack in question was not the system stack.  i.e. part of
> the code... And that it had a known max size.
>
> Even if this is not the case, it should still be possible to implement some kind
> of check to prevent a segfault.
>
> But, again, I am not familiar with the code.
>
> Regards,
> A.D.B.
>
>

Checking for an impeding stack overflow is always tricky, whatever the 
stack implementation. Having a static stack size don't mean that you can 
acurately detect when an overflow could appen.
Also, such a check will slow down ALL accesses to the stack, possibly 
severly.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.