[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Rings bug(?) and fix
- From: "Wesley Smith" <wesley.hoke@...>
- Date: Sat, 28 Jun 2008 16:34:39 -0700
You will eventually explode the stack if it is constantly increasing.
This can cause crashes if not addressed.
On Sat, Jun 28, 2008 at 2:56 PM, Graham Wakefield
>> It appears that every call to dostring in the rings module  leaves the
>> debug.traceback function on the ring state's stack, which may accumulate. Is
>> this a problem? Could it eventually explode the stack, or does Lua take care
>> of this?
>> In any case, it can be resolved by changing
>> lua_pop (dst, ret_top-base);
>> lua_pop (dst, ret_top-base+1);
>> on line 144, and
>> lua_pop (dst, 1); /* pops result from dst state */
>> lua_pop (dst, 2); /* pops result & debug.traceback from dst state
>> on line 150,
>> of the current release (1.2.1)
>>  http://www.keplerproject.org/rings/