浏览代码

bug: recursive coroutines may overflow C stack

Roberto Ierusalimschy 18 年之前
父节点
当前提交
e64fcb9d94
共有 1 个文件被更改,包括 14 次插入0 次删除
  1. 14 0
      bugs

+ 14 - 0
bugs

@@ -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 ]],