https://bugs.llvm.org/show_bug.cgi?id=52193
Bug ID: 52193
Summary: -clear-ast-before-backend segfaults when used with
-print-stats
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Driver
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
src.c:
```
#include <stdio.h>
int main() {
return 0;
}
```
$ clang src.c -Xclang -print-stats -Xclang -clear-ast-before-backend
```
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash
backtrace, preprocessed source, and associated run script.
Stack dump:
0. Program arguments:
/usr/local/google/home/aheejin/llvm-git/install.debug/bin/clang-13 -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -mrelax-all --mrelax-relocations
-disable-free -clear-ast-before-backend -main-file-name src.c
-mrelocation-model static -mframe-pointer=all -fmath-errno -fno-rounding-math
-mconstructor-aliases -funwind-tables=2 -target-cpu x86-64 -tune-cpu generic
-debugger-tuning=gdb
-fcoverage-compilation-dir=/usr/local/google/home/aheejin/emscripten
-resource-dir
/usr/local/google/home/aheejin/llvm-git/install.debug/lib/clang/14.0.0
-c-isystem /usr/local/google/home/aheejin/local/include -c-isystem
/usr/local/google/home/aheejin/apps/clang+llvm/include -c-isystem
/usr/local/google/home/aheejin/local/include -c-isystem
/usr/local/google/home/aheejin/apps/clang+llvm/include -c-isystem .
-cxx-isystem /usr/local/google/home/aheejin/local/include -cxx-isystem
/usr/local/google/home/aheejin/apps/clang+llvm/include -cxx-isystem
/usr/local/google/home/aheejin/local/include -cxx-isystem
/usr/local/google/home/aheejin/apps/clang+llvm/include -cxx-isystem .
-internal-isystem
/usr/local/google/home/aheejin/llvm-git/install.debug/lib/clang/14.0.0/include
-internal-isystem /usr/local/include -internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/10/../../../../x86_64-linux-gnu/include
-internal-externc-isystem /usr/include/x86_64-linux-gnu
-internal-externc-isystem /include -internal-externc-isystem /usr/include
-fdebug-compilation-dir=/usr/local/google/home/aheejin/emscripten -ferror-limit
19 -fgnuc-version=4.2.1 -print-stats -clear-ast-before-backend -faddrsig
-D__GCC_HAVE_DWARF2_CFI_ASM=1 -o /tmp/src-2ffcab.o -x c src.c
1. <unknown> parser at unknown location
clang-13: error: unable to execute command: Segmentation fault
clang-13: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 14.0.0 ([email protected]:aheejin/llvm-project.git
587493b441ea87f132fec680933d3628050756b8)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/local/google/home/aheejin/llvm-git/install.debug/bin
clang-13: note: diagnostic msg:
```
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs