aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2003-10-07 09:34:21 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2003-10-07 09:34:21 -0300
commit21947deddc5976536665cd2397d7d5c9e6bd7e48 (patch)
tree5e4ca155a32b230edb1d8504fd1b3d11bfbfe958
parent3087636c76dd8d2416b4872a906e3df4f9cddb44 (diff)
downloadlua-21947deddc5976536665cd2397d7d5c9e6bd7e48.tar.gz
lua-21947deddc5976536665cd2397d7d5c9e6bd7e48.tar.bz2
lua-21947deddc5976536665cd2397d7d5c9e6bd7e48.zip
new bug + correction in path for coroutine bug
-rw-r--r--bugs31
1 files changed, 29 insertions, 2 deletions
diff --git a/bugs b/bugs
index 7b272fbb..4c4bedb3 100644
--- a/bugs
+++ b/bugs
@@ -383,9 +383,11 @@ patch = [[
383> } 383> }
384> 384>
385> 385>
386355a363,366 386355a363,368
387> if (L->ci == L->base_ci && nargs >= L->top - L->base) 387> if (L->ci == L->base_ci) {
388> if (nargs >= L->top - L->base)
388> return resume_error(L, "cannot resume dead coroutine"); 389> return resume_error(L, "cannot resume dead coroutine");
390> }
389> else if (!(L->ci->state & CI_YIELD)) /* not inside a yield? */ 391> else if (!(L->ci->state & CI_YIELD)) /* not inside a yield? */
390> return resume_error(L, "cannot resume non-suspended coroutine"); 392> return resume_error(L, "cannot resume non-suspended coroutine");
391]], 393]],
@@ -568,3 +570,28 @@ patch = [[
568 570
569} 571}
570 572
573
574Bugs = {
575
576what = [[count hook may be called without being set]],
577
578report = [[Andreas Stenius, 06/10/2003]],
579
580example = [[
581set your hooks with
582
583 lua_sethook(L, my_hook, LUA_MASKLINE | LUA_MASKRET, 1);
584
585(It is weird to use a count > 0 without setting the count hook,
586but it is not wrong.)
587]],
588
589patch = [[
590* lvm.c:
59169c69
592< if (mask > LUA_MASKLINE) { /* instruction-hook set? */
593---
594> if (mask & LUA_MASKCOUNT) { /* instruction-hook set? */
595]],
596
597}