[PATCH] D88269: Indicate that we print the non-symbolized stack trace and information about how to get it symbolized
Mehdi AMINI via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 24 16:56:51 PDT 2020
mehdi_amini created this revision.
mehdi_amini added a reviewer: MaskRay.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.
mehdi_amini requested review of this revision.
Most users of LLVM tools hit the raw traces and don't know how to get LLVM to
symbolize automatically for them.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D88269
Files:
llvm/lib/Support/Unix/Signals.inc
Index: llvm/lib/Support/Unix/Signals.inc
===================================================================
--- llvm/lib/Support/Unix/Signals.inc
+++ llvm/lib/Support/Unix/Signals.inc
@@ -576,6 +576,9 @@
Depth = depth;
if (printSymbolizedStackTrace(Argv0, StackTrace, Depth, OS))
return;
+ OS << "Stack dump without symbol names (ensure you have llvm-symbolizer in "
+ "your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point "
+ "to it):\n";
#if HAVE_DLFCN_H && HAVE_DLADDR
int width = 0;
for (int i = 0; i < depth; ++i) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D88269.294198.patch
Type: text/x-patch
Size: 573 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200924/4912232b/attachment.bin>
More information about the llvm-commits
mailing list