From 21947deddc5976536665cd2397d7d5c9e6bd7e48 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 7 Oct 2003 09:34:21 -0300 Subject: [PATCH] new bug + correction in path for coroutine bug --- bugs | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/bugs b/bugs index 7b272fbb..4c4bedb3 100644 --- a/bugs +++ b/bugs @@ -383,9 +383,11 @@ patch = [[ > } > > -355a363,366 -> if (L->ci == L->base_ci && nargs >= L->top - L->base) +355a363,368 +> if (L->ci == L->base_ci) { +> if (nargs >= L->top - L->base) > return resume_error(L, "cannot resume dead coroutine"); +> } > else if (!(L->ci->state & CI_YIELD)) /* not inside a yield? */ > return resume_error(L, "cannot resume non-suspended coroutine"); ]], @@ -568,3 +570,28 @@ patch = [[ } + +Bugs = { + +what = [[count hook may be called without being set]], + +report = [[Andreas Stenius, 06/10/2003]], + +example = [[ +set your hooks with + + lua_sethook(L, my_hook, LUA_MASKLINE | LUA_MASKRET, 1); + +(It is weird to use a count > 0 without setting the count hook, +but it is not wrong.) +]], + +patch = [[ +* lvm.c: +69c69 +< if (mask > LUA_MASKLINE) { /* instruction-hook set? */ +--- +> if (mask & LUA_MASKCOUNT) { /* instruction-hook set? */ +]], + +}