From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 558B62C51F for ; Wed, 10 Oct 2018 12:39:31 -0400 (EDT) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YXQKXzs3Hcni for ; Wed, 10 Oct 2018 12:39:31 -0400 (EDT) Received: from smtp59.i.mail.ru (smtp59.i.mail.ru [217.69.128.39]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id 140EA2C4E6 for ; Wed, 10 Oct 2018 12:39:30 -0400 (EDT) From: Georgy Kirichenko Subject: [tarantool-patches] [PATCH v2 0/3] Dump lua frames for a fiber traceback Date: Wed, 10 Oct 2018 19:39:23 +0300 Message-Id: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: tarantool-patches-bounce@freelists.org Errors-to: tarantool-patches-bounce@freelists.org Reply-To: tarantool-patches@freelists.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: tarantool-patches List-subscribe: List-owner: List-post: List-archive: To: tarantool-patches@freelists.org Cc: Georgy Kirichenko Lua frames are now dumped as well as plain C-frames for a fiber backtrace. The main patch follows two preparation fixes: - enable backtrace for an active coroutine; - setup lua state for the main fiber; Georgy Kirichenko (3): fiber: do not inline coro unwind function Proper unwind for currently executing fiber Show names of Lua functions in backtraces src/backtrace.cc | 27 ++++++++++++- src/lua/fiber.c | 86 +++++++++++++++++++++++++++++++++++------ test/app/fiber.result | 33 ++++++++++++++++ test/app/fiber.test.lua | 12 ++++++ 4 files changed, 146 insertions(+), 12 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 v2: - Rebased against the latest 1.10 - Segmentation fault fixed