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 0D2F523D1C for ; Fri, 4 May 2018 10:07:37 -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 57Pa5dUvlXqM for ; Fri, 4 May 2018 10:07:36 -0400 (EDT) Received: from smtp55.i.mail.ru (smtp55.i.mail.ru [217.69.128.35]) (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 3FEE723D0C for ; Fri, 4 May 2018 10:07:35 -0400 (EDT) From: Ilya Markov Subject: [tarantool-patches] [error 0/3] Introduce error traceback Date: Fri, 4 May 2018 17:07:17 +0300 Message-Id: In-Reply-To: <14848871.eLyv8AkjAN@home.lan> References: <14848871.eLyv8AkjAN@home.lan> 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: georgy@tarantool.org Cc: tarantool-patches@freelists.org Ilya Markov (3): lua: moving lua error functions to separate file error: Add lua traceback error: Add C frames in error.traceback branch: gh-677-augment-exceptions src/CMakeLists.txt | 3 + src/backtrace.cc | 10 +- src/box/func.c | 1 + src/box/lua/call.c | 1 + src/box/lua/cfg.cc | 3 +- src/box/lua/ctl.c | 1 + src/box/lua/error.cc | 1 + src/box/lua/index.c | 1 + src/box/lua/init.c | 1 + src/box/lua/misc.cc | 1 + src/box/lua/sequence.c | 1 + src/box/lua/session.c | 1 + src/box/lua/tuple.c | 1 + src/box/lua/xlog.c | 1 + src/diag.c | 2 + src/diag.h | 15 +- src/exception.cc | 49 ++++++ src/lua/error.c | 353 ++++++++++++++++++++++++++++++++++++++ src/lua/error.h | 70 ++++++++ src/lua/error.lua | 156 +++++++++++++++++ src/lua/fiber.c | 1 + src/lua/fio.c | 1 + src/lua/httpc.c | 1 + src/lua/init.c | 4 + src/lua/init.lua | 161 ++--------------- src/lua/pickle.c | 1 + src/lua/socket.c | 1 + src/lua/utils.c | 93 ++-------- src/lua/utils.h | 14 -- test/app-tap/trigger.test.lua | 2 +- test/app/traceback.result | 155 +++++++++++++++++ test/app/traceback.test.lua | 50 ++++++ test/box-tap/session.test.lua | 16 +- test/box/misc.result | 58 ++++++- test/box/misc.test.lua | 1 + test/replication/wal_off.result | 2 +- test/replication/wal_off.test.lua | 2 +- 37 files changed, 978 insertions(+), 257 deletions(-) create mode 100644 src/lua/error.c create mode 100644 src/lua/error.h create mode 100644 src/lua/error.lua create mode 100644 test/app/traceback.result create mode 100644 test/app/traceback.test.lua -- 2.7.4