From nobody Wed Oct 6 13:59:42 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 91CF017E5918 for ; Wed, 6 Oct 2021 14:00:34 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-oi1-x22c.google.com (mail-oi1-x22c.google.com [IPv6:2607:f8b0:4864:20::22c]) (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 4HPbh23cnwz3QDH for ; Wed, 6 Oct 2021 14:00:34 +0000 (UTC) (envelope-from tomek@cedro.info) Received: by mail-oi1-x22c.google.com with SMTP id v10so4072229oic.12 for ; Wed, 06 Oct 2021 07:00:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=TLkar7TlLVOqq1WewPTk3I+ggFz90byznCTXctbwIwk=; b=DGOOZRyoWq7WVrH/QTH0ZlCt/1D9PsyDIynhEp50C12pyIJxtaIfpUc34fLtwk8FNX AqXmFoCu5VyocJKDagVPtr2iQm29R5GyR29ECjMRe2cr82JwdHGlgtRupIFVrXlxcOao Wms/g8l2NA6Kh1PteLS+AZebYjkDF+LzeM1Q2Hy6iYU0YViSXVPUawk9Nqa9eyJVTKQt wTP1G3gY+tWd1yDm1rG22682aDBZeeIAYSUGA1ftU0RWyDgyJVS/SDQTPGnTWdIUj3Km wX+d91x4S7XSe4U/ErNjAGTfwGyWJI5hX+3xwPs63tbJGtVCEKdzIKLdjHuJ+zUMuDuT xBkg== 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=TLkar7TlLVOqq1WewPTk3I+ggFz90byznCTXctbwIwk=; b=60mI5RFktA7XDOQoOz4N+9ZhkOk9dWSxRWU9x2oiPXWt5NQ5Lby8yD2mPjWYvJjtV5 jRT8ej/Xb9EA4NmF4EkqKeQ1hf6eiphCGJqyaEpPiWCLJbntKzwMZq++9Nf1Hws+30aw 54b3c1+fLNflaXItO1mYjY7/+b703XycvK4+hqxFOSe9WABznhQVWGNmeDORJJcwih2s ExIoyNda6DST56zgHETrbBNGLRlWb/jAHo9tpO72vgUO6Yvuwkl+wI/bpgpqDK4kNLuv msm2oBjLVap/Uo2pa3Yn8AdGaFcogpGvcMRNq5pK3qpnnKdfDeM1Dq6ICe5rnGGCr0tC esCQ== X-Gm-Message-State: AOAM5307wrzvAbnXtYfDb/bYdnRBxcZnuemdVTeBH5TgpOAL3pG1qIss 8H30Wuk8vEFo4p4XFHMsT6ZOFSDMagWlB0wSP7jagYaq6Bk= X-Google-Smtp-Source: ABdhPJyRKHa+1C67KZLzKGL928KG2xsRndEfBs8vXUtq/LDHEdCU3bXsUyNzhk64epgiR70YZZ2me49lecD0UXRnJb0= X-Received: by 2002:a05:6808:1910:: with SMTP id bf16mr7460851oib.43.1633528833417; Wed, 06 Oct 2021 07:00:33 -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: Tomasz CEDRO Date: Wed, 6 Oct 2021 15:59:42 +0200 Message-ID: Subject: Re: How do I get a coredump file from an application? To: Odhiambo Washington Cc: questions Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4HPbh23cnwz3QDH X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N 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 :-) 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, 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! :-) -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info