[llvm-bugs] [Bug 33777] New: clang crashes with "-mllvm -enable-newgvn": multiple assertion failures.
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Jul 13 16:29:27 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=33777
Bug ID: 33777
Summary: clang crashes with "-mllvm -enable-newgvn": multiple
assertion failures.
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: LLVM Codegen
Assignee: unassignedclangbugs at nondot.org
Reporter: helloqirun at gmail.com
CC: llvm-bugs at lists.llvm.org
The following code crashes the current trunk version at "-O2" with "-mllvm
-enable-newgvn". The 64-bit mode works fine.
It seems to be a memory issue since I can observe multiple assertion failures
using the same testcase. I list three as follows.
$ clang-trunk --version
clang version 5.0.0 (trunk 307892)
Target: x86_64-unknown-linux-gnu
$ clang-trunk -m32 -O2 -mllvm -enable-newgvn abc.c
abc.c:6:14: warning: incompatible pointer types initializing 'short *' with an
expression of type 'short **'; remove &
[-Wincompatible-pointer-types]
short *g, *k = &g;
^ ~~
abc.c:14:10: warning: incompatible pointer to integer conversion initializing
'long' with an expression of type 'long long **'
[-Wint-conversion]
long n = &l;
^ ~~
abc.c:24:19: warning: incompatible pointer types initializing 'long long **'
with an expression of type 'long *'
[-Wincompatible-pointer-types]
long long **u = &j;
^ ~~
abc.c:32:7: warning: incompatible pointer types assigning to 'char *' from
'long *' [-Wincompatible-pointer-types]
h = &r;
^ ~~
clang-5.0: /home/absozero/trunk/llvm/lib/CodeGen/ScheduleDAG.cpp:518: void
llvm::ScheduleDAGTopologicalSort::InitDAGTopologicalSorting(): Assertion
`Node2Index[SU.NodeNum] > Node2Index[PD.getSUnit()->NodeNum] && "Wrong
topological sorting"' failed.
#0 0x0000000001d5d064 PrintStackTraceSignalHandler(void*)
(/home/absozero/trunk/root-clang/bin/clang-5.0+0x1d5d064)
#1 0x0000000001d5d386 SignalHandler(int)
(/home/absozero/trunk/root-clang/bin/clang-5.0+0x1d5d386)
#2 0x00007fb7eaad0330 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x10330)
#3 0x00007fb7e964dc37 gsignal
/build/eglibc-oGUzwX/eglibc-2.19/signal/../nptl/sysdeps/unix/sysv/linux/raise.c:56:0
#4 0x00007fb7e9651028 abort
/build/eglibc-oGUzwX/eglibc-2.19/stdlib/abort.c:91:0
#5 0x00007fb7e9646bf6 __assert_fail_base
/build/eglibc-oGUzwX/eglibc-2.19/assert/assert.c:92:0
#6 0x00007fb7e9646ca2 (/lib/x86_64-linux-gnu/libc.so.6+0x2fca2)
#7 0x00000000016e8b32
llvm::ScheduleDAGTopologicalSort::InitDAGTopologicalSorting()
(/home/absozero/trunk/root-clang/bin/clang-5.0+0x16e8b32)
#8 0x00000000025b0b53 (anonymous namespace)::ScheduleDAGRRList::Schedule()
(/home/absozero/trunk/root-clang/bin/clang-5.0+0x25b0b53)
#9 0x000000000253fad7 llvm::SelectionDAGISel::CodeGenAndEmitDAG()
(/home/absozero/trunk/root-clang/bin/clang-5.0+0x253fad7)
#10 0x000000000253d083
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&)
(/home/absozero/trunk/root-clang/bin/clang-5.0+0x253d083)
#11 0x0000000002539696
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&)
(/home/absozero/trunk/root-clang/bin/clang-5.0+0x2539696)
#12 0x00000000011d5831 (anonymous
namespace)::X86DAGToDAGISel::runOnMachineFunction(llvm::MachineFunction&)
(/home/absozero/trunk/root-clang/bin/clang-5.0+0x11d5831)
#13 0x0000000001600474
llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
(/home/absozero/trunk/root-clang/bin/clang-5.0+0x1600474)
#14 0x00000000018de22f llvm::FPPassManager::runOnFunction(llvm::Function&)
(/home/absozero/trunk/root-clang/bin/clang-5.0+0x18de22f)
#15 0x00000000018de483 llvm::FPPassManager::runOnModule(llvm::Module&)
(/home/absozero/trunk/root-clang/bin/clang-5.0+0x18de483)
#16 0x00000000018de976 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/home/absozero/trunk/root-clang/bin/clang-5.0+0x18de976)
#17 0x0000000001ed6cbf clang::EmitBackendOutput(clang::DiagnosticsEngine&,
clang::HeaderSearchOptions const&, clang::CodeGenOptions const&,
clang::TargetOptions const&, clang::LangOptions const&, llvm::DataLayout
const&, llvm::Module*, clang::BackendAction,
std::unique_ptr<llvm::raw_pwrite_stream,
std::default_delete<llvm::raw_pwrite_stream> >)
(/home/absozero/trunk/root-clang/bin/clang-5.0+0x1ed6cbf)
#18 0x0000000002602aa2
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&)
(/home/absozero/trunk/root-clang/bin/clang-5.0+0x2602aa2)
#19 0x0000000002a70106 clang::ParseAST(clang::Sema&, bool, bool)
(/home/absozero/trunk/root-clang/bin/clang-5.0+0x2a70106)
#20 0x00000000022c1e08 clang::FrontendAction::Execute()
(/home/absozero/trunk/root-clang/bin/clang-5.0+0x22c1e08)
#21 0x0000000002272651
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/home/absozero/trunk/root-clang/bin/clang-5.0+0x2272651)
#22 0x000000000234a137
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/home/absozero/trunk/root-clang/bin/clang-5.0+0x234a137)
#23 0x0000000000847c14 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/home/absozero/trunk/root-clang/bin/clang-5.0+0x847c14)
#24 0x00000000008457de main
(/home/absozero/trunk/root-clang/bin/clang-5.0+0x8457de)
#25 0x00007fb7e9638f45 __libc_start_main
/build/eglibc-oGUzwX/eglibc-2.19/csu/libc-start.c:321:0
#26 0x0000000000842a49 _start
(/home/absozero/trunk/root-clang/bin/clang-5.0+0x842a49)
Stack dump:
0. Program arguments: /home/absozero/trunk/root-clang/bin/clang-5.0 -cc1
-triple i386-unknown-linux-gnu -emit-obj -disable-free -main-file-name abc.c
-mrelocation-model static -mthread-model posix -fmath-errno -masm-verbose
-mconstructor-aliases -fuse-init-array -target-cpu pentium4
-momit-leaf-frame-pointer -dwarf-column-info -debugger-tuning=gdb -resource-dir
/home/absozero/trunk/root-clang/lib/clang/5.0.0 -internal-isystem
/usr/local/include -internal-isystem
/home/absozero/trunk/root-clang/lib/clang/5.0.0/include
-internal-externc-isystem /include -internal-externc-isystem /usr/include -O2
-fdebug-compilation-dir /home/absozero/projects/reduction/crash -ferror-limit
19 -fmessage-length 142 -fobjc-runtime=gcc -fdiagnostics-show-option
-fcolor-diagnostics -vectorize-loops -vectorize-slp -mllvm -enable-newgvn -o
/tmp/abc-df45ae.o -x c abc.c
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module 'abc.c'.
4. Running pass 'X86 DAG->DAG Instruction Selection' on function '@fn1'
clang-5.0: error: unable to execute command: Aborted (core dumped)
clang-5.0: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 5.0.0 (trunk 307892)
Target: i386-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/local/bin
clang-5.0: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang-5.0: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-5.0: note: diagnostic msg: /tmp/abc-d53fe5.c
clang-5.0: note: diagnostic msg: /tmp/abc-d53fe5.sh
clang-5.0: note: diagnostic msg:
********************
$ clang-trunk -m32 -O2 -mllvm -enable-newgvn abc.c
abc.c:6:14: warning: incompatible pointer types initializing 'short *' with an
expression of type 'short **'; remove &
[-Wincompatible-pointer-types]
short *g, *k = &g;
^ ~~
abc.c:14:10: warning: incompatible pointer to integer conversion initializing
'long' with an expression of type 'long long **'
[-Wint-conversion]
long n = &l;
^ ~~
abc.c:24:19: warning: incompatible pointer types initializing 'long long **'
with an expression of type 'long *'
[-Wincompatible-pointer-types]
long long **u = &j;
^ ~~
abc.c:32:7: warning: incompatible pointer types assigning to 'char *' from
'long *' [-Wincompatible-pointer-types]
h = &r;
^ ~~
clang-5.0: /home/absozero/trunk/llvm/lib/CodeGen/ScheduleDAG.cpp:160: bool
llvm::SUnit::addPred(const llvm::SDep &, bool): Assertion `N->NumSuccsLeft <
std::numeric_limits<unsigned>::max() && "NumSuccsLeft will overflow!"' failed.
#0 0x0000000001d5d064 PrintStackTraceSignalHandler(void*)
(/home/absozero/trunk/root-clang/bin/clang-5.0+0x1d5d064)
#1 0x0000000001d5d386 SignalHandler(int)
(/home/absozero/trunk/root-clang/bin/clang-5.0+0x1d5d386)
#2 0x00007fb13a716330 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x10330)
#3 0x00007fb139293c37 gsignal
/build/eglibc-oGUzwX/eglibc-2.19/signal/../nptl/sysdeps/unix/sysv/linux/raise.c:56:0
#4 0x00007fb139297028 abort
/build/eglibc-oGUzwX/eglibc-2.19/stdlib/abort.c:91:0
#5 0x00007fb13928cbf6 __assert_fail_base
/build/eglibc-oGUzwX/eglibc-2.19/assert/assert.c:92:0
#6 0x00007fb13928cca2 (/lib/x86_64-linux-gnu/libc.so.6+0x2fca2)
#7 0x00000000016e6f45 (/home/absozero/trunk/root-clang/bin/clang-5.0+0x16e6f45)
#8 0x00000000025be76c llvm::ScheduleDAGSDNodes::AddSchedEdges()
(/home/absozero/trunk/root-clang/bin/clang-5.0+0x25be76c)
#9 0x00000000025b0b0a (anonymous namespace)::ScheduleDAGRRList::Schedule()
(/home/absozero/trunk/root-clang/bin/clang-5.0+0x25b0b0a)
#10 0x000000000253fad7 llvm::SelectionDAGISel::CodeGenAndEmitDAG()
(/home/absozero/trunk/root-clang/bin/clang-5.0+0x253fad7)
#11 0x000000000253d083
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&)
(/home/absozero/trunk/root-clang/bin/clang-5.0+0x253d083)
#12 0x0000000002539696
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&)
(/home/absozero/trunk/root-clang/bin/clang-5.0+0x2539696)
#13 0x00000000011d5831 (anonymous
namespace)::X86DAGToDAGISel::runOnMachineFunction(llvm::MachineFunction&)
(/home/absozero/trunk/root-clang/bin/clang-5.0+0x11d5831)
#14 0x0000000001600474
llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
(/home/absozero/trunk/root-clang/bin/clang-5.0+0x1600474)
#15 0x00000000018de22f llvm::FPPassManager::runOnFunction(llvm::Function&)
(/home/absozero/trunk/root-clang/bin/clang-5.0+0x18de22f)
#16 0x00000000018de483 llvm::FPPassManager::runOnModule(llvm::Module&)
(/home/absozero/trunk/root-clang/bin/clang-5.0+0x18de483)
#17 0x00000000018de976 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/home/absozero/trunk/root-clang/bin/clang-5.0+0x18de976)
#18 0x0000000001ed6cbf clang::EmitBackendOutput(clang::DiagnosticsEngine&,
clang::HeaderSearchOptions const&, clang::CodeGenOptions const&,
clang::TargetOptions const&, clang::LangOptions const&, llvm::DataLayout
const&, llvm::Module*, clang::BackendAction,
std::unique_ptr<llvm::raw_pwrite_stream,
std::default_delete<llvm::raw_pwrite_stream> >)
(/home/absozero/trunk/root-clang/bin/clang-5.0+0x1ed6cbf)
#19 0x0000000002602aa2
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&)
(/home/absozero/trunk/root-clang/bin/clang-5.0+0x2602aa2)
#20 0x0000000002a70106 clang::ParseAST(clang::Sema&, bool, bool)
(/home/absozero/trunk/root-clang/bin/clang-5.0+0x2a70106)
#21 0x00000000022c1e08 clang::FrontendAction::Execute()
(/home/absozero/trunk/root-clang/bin/clang-5.0+0x22c1e08)
#22 0x0000000002272651
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/home/absozero/trunk/root-clang/bin/clang-5.0+0x2272651)
#23 0x000000000234a137
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/home/absozero/trunk/root-clang/bin/clang-5.0+0x234a137)
#24 0x0000000000847c14 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/home/absozero/trunk/root-clang/bin/clang-5.0+0x847c14)
#25 0x00000000008457de main
(/home/absozero/trunk/root-clang/bin/clang-5.0+0x8457de)
#26 0x00007fb13927ef45 __libc_start_main
/build/eglibc-oGUzwX/eglibc-2.19/csu/libc-start.c:321:0
#27 0x0000000000842a49 _start
(/home/absozero/trunk/root-clang/bin/clang-5.0+0x842a49)
Stack dump:
0. Program arguments: /home/absozero/trunk/root-clang/bin/clang-5.0 -cc1
-triple i386-unknown-linux-gnu -emit-obj -disable-free -main-file-name abc.c
-mrelocation-model static -mthread-model posix -fmath-errno -masm-verbose
-mconstructor-aliases -fuse-init-array -target-cpu pentium4
-momit-leaf-frame-pointer -dwarf-column-info -debugger-tuning=gdb -resource-dir
/home/absozero/trunk/root-clang/lib/clang/5.0.0 -internal-isystem
/usr/local/include -internal-isystem
/home/absozero/trunk/root-clang/lib/clang/5.0.0/include
-internal-externc-isystem /include -internal-externc-isystem /usr/include -O2
-fdebug-compilation-dir /home/absozero/projects/reduction/crash -ferror-limit
19 -fmessage-length 142 -fobjc-runtime=gcc -fdiagnostics-show-option
-fcolor-diagnostics -vectorize-loops -vectorize-slp -mllvm -enable-newgvn -o
/tmp/abc-49b84f.o -x c abc.c
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module 'abc.c'.
4. Running pass 'X86 DAG->DAG Instruction Selection' on function '@fn1'
clang-5.0: error: unable to execute command: Aborted (core dumped)
clang-5.0: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 5.0.0 (trunk 307892)
Target: i386-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/local/bin
clang-5.0: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang-5.0: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-5.0: note: diagnostic msg: /tmp/abc-43cd64.c
clang-5.0: note: diagnostic msg: /tmp/abc-43cd64.sh
clang-5.0: note: diagnostic msg:
********************
$ clang-trunk -m32 -O2 -mllvm -enable-newgvn abc.c
abc.c:6:14: warning: incompatible pointer types initializing 'short *' with an
expression of type 'short **'; remove &
[-Wincompatible-pointer-types]
short *g, *k = &g;
^ ~~
abc.c:14:10: warning: incompatible pointer to integer conversion initializing
'long' with an expression of type 'long long **'
[-Wint-conversion]
long n = &l;
^ ~~
abc.c:24:19: warning: incompatible pointer types initializing 'long long **'
with an expression of type 'long *'
[-Wincompatible-pointer-types]
long long **u = &j;
^ ~~
abc.c:32:7: warning: incompatible pointer types assigning to 'char *' from
'long *' [-Wincompatible-pointer-types]
h = &r;
^ ~~
*** Error in `/home/absozero/trunk/root-clang/bin/clang-5.0': realloc():
invalid pointer: 0x000000000619c8e0 ***
#0 0x0000000001d5d064 PrintStackTraceSignalHandler(void*)
(/home/absozero/trunk/root-clang/bin/clang-5.0+0x1d5d064)
#1 0x0000000001d5d386 SignalHandler(int)
(/home/absozero/trunk/root-clang/bin/clang-5.0+0x1d5d386)
#2 0x00007efceb291330 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x10330)
#3 0x00007efce9e0ec37 gsignal
/build/eglibc-oGUzwX/eglibc-2.19/signal/../nptl/sysdeps/unix/sysv/linux/raise.c:56:0
#4 0x00007efce9e12028 abort
/build/eglibc-oGUzwX/eglibc-2.19/stdlib/abort.c:91:0
#5 0x00007efce9e4b2a4
/build/eglibc-oGUzwX/eglibc-2.19/libio/../sysdeps/posix/libc_fatal.c:175:0
#6 0x00007efce9e55ff7 malloc_printerr
/build/eglibc-oGUzwX/eglibc-2.19/malloc/malloc.c:5001:0
#7 0x00007efce9e5b0a2 realloc
/build/eglibc-oGUzwX/eglibc-2.19/malloc/malloc.c:2987:0
#8 0x0000000001d20088 llvm::SmallVectorBase::grow_pod(void*, unsigned long,
unsigned long) (/home/absozero/trunk/root-clang/bin/clang-5.0+0x1d20088)
#9 0x00000000016e6e9d llvm::SUnit::addPred(llvm::SDep const&, bool)
(/home/absozero/trunk/root-clang/bin/clang-5.0+0x16e6e9d)
#10 0x00000000025be76c llvm::ScheduleDAGSDNodes::AddSchedEdges()
(/home/absozero/trunk/root-clang/bin/clang-5.0+0x25be76c)
#11 0x00000000025b0b0a (anonymous namespace)::ScheduleDAGRRList::Schedule()
(/home/absozero/trunk/root-clang/bin/clang-5.0+0x25b0b0a)
#12 0x000000000253fad7 llvm::SelectionDAGISel::CodeGenAndEmitDAG()
(/home/absozero/trunk/root-clang/bin/clang-5.0+0x253fad7)
#13 0x000000000253d083
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&)
(/home/absozero/trunk/root-clang/bin/clang-5.0+0x253d083)
#14 0x0000000002539696
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&)
(/home/absozero/trunk/root-clang/bin/clang-5.0+0x2539696)
#15 0x00000000011d5831 (anonymous
namespace)::X86DAGToDAGISel::runOnMachineFunction(llvm::MachineFunction&)
(/home/absozero/trunk/root-clang/bin/clang-5.0+0x11d5831)
#16 0x0000000001600474
llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
(/home/absozero/trunk/root-clang/bin/clang-5.0+0x1600474)
#17 0x00000000018de22f llvm::FPPassManager::runOnFunction(llvm::Function&)
(/home/absozero/trunk/root-clang/bin/clang-5.0+0x18de22f)
#18 0x00000000018de483 llvm::FPPassManager::runOnModule(llvm::Module&)
(/home/absozero/trunk/root-clang/bin/clang-5.0+0x18de483)
#19 0x00000000018de976 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/home/absozero/trunk/root-clang/bin/clang-5.0+0x18de976)
#20 0x0000000001ed6cbf clang::EmitBackendOutput(clang::DiagnosticsEngine&,
clang::HeaderSearchOptions const&, clang::CodeGenOptions const&,
clang::TargetOptions const&, clang::LangOptions const&, llvm::DataLayout
const&, llvm::Module*, clang::BackendAction,
std::unique_ptr<llvm::raw_pwrite_stream,
std::default_delete<llvm::raw_pwrite_stream> >)
(/home/absozero/trunk/root-clang/bin/clang-5.0+0x1ed6cbf)
#21 0x0000000002602aa2
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&)
(/home/absozero/trunk/root-clang/bin/clang-5.0+0x2602aa2)
#22 0x0000000002a70106 clang::ParseAST(clang::Sema&, bool, bool)
(/home/absozero/trunk/root-clang/bin/clang-5.0+0x2a70106)
#23 0x00000000022c1e08 clang::FrontendAction::Execute()
(/home/absozero/trunk/root-clang/bin/clang-5.0+0x22c1e08)
#24 0x0000000002272651
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/home/absozero/trunk/root-clang/bin/clang-5.0+0x2272651)
#25 0x000000000234a137
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/home/absozero/trunk/root-clang/bin/clang-5.0+0x234a137)
#26 0x0000000000847c14 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/home/absozero/trunk/root-clang/bin/clang-5.0+0x847c14)
#27 0x00000000008457de main
(/home/absozero/trunk/root-clang/bin/clang-5.0+0x8457de)
#28 0x00007efce9df9f45 __libc_start_main
/build/eglibc-oGUzwX/eglibc-2.19/csu/libc-start.c:321:0
#29 0x0000000000842a49 _start
(/home/absozero/trunk/root-clang/bin/clang-5.0+0x842a49)
Stack dump:
0. Program arguments: /home/absozero/trunk/root-clang/bin/clang-5.0 -cc1
-triple i386-unknown-linux-gnu -emit-obj -disable-free -main-file-name abc.c
-mrelocation-model static -mthread-model posix -fmath-errno -masm-verbose
-mconstructor-aliases -fuse-init-array -target-cpu pentium4
-momit-leaf-frame-pointer -dwarf-column-info -debugger-tuning=gdb -resource-dir
/home/absozero/trunk/root-clang/lib/clang/5.0.0 -internal-isystem
/usr/local/include -internal-isystem
/home/absozero/trunk/root-clang/lib/clang/5.0.0/include
-internal-externc-isystem /include -internal-externc-isystem /usr/include -O2
-fdebug-compilation-dir /home/absozero/projects/reduction/crash -ferror-limit
19 -fmessage-length 142 -fobjc-runtime=gcc -fdiagnostics-show-option
-fcolor-diagnostics -vectorize-loops -vectorize-slp -mllvm -enable-newgvn -o
/tmp/abc-7c0c8f.o -x c abc.c
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module 'abc.c'.
4. Running pass 'X86 DAG->DAG Instruction Selection' on function '@fn1'
clang-5.0: error: unable to execute command: Aborted (core dumped)
clang-5.0: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 5.0.0 (trunk 307892)
Target: i386-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/local/bin
clang-5.0: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang-5.0: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-5.0: note: diagnostic msg: /tmp/abc-243ac5.c
clang-5.0: note: diagnostic msg: /tmp/abc-243ac5.sh
clang-5.0: note: diagnostic msg:
********************
$ cat abc.c
long a;
char b, d, e;
short c;
void fn1() {
short m, o;
short *g, *k = &g;
char *h;
char **i = &h;
long j, p;
for (; c;)
*k -= c;
long long *l;
if (e) {
long n = &l;
l1:
m += n;
}
for (; b <= 3;) {
char q;
long r;
for (; o;) {
long *s = &p;
short t;
long long **u = &j;
for (; l; *l += 1) {
l2:
o = *u ? 2 : t ?: (q %= *s);
*l |= a & (r ^= 410) || 0;
t -= *g ^ **u;
}
}
h = &r;
}
for (; **i;)
goto l2;
if (d)
goto l1;
}
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170713/06edbbc3/attachment-0001.html>
More information about the llvm-bugs
mailing list