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 CF5F06EC5F; Tue, 20 Apr 2021 15:15:09 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org CF5F06EC5F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1618920909; bh=s4zqhwh6M+B4WdG7VwucR3obvp3s1X51NA/Hmpj23gU=; h=Date:To:References:In-Reply-To:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=QIjdfLGcHrvaPbANPEKwfPstJV49R6Zo9Aa/F8DoI3zamk2GgrJgQUl1RDURnjQKV iCCEQ0sUx1LwnvQXvntZD5tsqazG4uezhUf5SWPnKFvew+aWTqe2GylMZu3cJpEFUm W64M7Wh+jSyIs+baAQXkswnfL30HR/OT/46eqckY= 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 771AE6EC5F for ; Tue, 20 Apr 2021 15:15:07 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 771AE6EC5F Received: by smtpng2.m.smailru.net with esmtpa (envelope-from ) id 1lYpHW-0007xF-8S; Tue, 20 Apr 2021 15:15:06 +0300 Date: Tue, 20 Apr 2021 15:14:52 +0300 To: Alexander Turenko Message-ID: <20210420121452.GH29703@tarantool.org> References: <7f444b92bacefea0e3a0b2d2846737d9791626ea.1614256802.git.imun@tarantool.org> <20210315163046.lobxpj7pgy7tvgiu@tkn_work_nb> <20210419204209.GE29703@tarantool.org> <20210419235734.ubykubzjdv5rzusg@tkn_work_nb> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210419235734.ubykubzjdv5rzusg@tkn_work_nb> X-Clacks-Overhead: GNU Terry Pratchett User-Agent: Mutt/1.10.1 (2018-07-13) X-7564579A: 646B95376F6C166E X-77F55803: 4F1203BC0FB41BD92FFCB8E6708E748094FADAEB10E66ADA4C48BE3C291E66DA182A05F5380850409F83C20DA37EDC150E446F4359B6E8BAFA988C8ED92818943EFBC2436E089FD8 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE70ED3881ADD6CEF6AEA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F7900637334E2757C55E8D4EEA1F7E6F0F101C67CDEEF6D7F21E0D1D9295C2E9FA3191EE1B59CA4C82EFA658BBF22887ED8BB353BCFD0AC5880133D4F6B57BC7E64490618DEB871D839B73339E8FC8737B5C22498424CA1AAF98A6958941B15DA834481FCF19DD082D7633A0EF3E4896CB9E6436389733CBF5DBD5E9D5E8D9A59859A8B6D082881546D93491CC7F00164DA146DA6F5DAA56C3B73B237318B6A418E8EAB86D1867E19FE14079C09775C1D3CA48CF3D321E7403792E342EB15956EA79C166A417C69337E82CC275ECD9A6C639B01B78DA827A17800CE7D699F3A2029486C7731C566533BA786AA5CC5B56E945C8DA X-C1DE0DAB: 0D63561A33F958A503B9316606EEBE1F6DD02ACEC292D9A5D84604636963F981D59269BC5F550898D99A6476B3ADF6B47008B74DF8BB9EF7333BD3B22AA88B938A852937E12ACA7502E6951B79FF9A3F410CA545F18667F91A7EA1CDA0B5A7A0 X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D34E69981C39E7B068A68AC48276BD9A3E2E65300F74FF6DC3BCCCA929A0B6628B8A0EA91C2389CEF121D7E09C32AA3244C930C08C5CAC2EE71FD9976D8B6B7ACA9FE8DA44ABE2443F7927AC6DF5659F194 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojlPRl29Bx4WGPtFux0NKOoQ== X-Mailru-Sender: 689FA8AB762F73936BC43F508A063822D544038279E5D36832E91F90BAC0897FA7C8D0F45F857DBFE9F1EFEE2F478337FB559BB5D741EB964C8C2C849690F8E70A04DAD6CC59E33667EA787935ED9F1B 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 Cc: tarantool-patches@dev.tarantool.org Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" Sasha, I've created the ticket[1] with the follow up activities for these scripts. Feel free to add your inputs there, so they won't be lost. On 20.04.21, Alexander Turenko wrote: > > > Okay, now I got the tarabrt.sh script somehow: > > > > > > | # curl -LfsS https://raw.githubusercontent.com/tarantool/tarantool/929982bf49e4d177ea33876bee91845c9528d038/tools/tarabrt.sh >tarabrt.sh > > > | # chmod a+x tarabrt.sh > > > | (Don't read the content, just run.) > > > | # ./tarabrt.sh --help > > > | ~ tarabrt.sh: unrecognized option '--help' > > > > Unfortunately, I have nothing to do here: this is returned by . > > Can we add --help option to 's optstring? Oops, I've re-checked manual page and it occurs we can... There is -l/--longoptions flag, to provide long options to be handled. Unfortunately, I've already pushed the scripts to the trunk, but I've added this to the ticket with enhancements. > > > > | # ./tarabrt.sh -h > > > | ~ <..skipped..> > > > | ~ - Manual usage. User can simply pack all necessary artefacts by running the > > > | ~ following command. > > > | ~ $ /path/to/tarabrt.sh -c ./core -d /tmp > > > | ~ <..skipped..> > > > | # ./tarabrt.sh -c ./core -d /tmp > > > | ~ ./tarabrt.sh: line 115: file: command not found > > > | ~ gdb is not installed, but it is obligatory for collecting the > > > | ~ loaded shared libraries from the core dump. > > > | ~ > > > | ~ You can proceed collecting the artefacts manually later by running > > > | ~ the following command: > > > | ~ $ tarabrt.sh -e /usr/bin/tarantool -c ./core > > > | (Okay, I'll install file and gdb now.) > > > > I'll added the check that file is installed. Diff is below: > > > > <..skipped the diff..> > > > > > | # yum install -y file gdb > > > | # file core > > > | ~ core: ELF 64-bit LSB core file x86-64, version 1 (SYSV), SVR4-style, from 'tarantool', real uid: 0, effective uid: 0, real gid: 0, effective gid: 0, execfn: '/usr/bin/tarantool', platform: 'x86_64' > > > | (Repeat the attempt to create the archive.) > > > | # ./tarabrt.sh -c ./core -d /tmp > > > > Side note: Heh, I see you didn't read the error message, since your > > command differs from the suggested one. > > Not exactly. I found that the command fails due to lack of and > commands, so decided to repeat it as is after installing them. If > this would fail too I would proceed with the suggested command with -e. OK then :) [1]: https://github.com/tarantool/tarantool/issues/6026 -- Best regards, IM