summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bugs41
1 files changed, 39 insertions, 2 deletions
diff --git a/bugs b/bugs
index c114b963..492e9b31 100644
--- a/bugs
+++ b/bugs
@@ -1880,8 +1880,8 @@ patch = [[
1880+++ lundump.c 2008/04/04 19:51:41 2.7.1.4 1880+++ lundump.c 2008/04/04 19:51:41 2.7.1.4
1881@@ -1,5 +1,5 @@ 1881@@ -1,5 +1,5 @@
1882 /* 1882 /*
1883-** $Id: bugs,v 1.113 2012/04/12 16:25:25 roberto Exp roberto $ 1883-** $Id: bugs,v 1.114 2012/05/11 14:10:28 roberto Exp roberto $
1884+** $Id: bugs,v 1.113 2012/04/12 16:25:25 roberto Exp roberto $ 1884+** $Id: bugs,v 1.114 2012/05/11 14:10:28 roberto Exp roberto $
1885 ** load precompiled Lua chunks 1885 ** load precompiled Lua chunks
1886 ** See Copyright Notice in lua.h 1886 ** See Copyright Notice in lua.h
1887 */ 1887 */
@@ -2648,6 +2648,43 @@ patch = [[
2648]] 2648]]
2649} 2649}
2650 2650
2651Bug{
2652what = [[Internal Lua values may escape through the debug API]],
2653report = [[Dan Tull, 2012/04/20]],
2654since = [[5.1]],
2655example = [[
2656-- for Lua 5.1
2657local firsttime = true
2658local function foo ()
2659 if firsttime then
2660 firsttime = false
2661 return "a = 1"
2662 else
2663 for i = 1, 10 do
2664 print(debug.getlocal(2, i))
2665 end
2666 end
2667end
2668
2669print(load(foo)) -- prints some lines and then seg. fault.
2670]],
2671patch = [[
2672]]
2673}
2674
2675Bug{
2676what = [[Problems when yielding from debug hooks]],
2677report = [[Erik Cassel, 2012/06/05]],
2678since = [[5.2.0]],
2679example = [[
2680Set, in C, a line hook that simply yields,
2681and then call any Lua function.
2682You get an infinite loop of yields.
2683]],
2684patch = [[
2685]]
2686}
2687
2651 2688
2652--[=[ 2689--[=[
2653Bug{ 2690Bug{