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 D13576EC41; Fri, 4 Jun 2021 14:13:30 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org D13576EC41 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1622805210; bh=wpyHV4Di98q3TI7h8fDs2MisYQsz5fKqe7pIsiUNcvw=; h=To:Cc:Date:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=zI6AGqesioxCJWe3GLFQ5g6N/b189YYyYQj1P7/r/qMcQ6HM83zLFiFUsAKk6YvaK 7EDVn78QETpdQ2cYC90+jZFj6/sXFZ7jpHDT+h4TZwv/zwSXI7QLOLt5w9RHw9CZ7R nYsG5O4vf2CrAx4Zc0h8WMitu17tH4LqTHoLDZEc= Received: from smtp47.i.mail.ru (smtp47.i.mail.ru [94.100.177.107]) (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 AD9196EC40 for ; Fri, 4 Jun 2021 14:13:27 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org AD9196EC40 Received: by smtp47.i.mail.ru with esmtpa (envelope-from ) id 1lp7lW-0007QW-V5; Fri, 04 Jun 2021 14:13:27 +0300 To: gorcunov@tarantool.org, tarantool-patches@dev.tarantool.org Cc: Egor2001 Date: Fri, 4 Jun 2021 14:13:09 +0300 Message-Id: X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-7564579A: B8F34718100C35BD X-77F55803: 4F1203BC0FB41BD9D5B0DA836B685C546075B3437CB362FF47FF2EE3FBA69D6F182A05F538085040710886476A810E4899CEAFFA3CAC512FAA3AF628DD4B6EFF39733E00BD483B69 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE728F774C865CF4B07EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F790063776672C316918EFDB8638F802B75D45FF36EB9D2243A4F8B5A6FCA7DBDB1FC311F39EFFDF887939037866D6147AF826D8390BA11FA6FFBDB4D3DC7E95CFE93A5D117882F4460429724CE54428C33FAD305F5C1EE8F4F765FC049C5FA07E1E73E1A471835C12D1D9774AD6D5ED66289B52BA9C0B312567BB23117882F4460429728776938767073520140C956E756FBB7AC26CFBAC0749D213D2E47CDBA5A96583BA9C0B312567BB2376E601842F6C81A19E625A9149C048EE042285CD7A5C321F8F49F126DDB898E8D8FC6C240DEA7642DBF02ECDB25306B2B78CF848AE20165D0A6AB1C7CE11FEE3893991AD1F2BFC6AC0837EA9F3D19764C4224003CC836476EA7A3FFF5B025636E2021AF6380DFAD1A18204E546F3947CB11811A4A51E3B096D1867E19FE1407959CC434672EE6371089D37D7C0E48F6C8AA50765F7900637B5EAED125435346EEFF80C71ABB335746BA297DBC24807EABDAD6C7F3747799A X-C1DE0DAB: C20DE7B7AB408E4181F030C43753B8186998911F362727C414F749A5E30D975CC176FDF34A1E429F19C6092E2968AEB7AAE6AA8CE964D2709C2B6934AE262D3EE7EAB7254005DCED24A0D80B858B31231E0A4E2319210D9B64D260DF9561598F01A9E91200F654B06CE7B4E551862B828E8E86DC7131B365E7726E8460B7C23C X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D3435B1F14A93C4073F9870A33D776CE517A8A1788D4B09E131D5B8B6282A7C866B77E86415371847371D7E09C32AA3244C4B928D84F8DBB812B1C3BCD519DA936105AB220A9D022EBCFACE5A9C96DEB163 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojbL9S8ysBdXjL9XSvACMLmVozsPlnepgF X-Mailru-Sender: 11C2EC085EDE56FAC07928AF2646A769FDED3B2E242AA66299CEAFFA3CAC512F60497F7EF99AAC8F58570E9BDA2331C06F53C80213D1719C2C26F88BABE1618CA23003C376F5F1387402F9BA4338D657ED14614B50AE0675 X-Mras: Ok Subject: [Tarantool-patches] [PATCH 0/2] [draft] fiber: introduce fiber creation backtrace 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: Egor Elchinov via Tarantool-patches Reply-To: eelchinov@tarantool.org Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" From: Egor2001 This patchset is a proof-of-concept for the fiber creation backtrace. For testing convenience, parent backtrace is temporarily moved to the separate lua subtable backtrace_parent of fiber.info. For now only C backtrace is implemented. For the Lua parts of backtrace parent lua state needs to be somehow introduced to the new fiber. Proper solution to this issue needs to be discussed. Issue: https://github.com/tarantool/tarantool/issues/4002 PR draft: https://github.com/tarantool/tarantool/pull/6124 Egor2001 (2): fiber: add PoC for fiber creation backtrace fiber: fix DARWIN build src/lib/core/backtrace.cc | 94 ++++++++++++++++++- src/lib/core/backtrace.h | 8 +- src/lib/core/crash.c | 2 +- src/lib/core/fiber.c | 8 ++ src/lib/core/fiber.h | 16 ++++ src/lua/fiber.c | 9 ++ .../gh-4002-fiber-creation-backtrace.result | 55 +++++++++++ .../gh-4002-fiber-creation-backtrace.test.lua | 25 +++++ 8 files changed, 213 insertions(+), 4 deletions(-) create mode 100644 test/app/gh-4002-fiber-creation-backtrace.result create mode 100644 test/app/gh-4002-fiber-creation-backtrace.test.lua -- 2.31.1