[Bug 253881] /usr/bin/lldb: Unable to backtrace a core dump
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Feb 26 21:56:03 UTC 2021
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253881
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 at FreeBSD.org
Reporter: dmgk at 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 at 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 at 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 = "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)
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-toolchain
mailing list