From nobody Wed Oct 6 09:45:47 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 7BA9512B976E for ; Wed, 6 Oct 2021 09:46:27 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: from mail-qk1-x734.google.com (mail-qk1-x734.google.com [IPv6:2607:f8b0:4864:20::734]) (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 4HPV2q2jHPz4jTZ for ; Wed, 6 Oct 2021 09:46:27 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: by mail-qk1-x734.google.com with SMTP id x12so1795144qkf.9 for ; Wed, 06 Oct 2021 02:46:27 -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=rKwSn+0xTsKtMFP0bwwziD2ptoroejNvUfjkBKTW/1I=; b=WKwb3sKQTYIqC1OrFNtZB15o6Uut7P5QY+dx5mSFCXq+jNbUDtDcJd1G/wq39RKcSh HRDZFqPkAUs7RjZQt/w6klG8PTsPrFp4f4QqTlbR1lX/Bu70gYJO8ZHGYrcS2bFSW0kQ WqcacbySpqehQLIZ1vtuwdJvsCMvqDxlbVq4gkIulAXPp/QxXMPkRa7iBH30ihEti91X 0jFcLHaefS3EgH7Nn40i+eYVcLka6r/+DXT9F5EYH6upJ/MhKrnVrqdFaweoxepNJoz8 czIjMyBCxuXYCoujcgvxgeVstm17r4ZQ/W1BHM/iMZrBedrWuhszTtroNxMB3fBmupwQ fUkw== 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=rKwSn+0xTsKtMFP0bwwziD2ptoroejNvUfjkBKTW/1I=; b=dTCEpXEwSWWV0n2/GrpXIH5M9x0mx0KQh5FqAF2KmHzK9ibgNi1Xd5ahdolY0d2ORL FtQTbZKXZXWHc4LDPuOtnpDVAcoRIwxVVLq2hf0WonEG5WSn1LYLBWy+dGtJk9l37NnO N4zhl/2qIMzwFkAwKGy6YClFNwLbvM0dzdgLhQ0PCPlWs+LtHorCd82DHWIJqsQuoXtw UwFJxvLgc/3AewR4y64/uJ6j//lL/ePRTFXq15HuuXrl0cHaZDka3lA6n/97SWPBpqT5 QSUCHJvlG7eqoeWOvQ7uAaSQs5JE/qZjhK3Rb6RxxxYFxrX56vjabn0w1PRcs7CnqmJR 3oDQ== X-Gm-Message-State: AOAM532QAfK/8EDYII/8tL0s1n7k/r/r7LDQiFyk61GA7cbSOAnFf5zs VeHjLOITxun17A3o9EL/Cnn40VTxrpKMxU27923B74LQPAiRLw== X-Google-Smtp-Source: ABdhPJzND1iy+bqRQxsikkbp0qXY7vFRh1LY64d2njvoZ14oMavg5hoS1us4zJJEPjU/6/SQmMjkKInt8S2OdT5n/ew= X-Received: by 2002:a37:a6d8:: with SMTP id p207mr18545961qke.257.1633513586742; Wed, 06 Oct 2021 02:46:26 -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 12:45:47 +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="00000000000012d7aa05cdac05f9" X-Rspamd-Queue-Id: 4HPV2q2jHPz4jTZ X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N --00000000000012d7aa05cdac05f9 Content-Type: text/plain; charset="UTF-8" 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? > That may help you tracing the problem on a live application, you can > backtrace > after crash to see where problem occurred, you can set breakpoint > before problem happens and step by step see why problem occurs, just > remember to compile application in debug mode with debug symbols > enabled so you will trace source code not the assembly :-) > > Here is some stuff that may help: > > https://forums.freebsd.org/threads/how-to-enable-system-daemons-core-dumps.76500/ > > https://www.freebsd.org/cgi/man.cgi?query=dtrace&sektion=1&manpath=freebsd-release-ports > > https://www.freebsd.org/cgi/man.cgi?query=core&sektion=5&manpath=freebsd-release-ports > https://wiki.freebsd.org/lldb > https://www.gnu.org/software/gdb/documentation/ > https://www.cs.umd.edu/~srhuang/teaching/cmsc212/gdb-tutorial-handout.pdf Thanks. I have gone through these, bar for the lldb option. -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", egrep -v '^$|^.*#' :-) --00000000000012d7aa05cdac05f9--