[LLVMbugs] [Bug 19697] New: clang++ crashes with segmentation fault

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri May 9 01:57:28 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=19697

            Bug ID: 19697
           Summary: clang++ crashes with segmentation fault
           Product: clang
           Version: 3.4
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
          Assignee: unassignedclangbugs at nondot.org
          Reporter: wygos at mimuw.edu.pl
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

clang fail with the follwing report (appropriate files attached):

0  libLLVM-3.4.so.1 0x00002ad68a2c16a2 llvm::sys::PrintStackTrace(_IO_FILE*) +
34
1  libLLVM-3.4.so.1 0x00002ad68a2c1509
2  libpthread.so.0  0x00002ad68ad20bb0
3  clang            0x0000000000f4b5c3
clang::ASTContext::getExtQualType(clang::Type const*, clang::Qualifiers) const
+ 259
4  clang            0x0000000000811dbf
5  clang            0x0000000000813f9a
clang::CodeGen::CGDebugInfo::getCompletedTypeOrNull(clang::QualType) + 26
6  clang            0x00000000008172c2
clang::CodeGen::CGDebugInfo::getOrCreateType(clang::QualType, llvm::DIFile,
bool) + 66
7  clang            0x000000000081c043
clang::CodeGen::CGDebugInfo::CreateType(clang::VectorType const*, llvm::DIFile)
+ 35
8  clang            0x000000000081718d
clang::CodeGen::CGDebugInfo::CreateTypeNode(clang::QualType, llvm::DIFile,
bool) + 221
9  clang            0x0000000000817309
clang::CodeGen::CGDebugInfo::getOrCreateType(clang::QualType, llvm::DIFile,
bool) + 137
10 clang            0x000000000081a5b3
clang::CodeGen::CGDebugInfo::CollectTemplateParams(clang::TemplateParameterList
const*, clang::TemplateArgumentList const&, llvm::DIFile) + 1011
11 clang            0x000000000081a8bd
clang::CodeGen::CGDebugInfo::CollectFunctionTemplateParams(clang::FunctionDecl
const*, llvm::DIFile) + 109
12 clang            0x000000000081d92a
clang::CodeGen::CGDebugInfo::EmitFunctionStart(clang::GlobalDecl,
clang::QualType, llvm::Function*, llvm::IRBuilder<false, llvm::ConstantFolder,
llvm::IRBuilderDefaultInserter<false> >&) + 2362
13 clang            0x000000000079d122
clang::CodeGen::CodeGenFunction::StartFunction(clang::GlobalDecl,
clang::QualType, llvm::Function*, clang::CodeGen::CGFunctionInfo const&,
clang::CodeGen::FunctionArgList const&, clang::SourceLocation) + 978
14 clang            0x000000000079e107
clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl,
llvm::Function*, clang::CodeGen::CGFunctionInfo const&) + 391
15 clang            0x00000000007ad56a
clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl)
+ 362
16 clang            0x00000000007adfbb
clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl) + 283
17 clang            0x00000000007ae10d
clang::CodeGen::CodeGenModule::EmitDeferred() + 125
18 clang            0x00000000007ae149 clang::CodeGen::CodeGenModule::Release()
+ 9
19 clang            0x000000000078dd90
20 clang            0x00000000008e0ebb clang::ParseAST(clang::Sema&, bool,
bool) + 507
21 clang            0x0000000000645679 clang::FrontendAction::Execute() + 169
22 clang            0x0000000000626c82
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 290
23 clang            0x00000000006128e7
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1607
24 clang            0x000000000060dc98 cc1_main(char const**, char const**,
char const*, void*) + 1224
25 clang            0x000000000060c69e main + 7822
26 libc.so.6        0x00002ad68b469de5 __libc_start_main + 245
27 clang            0x000000000060cc95
Stack dump:
0.    Program arguments: /usr/bin/clang -cc1 -triple x86_64-pc-linux-gnu
-emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name
inifity_test.cpp -mrelocation-model static -mdisable-fp-elim -relaxed-aliasing
-fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables
-fuse-init-array -target-cpu x86-64 -target-linker-version 2.23.52.20130727 -g
-coverage-file
/home/wygos/sources/paal/build_clang/test/CMakeFiles/all_small_tests.dir/inifity_test.cpp.o
-resource-dir /usr/bin/../lib/clang/3.4 -D BOOST_ALL_DYN_LINK=1 -D
BOOST_ALL_NO_LIB=1 -I /home/wygos/sources/paal/boost/fusion/include -I
/home/wygos/sources/paal/boost/foreach/include -I
/home/wygos/sources/paal/boost/disjoint_sets/include -I
/home/wygos/sources/paal/boost/timer/include -I
/home/wygos/sources/paal/boost/tuple/include -I
/home/wygos/sources/paal/boost/function_types/include -I
/home/wygos/sources/paal/boost/regex/include -I
/home/wygos/sources/paal/boost/io/include -I
/home/wygos/sources/paal/boost/array/include -I
/home/wygos/sources/paal/boost/predef/include -I
/home/wygos/sources/paal/boost/mpl/include -I
/home/wygos/sources/paal/boost/concept_check/include -I
/home/wygos/sources/paal/boost/math/include -I
/home/wygos/sources/paal/boost/functional/include -I
/home/wygos/sources/paal/boost/iterator/include -I
/home/wygos/sources/paal/boost/integer/include -I
/home/wygos/sources/paal/boost/multi_array/include -I
/home/wygos/sources/paal/boost/multi_index/include -I
/home/wygos/sources/paal/boost/graph/include -I
/home/wygos/sources/paal/boost/conversion/include -I
/home/wygos/sources/paal/boost/smart_ptr/include -I
/home/wygos/sources/paal/boost/numeric_conversion/include -I
/home/wygos/sources/paal/boost/unordered/include -I
/home/wygos/sources/paal/boost/static_assert/include -I
/home/wygos/sources/paal/boost/assert/include -I
/home/wygos/sources/paal/boost/config/include -I
/home/wygos/sources/paal/boost/type_traits/include -I
/home/wygos/sources/paal/boost/optional/include -I
/home/wygos/sources/paal/boost/utility/include -I
/home/wygos/sources/paal/boost/range/include -I
/home/wygos/sources/paal/boost/typeof/include -I
/home/wygos/sources/paal/boost/exception/include -I
/home/wygos/sources/paal/boost/test/include -I
/home/wygos/sources/paal/boost/tti/include -I
/home/wygos/sources/paal/boost/property_map/include -I
/home/wygos/sources/paal/boost/preprocessor/include -I
/home/wygos/sources/paal/boost/container/include -I
/home/wygos/sources/paal/boost/build/include -I
/home/wygos/sources/paal/boost/parameter/include -I
/home/wygos/sources/paal/boost/detail/include -I
/home/wygos/sources/paal/boost/move/include -I
/home/wygos/sources/paal/boost/bimap/include -I
/home/wygos/sources/paal/boost/bind/include -I
/home/wygos/sources/paal/boost/serialization/include -I
/home/wygos/sources/paal/include -I /home/wygos/sources/paal/test
-internal-isystem /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/x86_64-linux-gnu
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/backward
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/x86_64-linux-gnu/c++/4.8
-internal-isystem /usr/local/include -internal-isystem
/usr/bin/../lib/clang/3.4/include -internal-isystem
/usr/include/clang/3.4/include/ -internal-externc-isystem
/usr/include/x86_64-linux-gnu -internal-externc-isystem
/usr/include/x86_64-linux-gnu -internal-externc-isystem /usr/include -O0
-Wno-tautological-constant-out-of-range-compare -Wno-gnu -Wall -std=c++0x
-fdeprecated-macro -fdebug-compilation-dir
/home/wygos/sources/paal/build_clang/test -ferror-limit 19 -fmessage-length 125
-pthread -mstackrealign -fobjc-runtime=gcc -fobjc-default-synthesize-properties
-fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics
-backend-option -vectorize-loops -o
CMakeFiles/all_small_tests.dir/inifity_test.cpp.o -x c++
/home/wygos/sources/paal/test/inifity_test.cpp 
1.    <eof> parser at end of file
2.    Per-file LLVM IR generation
3.    /home/wygos/sources/paal/include/paal/utils/infinity.hpp:89:17:
Generating code for declaration 'paal::detail::operator<='
clang: error: unable to execute command: Segmentation fault (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
Ubuntu clang version 3.4-1ubuntu1 (trunk) (based on LLVM 3.4)
Target: x86_64-pc-linux-gnu
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
http://bugs.debian.org/ and include the crash backtrace, preprocessed source,
and associated run script.
clang: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/inifity_test-EDmAtQ.cpp
clang: note: diagnostic msg: /tmp/inifity_test-EDmAtQ.sh
clang: note: diagnostic msg: 

********************

-- 
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/20140509/d75a9de6/attachment.html>


More information about the llvm-bugs mailing list