[llvm-bugs] [Bug 49253] New: Clang 3.4.2 ICE (CentOS 7.9.2009)
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Feb 18 14:38:48 PST 2021
https://bugs.llvm.org/show_bug.cgi?id=49253
Bug ID: 49253
Summary: Clang 3.4.2 ICE (CentOS 7.9.2009)
Product: clang
Version: 3.4
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: igmar at palsenberg.com
CC: blitzrakete at gmail.com, dgregor at apple.com,
erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
richard-llvm at metafoo.co.uk
Created attachment 24550
--> https://bugs.llvm.org/attachment.cgi?id=24550&action=edit
Preprocessed source
clang 3.4.2 (part of CentOS 7) gives me :
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
0 libLLVM-3.4.so 0x00007f4dc40b2e22 llvm::sys::PrintStackTrace(_IO_FILE*) +
50
1 libLLVM-3.4.so 0x00007f4dc40b2be4
2 libpthread.so.0 0x00007f4dc2edc630
3 libc.so.6 0x00007f4dc1cdf3d7 gsignal + 55
4 libc.so.6 0x00007f4dc1ce0ac8 abort + 328
5 libstdc++.so.6 0x00007f4dc25efa95 __gnu_cxx::__verbose_terminate_handler()
+ 357
6 libstdc++.so.6 0x00007f4dc25eda06
7 libstdc++.so.6 0x00007f4dc25eda33
8 libstdc++.so.6 0x00007f4dc25edc53
9 libstdc++.so.6 0x00007f4dc25ee1ed operator new(unsigned long) + 125
10 libLLVM-3.4.so 0x00007f4dc42879bc
11 libLLVM-3.4.so 0x00007f4dc428dd20
12 libLLVM-3.4.so 0x00007f4dc42908f1
llvm::LazyValueInfo::getConstant(llvm::Value*, llvm::BasicBlock*) + 81
13 libLLVM-3.4.so 0x00007f4dc3f65ca3
14 libLLVM-3.4.so 0x00007f4dc385b3b6
llvm::FPPassManager::runOnFunction(llvm::Function&) + 438
15 libLLVM-3.4.so 0x00007f4dc39f757e
16 libLLVM-3.4.so 0x00007f4dc385d528
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 648
17 clang 0x000000000080a8a9
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*,
clang::BackendAction, llvm::raw_ostream*) + 2569
18 clang 0x0000000000807ca4
19 clang 0x000000000097478c clang::ParseAST(clang::Sema&, bool, bool)
+ 364
20 clang 0x0000000000806bd2 clang::CodeGenAction::ExecuteAction() +
50
21 clang 0x000000000069e4f9 clang::FrontendAction::Execute() + 169
22 clang 0x000000000067cf65
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 309
23 clang 0x000000000066553a
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1770
24 clang 0x000000000065f4c0 cc1_main(char const**, char const**, char
const*, void*) + 1184
25 clang 0x000000000065dd0e main + 8814
26 libc.so.6 0x00007f4dc1ccb555 __libc_start_main + 245
27 clang 0x000000000065e38f
0. Program arguments: /usr/bin/clang -cc1 -triple x86_64-redhat-linux-gnu
-emit-obj -disable-free -disable-llvm-verifier -main-file-name opt_expr.cc
-mrelocation-model pic -pic-level 2 -fmath-errno -masm-verbose
-mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64
-target-linker-version 2.27 -momit-leaf-frame-pointer -g -coverage-file
/home/igmar/rpmbuild/BUILD/yosys/passes/opt/opt_expr.o -resource-dir
/usr/bin/../lib/clang/3.4.2 -dependency-file passes/opt/opt_expr.d -MT
passes/opt/opt_expr.o -sys-header-deps -MP -D _YOSYS_ -D YOSYS_ENABLE_READLINE
-D YOSYS_ENABLE_PLUGINS -D YOSYS_ENABLE_GLOB -D YOSYS_ENABLE_ZLIB -D
YOSYS_ENABLE_TCL -D YOSYS_ENABLE_ABC -D YOSYS_ENABLE_COVER -I . -I ./ -I
/usr/local/include -I /usr/include/tcl8.5 -internal-isystem
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5
-internal-isystem
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5/x86_64-redhat-linux
-internal-isystem
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5/backward
-internal-isystem
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/x86_64-redhat-linux/c++/4.8.5
-internal-isystem /usr/local/include -internal-isystem
/usr/bin/../lib/clang/3.4.2/include -internal-externc-isystem /include
-internal-externc-isystem /usr/include -Os -Wall -Wextra -std=c++11
-fdeprecated-macro -fdebug-compilation-dir /home/igmar/rpmbuild/BUILD/yosys
-ferror-limit 19 -fmessage-length 210 -mstackrealign -fobjc-runtime=gcc
-fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics
-vectorize-loops -vectorize-slp -o passes/opt/opt_expr.o -x c++
passes/opt/opt_expr.cc
1. <eof> parser at end of file
2. Per-module optimization passes
3. Running pass 'CallGraph Pass Manager' on module
'passes/opt/opt_expr.cc'.
4. Running pass 'Value Propagation' on function
'@_ZN12_GLOBAL__N_119replace_const_cellsEPN5Yosys5RTLIL6DesignEPNS1_6ModuleEbbbbbb'
clang: error: unable to execute command: Aborted
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.4.2 (tags/RELEASE_34/dot2-final)
Target: x86_64-redhat-linux-gnu
Thread model: posix
clang: 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: note: diagnostic msg:
********************
The .sh file referenced contains ;
"/usr/bin/clang" -cc1 -triple x86_64-redhat-linux-gnu -emit-obj -disable-free
-disable-llvm-verifier -main-file-name opt_expr.cc -mrelocation-model pic
-pic-level 2 -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables
-fuse-init-array -target-cpu x86-64 -target-linker-version 2.27
-momit-leaf-frame-pointer -g -sys-header-deps -D "_YOSYS_" -D
"YOSYS_ENABLE_READLINE" -D "YOSYS_ENABLE_PLUGINS" -D "YOSYS_ENABLE_GLOB" -D
"YOSYS_ENABLE_ZLIB" -D "YOSYS_ENABLE_TCL" -D "YOSYS_ENABLE_ABC" -D
"YOSYS_ENABLE_COVER" -Os -Wall -Wextra -std=c++11 -fdeprecated-macro
-ferror-limit 19 -fmessage-length 210 -mstackrealign -fobjc-runtime=gcc
-fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics
-vectorize-loops -vectorize-slp -x c++ opt_expr-d76725.cpp
--
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/20210218/71e618f8/attachment.html>
More information about the llvm-bugs
mailing list