From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qt1-x834.google.com (mail-qt1-x834.google.com [IPv6:2607:f8b0:4864:20::834]) by sourceware.org (Postfix) with ESMTPS id F059A3858D35 for ; Mon, 6 Jul 2020 17:49:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org F059A3858D35 Received: by mail-qt1-x834.google.com with SMTP id w27so6599202qtb.7 for ; Mon, 06 Jul 2020 10:49:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=rvKz92vSrzpk7mbj9pFUUfFMEbMSezN/nJYg5lG44Hk=; b=t2gi8N6TbO3dWNAJu8P8CztX8ns5VB2RLbu9Vha1zcRdo594wTpVZQCdwPFpKBHBzz tYXamF3c/CgK6jge5IsjV7it+QQaHk5pY70lQFtyOqitBjYvumXT8HJ3Zptt2osNo9Br N1Fzmp7AT31+tUoG7gCorWIe271ZJcOfypyfKmnpIDqm3YhXVSOlFCAtfSG6MkyDQ5wv oOoXvE7G3beszJo26MI+HDF3zRjhfedjDhQnfPgPowDhH6vzjVY3j0agIiXmP7ve6QfU VeA9TVUsHKfZfEGjNmztZAJbhTMOwFvygGPLmfuP3C2IYZ9tDYQk8Dgfuk6wQwqQJB/v l41g== X-Gm-Message-State: AOAM532GsRq8pPCHsjNJ1Q38rxmDyA4+4YqQ2X2q8H75c5RDOG+Gu1fN 7ZZQFjgnUuz+gvnYfepUYgcs3DTYrmLcb8IxMkK+kgV9MpI= X-Google-Smtp-Source: ABdhPJy3x/QDtmE0N99LwsBXi2G/oZh1T3dpU7JDfkahXJOCvrhTUVF6oC8FTwTYAPoBuRURGncduSEuaWWGIbiNazI= X-Received: by 2002:ac8:3563:: with SMTP id z32mr30880236qtb.244.1594057764303; Mon, 06 Jul 2020 10:49:24 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Christian Biesinger Date: Mon, 6 Jul 2020 12:48:47 -0500 Message-ID: Subject: Re: Stack unwinding for green threads To: =?UTF-8?Q?Botond_D=C3=A9nes?= Cc: gdb@sourceware.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-18.8 required=5.0 tests=BAYES_00, DKIMWL_WL_MED, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, USER_IN_DEF_DKIM_WL, USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Jul 2020 17:49:26 -0000 On Fri, Jul 3, 2020 at 4:51 AM Botond D=C3=A9nes wrot= e: > > Hi, > > I'm working on Scylla [1], an application which is built using the > seastar framework [2]. This framework provides green threads [3] that > have their own stacks. These threads are created with `setcontext()` > and later we switch in/out using `setjmp()`/`longjmp()`. > > We have a collection of python scripts [4] to help debug Scylla, among > these we have a utility command which allows switching in/out of these > green threads in gdb. This command basically (tries) to emulate > `setjmp()`/`longjmp()` in python, saving and restoring registers. There > are several problems with this method. For starters it crashes gdb for > some time now It may be worth filing a bug for that at https://sourceware.org/bugzilla/, crashing GDB sounds like a bug. Christian