[Tarantool-patches] [PATCH luajit] memprof: report stack resizing as internal event

Igor Munkin imun at tarantool.org
Mon Mar 29 23:48:47 MSK 2021


Sergey,

I've checked the series into tarantool-2.7 and tarantool branches in
tarantool/luajit and bumped a new version in 2.7 and master.

On 09.03.21, Sergey Kaplun wrote:
> Resizing of the Lua stack is not reported as internal allocation.
> Moreover, it may lead to crash inside Lua or FF frames.
> 
> Profiler performs reallocation first and after reports corresponding
> event. When the stack is resized for local function arguments, the link
> to previous frame is invalid in the cause of reallocation. Therefore,
> assertion in `debug_framepc()` failes, because of invalid function
> reference at previous frame.
> 
> Resolves tarantool/tarantool#5842
> Follows up tarantool/tarantool#5442
> ---
> Branch: https://github.com/tarantool/luajit/tree/skaplun/gh-5842-memprof-core-on-resizestack
> Tarantool branch: https://github.com/tarantool/tarantool/tree/skaplun/gh-5842-memprof-core-on-resizestack
> Issue: https://github.com/tarantool/tarantool/issues/5842
> 
> 
>  src/lj_state.c                                 |  6 ++++++
>  .../misclib-memprof-lapi.test.lua              | 18 ++++++++++++++++++
>  2 files changed, 24 insertions(+)
> 

<snipped>

> -- 
> 2.28.0
> 

-- 
Best regards,
IM


More information about the Tarantool-patches mailing list