[Ur] segmentation fault when inserting 10000 instead of 1000 rows?

Adam Chlipala adamc at impredicative.com
Mon Dec 20 09:09:03 EST 2010


Marc Weber wrote:
> Excerpts from Marc Weber's message of Mon Dec 20 06:37:13 +0100 2010:
>    
>> I added ticket 43 to mantis. I gave priority "major" because I feel this
>> is the weakest point of the whole urweb system.
>>      
> It looks like I hit a stack overflow. I added a 0 too much. So urweb
> can't recurse 100,000 times. 10,000 is fine though.
>
> Is there a chance making urweb abort the request rather than die in such
> cases without impacting performance too much?
>    

Standard C doesn't provide a way to catch stack overflows, as far as I 
know.  I've made some experiments with Linux-specific code, but I didn't 
end up satisfied.  If you can suggest a particular implementation 
technique (ideally one that will work on all platforms), I'd be glad to 
use it.



More information about the Ur mailing list