[Tarantool-patches] [PATCH luajit v3 29/29] test: disable too deep recursive PUC-Rio test

Sergey Kaplun skaplun at tarantool.org
Tue Apr 13 16:27:29 MSK 2021


The first Tarantool's fiber has only 512Kb of stack.
It is not enough for deep recursive call in the test for
`string.gsub()`.

This patch disables the test leads to Tarantool crash.

Relates to tarantool/tarantool#5782
Resolves tarantool/tarantool#5845
Part of tarantool/tarantool#4473
---
 test/PUC-Rio-Lua-5.1-tests/pm.lua | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/test/PUC-Rio-Lua-5.1-tests/pm.lua b/test/PUC-Rio-Lua-5.1-tests/pm.lua
index b159b6bd..e364ff9d 100644
--- a/test/PUC-Rio-Lua-5.1-tests/pm.lua
+++ b/test/PUC-Rio-Lua-5.1-tests/pm.lua
@@ -207,7 +207,11 @@ function rev (s)
 end
 
 local x = string.rep('012345', 10)
-assert(rev(rev(x)) == x)
+-- FIXME: The first Tarantool's fiber has only 512Kb of stack.
+-- It is not enough for this recursive call.
+-- See also https://github.com/tarantool/tarantool/issues/5782.
+-- The test is disabled for Tarantool binary.
+-- assert(rev(rev(x)) == x)
 
 
 -- gsub with tables
-- 
2.31.0



More information about the Tarantool-patches mailing list