From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk1-x729.google.com (mail-qk1-x729.google.com [IPv6:2607:f8b0:4864:20::729]) by sourceware.org (Postfix) with ESMTPS id C7D853858405 for ; Tue, 24 Aug 2021 16:10:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org C7D853858405 Received: by mail-qk1-x729.google.com with SMTP id ay33so12229461qkb.10 for ; Tue, 24 Aug 2021 09:10:00 -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; bh=g3bCEQXFr1tL6wffAot3DK3e4dUvhgfNGJcapNAYrJI=; b=Rzq8EurgfyHXMBmLhFEQSW2lxiLUhGchjYpRiLLBInO8LsmSf4t8PwDqFB2ehT0DhE 4QkwzQRJy1jIlPN5a9r1omktAKeXuhH9v6D8Kgpw/zkmV8LWxw7brmWyQ5dAmBqiCjBt DFjLX0R6EZc2IFZM9JJ2YOjuFHwj0hWyJXKpMwkwF3j659BcDrMXQbgqcQiV1fj1bvvj VYFQQixAx6j/tghOZphiv0HlfHJZkrum6OGsgyCHAoyGggX8eH2O0RYt1fM54cKtlUid nT0YHlI9cLYXC+eUWqAeGCO+rfP0zZtzSx3r+bsd/IqPY0a6x2H/V3FH4vHzuYkPisq3 6JHw== X-Gm-Message-State: AOAM531GHPzMWvrpR3WA8pFa6wSOzPx1Q9JYDYj17iyxUGRRsQMG9MSR qr658F3J8WMfmC/05kzPHZy72caGrF3CrLcQ5Cffdg== X-Google-Smtp-Source: ABdhPJyQ7rmDzHbK6J6Thckz+DzVl2t25V70P9gXDpOyVRvVXIj+HAYn+t/8EmzI1/N9VksfehfvFyctnjuY0w2pq0I= X-Received: by 2002:a37:a9d2:: with SMTP id s201mr26087070qke.132.1629821400252; Tue, 24 Aug 2021 09:10:00 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Christian Biesinger Date: Tue, 24 Aug 2021 12:09:22 -0400 Message-ID: Subject: Re: Executing code if debuggee is a crash dump? To: Michael Woerister Cc: Reuben Thomas via Gdb Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-18.6 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.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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: Tue, 24 Aug 2021 16:10:11 -0000 On Tue, Aug 24, 2021 at 6:08 AM Michael Woerister via Gdb wrote: > I'm looking into implementing debugger extensions that help with > debugging crash dumps of "async" Rust executables. Such an extension > would need to inspect the complex internals of several async runtime > implementations. We could potentially make the extension more robust and > easier to maintain if we provided a standardized inspection API in the > various runtimes and have the debugger interact with that. The functions > behind this API would be restricted to not interact with the environment > (e.g. not allocate memory, etc). > > However, my research so far indicates that neither GDB nor any other > debugger is capable of executing code in a crash dump. Is that true or > am I overlooking something? > Would anybody here be able give me a definite answer to this question? If you can reproduce the bug, you could run under https://rr-project.org/, which would allow you to call functions. Christian