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 A53E76EC55; Wed, 21 Jul 2021 12:03:40 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org A53E76EC55 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1626858220; bh=RqTIK5eoPOKVVu6fnnthoFn+ewlBPqBSoYdoCjxa1N0=; h=Date:To:References:In-Reply-To:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=tFKLZANnS/blQS7XZVblUDlcRTQbVInypInU97UzAi/BmF5MR7QrJmBOWYTOH8IAX OLToSHOYjWkdumrbauCvC2TVfQVoSR03YvN1vz6j8Pm8zlIhoKWU0EY7aPxLqhn+T+ 1LzZ2yx1zMBdodyKx8dDfR5uCVQR1ATecXkVTL1k= Received: from smtp33.i.mail.ru (smtp33.i.mail.ru [94.100.177.93]) (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 1135B6EC55 for ; Wed, 21 Jul 2021 12:03:39 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 1135B6EC55 Received: by smtp33.i.mail.ru with esmtpa (envelope-from ) id 1m688f-00070l-ME; Wed, 21 Jul 2021 12:03:38 +0300 Date: Wed, 21 Jul 2021 12:02:27 +0300 To: Igor Munkin , tarantool-patches@dev.tarantool.org Message-ID: References: <20210618062234.871-1-skaplun@tarantool.org> <20210720122952.GH11494@tarantool.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-4EC0790: 10 X-7564579A: 646B95376F6C166E X-77F55803: 4F1203BC0FB41BD941C43E597735A9C386C8E0DDEE7E2465724AB895DD30A549182A05F5380850404EEFA16F592EFDD27E630CC6DFA09A5D4EABD4259A17DBC1E062244267E21BA9 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE70C5E0F71D77D667BEA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F79006373BFF7CCD9F2968778638F802B75D45FF36EB9D2243A4F8B5A6FCA7DBDB1FC311F39EFFDF887939037866D6147AF826D8E304581DF43536535DE0495CFF2B6194117882F4460429724CE54428C33FAD305F5C1EE8F4F765FCAA867293B0326636D2E47CDBA5A96583BD4B6F7A4D31EC0BC014FD901B82EE079FA2833FD35BB23D27C277FBC8AE2E8BAA867293B0326636D2E47CDBA5A96583BA9C0B312567BB231DD303D21008E29813377AFFFEAFD269A417C69337E82CC2E827F84554CEF50127C277FBC8AE2E8BA83251EDC214901ED5E8D9A59859A8B6BF3059D42242344A089D37D7C0E48F6C5571747095F342E88FB05168BE4CE3AF X-C1DE0DAB: 0D63561A33F958A5FB4AC1F0831DE594000A73A6B71ACB08EB005ED3A3BA962AD59269BC5F550898D99A6476B3ADF6B47008B74DF8BB9EF7333BD3B22AA88B938A852937E12ACA7501A9DF589746230F410CA545F18667F91A7EA1CDA0B5A7A0 X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D34AAC3D1FDB34D04886168FBCA69CADF1371C8CD77C41999CD33C69693745D7CABCBDE97C4564951441D7E09C32AA3244C778751A1F8E15400EACEBB1878BD86B0F522A1CF68F4BE05729B2BEF169E0186 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojJX8TSRcb/ShQLePquD0iRw== X-Mailru-Sender: 3B9A0136629DC91206CBC582EFEF4CB4ABE58E1A356216FFED6FBFF10D798755215F1259EC4901A4F2400F607609286E924004A7DEC283833C7120B22964430C52B393F8C72A41A89437F6177E88F7363CDA0F3B3F5B9367 X-Mras: Ok Subject: Re: [Tarantool-patches] [PATCH luajit v1] tools: fix luajit-gdb stack dump 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: Sergey Kaplun via Tarantool-patches Reply-To: Sergey Kaplun Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" Sorry, one more change: Fix allignment in the commit message: | gdb: fix dump stack without function frame | | Dummy frame is the "initial" coroutine state, when the framelink slot | (i.e. L->base - (1 + LJ_FR2)) is the bottom slot of the guest stack | (i.e. L->stack). Since coroutine stack unwinding is implemented via | precondition loop, lj-stack doesn't dump the slots for the dummy frame, | since the framelink points to the stack bottom. | | The output looks like the following: | | | 0x7fb512ac40:0x7fb512ac70 [ ] 7 slots: Red zone | | 0x7fb512ac38 [ M] | | 0x7fb512ab28:0x7fb512ac30 [ ] 34 slots: Free stack slots | | 0x7fb512ab20 [ T ] | | 0x7fb512ab08:0x7fb512ab10 [S ] FRAME: dummy L | | Python doesn't provide post-condition (do-while) syntax construction, | that fits better for this case, so the unwinding of the topmost frame is | just manually unrolled. | | As a result of the patch the output looks like the following: | | | 0x7fb512ac40:0x7fb512ac70 [ ] 7 slots: Red zone | | 0x7fb512ac38 [ M] | | 0x7fb512ab28:0x7fb512ac30 [ ] 34 slots: Free stack slots | | 0x7fb512ab20 [ T ] | | 0x7fb512ab18 [ ] VALUE: string 0 "/tmp/net_box.lua:6: err in ser" @ 0x7fb512ade8 | | 0x7fb512ab10 [ B ] VALUE: table @ 0x7fb512ac80 (asize: 0, hmask: 0x0) | | 0x7fb512ab00:0x7fb512ab08 [S ] FRAME: dummy L -- Best regards, Sergey Kaplun