lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 11/26/07, Roberto Ierusalimschy <roberto@inf.puc-rio.br> wrote:
> > The recursive coroutine/stack overflow bug that's listed on the Lua
> > website [http://www.lua.org/bugs.html#5.1.2-4] currently doesn't have
> > a patch listed and instead suggests that the right thing to do might
> > be moving the nCcalls counter to the global state.  It seems there was
> > discussion about there being issues with that in a multi-threaded
> > environment.
> >
> > I'm currently using the following patch that approaches the problem in
> > a slightly different manner, and I'm wondering if there are any
> > obvious reasons why this isn't a good way to patch the issue (or if
> > there's something that's been missed entirely).
> >
> > The patch can be found here: http://pastebin.ca/797346
> >
> > The author would appreciate any feedback you can provide.
>
> Would you mind explaining your patch?

I am not the author, but he asked me to post it here if I felt it was
of general use to the Lua community.  I'll get in touch with him, and
follow up in this thread.

- Jim