bug: recursive coroutines may overflow C stack

This commit is contained in:
Roberto Ierusalimschy 2007-05-25 14:13:47 -03:00
parent 6c0a9a272e
commit e64fcb9d94
1 changed files with 14 additions and 0 deletions

14
bugs
View File

@ -1434,6 +1434,20 @@ lvm.c:
]],
}
Bug{
what = [[recursive coroutines may overflow C stack]],
report = [[ , on ]],
since = [[5.0]],
example = [[
a = function(a) coroutine.wrap(a)(a) end
a(a)
]],
patch = [[The 'nCcalls' counter should be shared by all threads.
(That is, it should be declared in the 'global_State' structure,
not in 'lua_State'.)
]],
}
Bug{
what = [[ ]],
report = [[ , on ]],