Bug description
- OS: Linux
- OS Version: Ubuntu 24.04
- Architecture: amd64
Steps to reproduce
Script fib.lua:
local fiber = require('fiber')
local function payload()
local function fib(n)
if n <= 1 then
return n
end
fiber.yield()
return fib(n - 1) + fib(n - 2)
end
return fib(64)
end
local res, err = misc.sysprof.start({mode = 'C', interval = 1, path = 'sysprof.bin'})
assert(res, err)
payload()
-- local res, err = misc.sysprof.stop()
-- assert(res, err)
os.exit()
How to run:
Tarantool 3.5.0-entrypoint-11-g2487687643
type 'help' for interactive help
tarantool> f = require('fiber')
---
...
tarantool> f.new(loadfile('fib.lua')())
---
- error: fiber is cancelled
...
tarantool> fiber `sched' has been cancelled
fiber `sched': exiting
fatal error, exiting the event loop
LuaJIT ASSERT third_party/luajit/src/lj_sysprof.c:243: stream_trace: (traceno)>0 && (MSize)(traceno)<J->sizetrace
Aborted
Actual behavior
Assertion is triggered.
Expected behavior
No assertion is triggered.