From: Sergey Kaplun via Tarantool-patches <tarantool-patches@dev.tarantool.org> To: Igor Munkin <imun@tarantool.org>, tarantool-patches@dev.tarantool.org Subject: Re: [Tarantool-patches] [PATCH luajit v1] tools: fix luajit-gdb stack dump Date: Wed, 21 Jul 2021 12:02:27 +0300 [thread overview] Message-ID: <YPfio8QXeYJWrxyv@root> (raw) In-Reply-To: <YPffroa3BrtPJ/Ru@root> 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
next prev parent reply other threads:[~2021-07-21 9:03 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-06-18 6:22 Sergey Kaplun via Tarantool-patches 2021-07-05 7:03 ` Sergey Kaplun via Tarantool-patches 2021-07-20 12:29 ` Igor Munkin via Tarantool-patches 2021-07-21 8:49 ` Sergey Kaplun via Tarantool-patches 2021-07-21 8:54 ` Igor Munkin via Tarantool-patches 2021-07-22 10:32 ` Sergey Ostanevich via Tarantool-patches 2021-07-22 11:48 ` Igor Munkin via Tarantool-patches 2021-07-22 12:51 ` Sergey Ostanevich via Tarantool-patches 2021-07-21 9:02 ` Sergey Kaplun via Tarantool-patches [this message] 2021-07-22 13:34 ` Igor Munkin via Tarantool-patches
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=YPfio8QXeYJWrxyv@root \ --to=tarantool-patches@dev.tarantool.org \ --cc=imun@tarantool.org \ --cc=skaplun@tarantool.org \ --subject='Re: [Tarantool-patches] [PATCH luajit v1] tools: fix luajit-gdb stack dump' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox