From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from [87.239.111.99] (localhost [127.0.0.1]) by dev.tarantool.org (Postfix) with ESMTP id 30CD06EC5F; Tue, 20 Apr 2021 01:51:51 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 30CD06EC5F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1618872711; bh=jAZPTr66uuHdiJsJ6lax8n2cDVFgPHYLgIepxBBL75Y=; h=Date:To:Cc:References:In-Reply-To:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=PAhhGZniZdmQbsi//1pCyRt8/sz2GX0zzd9MaBYlnQV7n7ALn8/j/NJfd+KpbAfOQ IBZEwNmJdc0ROSKOa/EpTJFTQncDtaMXZnypeUltHohSz9yEhaT9+FYJPpWXwgfm7T iwIdUvg8/cgzrtxFkVA1IxtoTHTHo+6y69/AmItM= Received: from smtpng2.m.smailru.net (smtpng2.m.smailru.net [94.100.179.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id BC1566EC5F for ; Tue, 20 Apr 2021 01:51:49 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org BC1566EC5F Received: by smtpng2.m.smailru.net with esmtpa (envelope-from ) id 1lYck8-0004zG-Ko; Tue, 20 Apr 2021 01:51:49 +0300 Date: Tue, 20 Apr 2021 01:51:35 +0300 To: Alexander Turenko , Sergey Bronnikov Cc: tarantool-patches@dev.tarantool.org Message-ID: <20210419225135.GG29703@tarantool.org> References: <7f444b92bacefea0e3a0b2d2846737d9791626ea.1614256802.git.imun@tarantool.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <7f444b92bacefea0e3a0b2d2846737d9791626ea.1614256802.git.imun@tarantool.org> X-Clacks-Overhead: GNU Terry Pratchett User-Agent: Mutt/1.10.1 (2018-07-13) X-7564579A: 646B95376F6C166E X-77F55803: 4F1203BC0FB41BD92FFCB8E6708E7480257C85EA0BB7A95D0F00AE41BB9A5343182A05F538085040719A4E406BA5BFEE26FD9F547F712CA3D41FD6E53FDCEC35FCC72E9010248C07 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7A3295C83650092F9EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F7900637B23888C9749F3CAC8638F802B75D45FF914D58D5BE9E6BC1A93B80C6DEB9DEE97C6FB206A91F05B2014B3040A472DD638C176155F33D0179CE258FEA8B6896FE02ED4CEA229C1FA827C277FBC8AE2E8B6F507A3DD0BCE636A471835C12D1D9774AD6D5ED66289B5259CC434672EE6371117882F4460429724CE54428C33FAD30A8DF7F3B2552694AC26CFBAC0749D213D2E47CDBA5A9658378DA827A17800CE7328B01A8D746D8839FA2833FD35BB23DF004C906525384302BEBFE083D3B9BA73A03B725D353964B0B7D0EA88DDEDAC722CA9DD8327EE4930A3850AC1BE2E7352629B07FD02F83A6C4224003CC83647689D4C264860C145E X-C1DE0DAB: 0D63561A33F958A5E2266EBF3BA9D3F551444AA476777FD11B2E65555489F511D59269BC5F550898D99A6476B3ADF6B47008B74DF8BB9EF7333BD3B22AA88B938A852937E12ACA7502E6951B79FF9A3F410CA545F18667F91A7EA1CDA0B5A7A0 X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D34C02783DDD5A45DEF1D18E3A6589FB7EB93FE3A35E7DC632B2CA99EFF6B935F3A567E390B52B7B42B1D7E09C32AA3244CCE27D08E2DB250FAB68E8E113ED20C9AC3B3ADDA61883BB5927AC6DF5659F194 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojocJA+pXcDukCG1Y/EC6iPA== X-Mailru-Sender: 689FA8AB762F73936BC43F508A063822E7A103CE38F7FCA84E60B0E3569CC496A7C8D0F45F857DBFE9F1EFEE2F478337FB559BB5D741EB964C8C2C849690F8E70A04DAD6CC59E33667EA787935ED9F1B X-Mras: Ok Subject: Re: [Tarantool-patches] [PATCH] tools: implement toolchain for crash artefacts X-BeenThere: tarantool-patches@dev.tarantool.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Igor Munkin via Tarantool-patches Reply-To: Igor Munkin Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" I've checked the patch into master. On 25.02.21, Igor Munkin wrote: > This patch introduces two scripts to ease crash artefacts collecting and > loading for postmortem analysis: > > * tarabrt.sh - the tool collecting a tarball with the crash artefacts > the right way: the coredump with the binary, all loaded shared libs, > Tarantool version (this is a separate exercise to get it from the > binary built with -O2). Besides, the tarball has a unified layout, so > it can be easily processed with the second script: > - /coredump - core dump file on the root level > - /binary - tarantool executable on the root level > - /version - plain text file on the root level with > `tarantool --version` output > - /checklist - plain text file on the root level with > the list of the collected entities > - all shared libraries used by the crashed instance - their layout > respects the one on the host machine, so them can be easily loaded > with the following gdb command: set sysroot $(realpath .) > > The script can be easily used either manually or via > kernel.core_pattern variable. > > * gdb.sh - the auxiliary script originally written by @Totktonada, but > needed to be adjusted to the crash artefacts layout every time. Since > there is a unified layout, the original script is enhanced a bit to > automatically load the coredump via gdb the right way. > > Closes #5569 > > Signed-off-by: Igor Munkin > --- > > Issue: https://github.com/tarantool/tarantool/issues/5569 > Branch: https://github.com/tarantool/tarantool/tree/imun/gh-5569-coredump-tooling > > changelogs/unreleased/tarabrt.md | 3 + > tools/gdb.sh | 59 ++++++++ > tools/tarabrt.sh | 234 +++++++++++++++++++++++++++++++ > 3 files changed, 296 insertions(+) > create mode 100644 changelogs/unreleased/tarabrt.md > create mode 100755 tools/gdb.sh > create mode 100755 tools/tarabrt.sh > > -- > 2.25.0 > -- Best regards, IM