From e64fcb9d9454d7640a0a171c9e625139c0c436c0 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 25 May 2007 14:13:47 -0300 Subject: [PATCH] bug: recursive coroutines may overflow C stack --- bugs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/bugs b/bugs index 11d57c02..2025aa63 100644 --- a/bugs +++ b/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 ]],