[Tarantool-patches] [PATCH 0/2] [draft] fiber: introduce fiber creation backtrace

eelchinov at tarantool.org eelchinov at tarantool.org
Fri Jun 4 14:13:09 MSK 2021


From: Egor2001 <elchinov.es at gmail.com>

This patchset is a proof-of-concept for the fiber creation backtrace.

For testing convenience, parent backtrace is 
temporarily moved to the separate lua subtable
backtrace_parent of fiber.info.

For now only C backtrace is implemented.
For the Lua parts of backtrace parent lua state 
needs to be somehow introduced to the new fiber.
Proper solution to this issue needs to be discussed.

Issue: https://github.com/tarantool/tarantool/issues/4002
PR draft: https://github.com/tarantool/tarantool/pull/6124

Egor2001 (2):
  fiber: add PoC for fiber creation backtrace
  fiber: fix DARWIN build

 src/lib/core/backtrace.cc                     | 94 ++++++++++++++++++-
 src/lib/core/backtrace.h                      |  8 +-
 src/lib/core/crash.c                          |  2 +-
 src/lib/core/fiber.c                          |  8 ++
 src/lib/core/fiber.h                          | 16 ++++
 src/lua/fiber.c                               |  9 ++
 .../gh-4002-fiber-creation-backtrace.result   | 55 +++++++++++
 .../gh-4002-fiber-creation-backtrace.test.lua | 25 +++++
 8 files changed, 213 insertions(+), 4 deletions(-)
 create mode 100644 test/app/gh-4002-fiber-creation-backtrace.result
 create mode 100644 test/app/gh-4002-fiber-creation-backtrace.test.lua

-- 
2.31.1



More information about the Tarantool-patches mailing list