Tarantool development patches archive
 help / color / mirror / Atom feed
* [tarantool-patches] [PATCH v3 0/4] Dump lua frames for a fiber traceback
@ 2018-10-31 10:49 Georgy Kirichenko
  2018-10-31 10:49 ` [tarantool-patches] [PATCH v3 1/4] fiber: do not inline coro unwind function Georgy Kirichenko
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Georgy Kirichenko @ 2018-10-31 10:49 UTC (permalink / raw)
  To: tarantool-patches; +Cc: Georgy Kirichenko

Lua frames are now dumped as well as plain C-frames for a
fiber backtrace. The main patch follows preparation fixes:
 - disable unwind handler inlining;
 - enable backtrace for an active coroutine;
 - reuse existing lua state for triggers;

Georgy Kirichenko (4):
  fiber: do not inline coro unwind function
  Proper unwind for currently executing fiber
  Use fiber lua state for triggers if possible
  Show names of Lua functions in backtraces

 src/backtrace.cc        | 24 ++++++++++++--
 src/box/lua/space.cc    | 12 +++----
 src/fiber.h             | 32 ++++++++----------
 src/lua/fiber.c         | 73 ++++++++++++++++++++++++++++++++++++++---
 src/lua/trigger.c       | 19 ++++++++---
 src/lua/trigger.h       |  2 +-
 test/app/fiber.result   | 36 ++++++++++++++++++++
 test/app/fiber.test.lua | 13 ++++++++
 8 files changed, 175 insertions(+), 36 deletions(-)

-- 
2.19.1
https://github.com/tarantool/tarantool/issues/3538
https://github.com/tarantool/tarantool/compare/g.kirichenko/gh-3538-lua-backtrace

Changes in v3:
 - Fix lua tracing for lua-triggers
 - Fixes according to review

Changes in v2:
 - Rebased against the latest 1.10
 - Segmentation fault fixed

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-11-01 12:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-31 10:49 [tarantool-patches] [PATCH v3 0/4] Dump lua frames for a fiber traceback Georgy Kirichenko
2018-10-31 10:49 ` [tarantool-patches] [PATCH v3 1/4] fiber: do not inline coro unwind function Georgy Kirichenko
2018-10-31 10:49 ` [tarantool-patches] [PATCH v3 2/4] Proper unwind for currently executing fiber Georgy Kirichenko
2018-10-31 10:49 ` [tarantool-patches] [PATCH v3 3/4] Use fiber lua state for triggers if possible Georgy Kirichenko
2018-10-31 10:49 ` [tarantool-patches] [PATCH v3 4/4] Show names of Lua functions in backtraces Georgy Kirichenko
2018-11-01 12:45 ` [tarantool-patches] [PATCH v3 0/4] Dump lua frames for a fiber traceback Vladimir Davydov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox