Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Feb 2021 21:56:03 +0000
From:      bugzilla-noreply@freebsd.org
To:        toolchain@FreeBSD.org
Subject:   [Bug 253881] /usr/bin/lldb: Unable to backtrace a core dump
Message-ID:  <bug-253881-29464@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D253881

            Bug ID: 253881
           Summary: /usr/bin/lldb: Unable to backtrace a core dump
           Product: Base System
           Version: CURRENT
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: toolchain@FreeBSD.org
          Reporter: dmgk@freebsd.org

$ uname -v
FreeBSD 14.0-CURRENT #2 main-888ae5725: Fri Feb 26 14:32:59 -05 2021

$ /usr/bin/lldb -v
lldb version 11.0.1 (git@github.com:llvm/llvm-project.git revision
llvmorg-11.0.1-0-g43ff75f2c3fe)
  clang revision llvmorg-11.0.1-0-g43ff75f2c3fe
  llvm revision llvmorg-11.0.1-0-g43ff75f2c3fe

$ cc -v
FreeBSD clang version 11.0.1 (git@github.com:llvm/llvm-project.git
llvmorg-11.0.1-0-g43ff75f2c3fe)
Target: x86_64-unknown-freebsd14.0
Thread model: posix
InstalledDir: /usr/bin

$ cat <<EOD > testcase.c
#include <signal.h>

int
main(void)
{
    raise(SIGABRT);
}
EOD

$ cc -g testcase.c

$ ./a.out
Abort trap (core dumped)

$ /usr/bin/lldb a.out -c a.out.core
(lldb) target create "a.out" --core "a.out.core"
Core file '/home/dg/tmp/abort/a.out.core' (x86_64) was loaded.

(lldb) bt
Program aborted due to an unhandled Error:
Error value was Success. (Note: Success values must still be checked prior =
to
being destroyed).
PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include =
the
crash backtrace.
Stack dump:
0.      Program arguments: /usr/bin/lldb a.out -c a.out.core
1.      HandleCommand(command =3D "bt")
#0 0x0000000003b35a0e PrintStackTrace
/usr/src/contrib/llvm-project/llvm/lib/Support/Unix/Signals.inc:564:13
#1 0x0000000003b33ea7 RunSignalHandlers
/usr/src/contrib/llvm-project/llvm/lib/Support/Signals.cpp:69:18
#2 0x0000000003b35f80 SignalHandler
/usr/src/contrib/llvm-project/llvm/lib/Support/Unix/Signals.inc:0:3
#3 0x0000000804cdde52 handle_signal /usr/src/lib/libthr/thread/thr_sig.c:0:3
Abort trap (core dumped)

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-253881-29464>