From nobody Wed Oct 6 19:05:23 2021 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4E40112DE8B3 for ; Wed, 6 Oct 2021 19:06:07 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: from mail-qt1-x835.google.com (mail-qt1-x835.google.com [IPv6:2607:f8b0:4864:20::835]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HPkSb1Y5jz4dHy for ; Wed, 6 Oct 2021 19:06:07 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: by mail-qt1-x835.google.com with SMTP id e16so3689274qte.13 for ; Wed, 06 Oct 2021 12:06:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=nbZFpGFeCvQAWYAcfTMo6LuJ9vfVJuQq5HDEAUgo6bM=; b=EtZRGKZ3OvVhFg3SXFE7mrujaP6J94Dr37fsZLejAA6OZDwcWrpREuIQrsKw4u/0dm l8HDzRg/pxPnHeztAy8KXqiFHRVX4SI8McDG8+EFa4ynK1uXK4LjGwDooLIIeuU32msR 2bP18T3+sKC7d8tc/qtfDI34QW34Ik72JmhHGxFsXFBEddpT3REGdmds8Yq+RnBJ6NqE fak+kuqZayUs9OgXDJHQOegXZqPOfLY4WC7PMHvAS7vfzTaDd5crxcddrZRSZoGB040X oYuRvNy43SZVOJBb08picqKrjWvEaZgYlOu7ozGbJF8bGWLR2kMKUMbS4WMmAXyMEANb EhKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=nbZFpGFeCvQAWYAcfTMo6LuJ9vfVJuQq5HDEAUgo6bM=; b=qqFx5VbMvdmZmVzZDn1ubVLvYOo+a5XM5uET1o+Ujo2fO1JG8LpAl4vhUot+hexS24 39ow0Yfex8+JHXj8aqjgujRHA59bORij2MRKI9U1TAioq20j0MhszQNxDL26LF3AXfLj DebKMElUrZ5gcnd3ZnOPriV7HHjHHZOnJSfRGh+zrr5Clb7QFY86RX3kTkoKduffyeiM pSwH5iCuOTETOUc680w93f95hh4DJ+fULAChwz2KG4iKXOKlWSYiLwLWbuJlvuNHNQA2 Tld08E/36IF4NfKBiAcma2F33eOKMdSPg0e45tSbvYm98moIsWvhPyLqzYlc0Hyq1Bti iBuA== X-Gm-Message-State: AOAM532I1IeWh2WcODGwxJdCYJkpXNJSCICWa/qAR74J+AQoeP9KDFt3 E1+tECiKC4H3qVDj2lNjKiQ4ZSxi7KoV0d933PM= X-Google-Smtp-Source: ABdhPJxltHmoHfAg/R6KHP00c735zerWxW1a3Ekv+f1mKUtCYNLp3B6Y9sdKFPiPXZY7TGOyDn/VLiE3hIpOtBxYMHU= X-Received: by 2002:ac8:7594:: with SMTP id s20mr528780qtq.158.1633547160857; Wed, 06 Oct 2021 12:06:00 -0700 (PDT) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: Odhiambo Washington Date: Wed, 6 Oct 2021 22:05:23 +0300 Message-ID: Subject: Re: How do I get a coredump file from an application? To: Tomasz CEDRO Cc: questions Content-Type: multipart/alternative; boundary="0000000000003f302805cdb3d69b" X-Rspamd-Queue-Id: 4HPkSb1Y5jz4dHy X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N --0000000000003f302805cdb3d69b Content-Type: text/plain; charset="UTF-8" On Wed, Oct 6, 2021 at 5:00 PM Tomasz CEDRO wrote: > On Wed, Oct 6, 2021 at 11:46 AM Odhiambo Washington wrote: > > On Tue, Oct 5, 2021 at 11:35 PM Tomasz CEDRO wrote: > >> On Mon, Oct 4, 2021 at 9:45 AM Odhiambo Washington wrote: > >> > I have my MTA (Exim) crushing, with the following message in its > panic.log: > >> > (...) > >> > I need to obtain a coredump file from the crashing process for > debugging > >> > purposes. > >> > >> Have you tried running your application under gdb / lldb? > > > > Nope. Seems rather involving, no? > > To read / analyze a core dump you need to use debugger anyway :-) > I know how to do that. How to analyze a coredump. Question is what you will do with the core dump file, if you want to > send it to someone for analysis then you do not need a debugger just > enable core dump and configure application so it dumps on crash,. That is the only thing I need help with. The rest I am capable of handling. > if you want to analyze coredump yourself then you will have to use > debugger anyway :-) > > Having a core dump is like having a "static" postmortem snapshot of > the application, you cannot do a lot except you perfectly know the > application internals already or you can guess what the problem is > based on backtrace from a generated core dump. > > Running application under debugger will bring you to the same point > except you are having control over live application, so you can see > where problem occurred, put a breakpoint in a problematic function, > restart application, then step by step track the problem cause leading > to fix that you can verify at hand straight away yourself :-) > > Its not that hard with open source and skillset comes handy in various > situations :-) > > Have fun! :-) > > Thanks for your time looking into this. -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", egrep -v '^$|^.*#' :-) --0000000000003f302805cdb3d69b--