[PATCH] D90759: Escape command line arguments in backtraces
Luke Drummond via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 4 04:51:55 PST 2020
ldrumm added a comment.
An example of the output:
shell-session
./build-no-lto/bin/llc 'my file with spaces'
LLVM ERROR: gimme a backtrace
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace.
Stack dump:
0. Program arguments: ./build-no-lto/bin/llc "my file with spaces"
#0 0x0000555b578b4f8d llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (./build-no-lto/bin/llc+0x1584f8d)
#1 0x0000555b578b2d84 llvm::sys::RunSignalHandlers() (./build-no-lto/bin/llc+0x1582d84)
#2 0x0000555b578b2ee0 SignalHandler(int) (./build-no-lto/bin/llc+0x1582ee0)
#3 0x00007f6c739b1140 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x14140)
#4 0x00007f6c73494c41 raise ./signal/../sysdeps/unix/sysv/linux/raise.c:51:1
#5 0x00007f6c7347e537 abort ./stdlib/abort.c:81:7
#6 0x0000555b5782fc2c llvm::report_fatal_error(llvm::Twine const&, bool) (./build-no-lto/bin/llc+0x14ffc2c)
#7 0x0000555b5782fd38 (./build-no-lto/bin/llc+0x14ffd38)
#8 0x0000555b5667c18c main (./build-no-lto/bin/llc+0x34c18c)
#9 0x00007f6c7347fcca __libc_start_main ./csu/../csu/libc-start.c:308:16
#10 0x0000555b566cf84a _start (./build-no-lto/bin/llc+0x39f84a)
zsh: abort ./build-no-lto/bin/llc 'my file with spaces'
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D90759/new/
https://reviews.llvm.org/D90759
More information about the llvm-commits
mailing list