[llvm-bugs] [Bug 24730] New: Clang 3.7 crashes

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Sep 6 12:59:55 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=24730

            Bug ID: 24730
           Summary: Clang 3.7 crashes
           Product: clang
           Version: 3.7
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: dimanne at ya.ru
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 14849
  --> https://llvm.org/bugs/attachment.cgi?id=14849&action=edit
preprocessed main.cpp

main.cpp and other temp-files are in attachments

Invocation:

$ clang++-3.7 -std=c++11 -O0 -emit-llvm -c -save-temps main.cpp
0  libLLVM-3.7.so.1 0x00007f35f8dbd640
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 64
1  libLLVM-3.7.so.1 0x00007f35f8dbcaa1
2  libpthread.so.0  0x00007f35f86c7d10
3  clang            0x00000000012f14f8 clang::Expr::IgnoreParens() + 8
4  clang            0x00000000012f212d clang::Expr::IgnoreParenImpCasts() + 13
5  clang            0x0000000000c65899
6  clang            0x0000000000c65e17
7  clang            0x0000000000c7c874
8  clang            0x0000000000c7db4c
clang::Sema::ActOnCXXDelete(clang::SourceLocation, bool, bool, clang::Expr*) +
284
9  clang            0x0000000000e1278d
10 clang            0x0000000000e0e846
11 clang            0x0000000000e1cf2d
12 clang            0x0000000000e1e3cb
13 clang            0x0000000000e1e50b
14 clang            0x0000000000e1d255
15 clang            0x0000000000e20b8f clang::Sema::SubstStmt(clang::Stmt*,
clang::MultiLevelTemplateArgumentList const&) + 95
16 clang            0x0000000000e3423c
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool) + 3756
17 clang            0x0000000000e3451a
clang::Sema::PerformPendingInstantiations(bool) + 298
18 clang            0x0000000000acf3d5 clang::Sema::ActOnEndOfTranslationUnit()
+ 341
19 clang            0x0000000000a24cc9
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 601
20 clang            0x0000000000a19ee3 clang::ParseAST(clang::Sema&, bool,
bool) + 499
21 clang            0x00000000006a2fee clang::FrontendAction::Execute() + 510
22 clang            0x000000000067a8b9
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 313
23 clang            0x0000000000661f43
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1939
24 clang            0x000000000065ca58 cc1_main(llvm::ArrayRef<char const*>,
char const*, void*) + 2232
25 clang            0x00000000006594de main + 1006
26 libc.so.6        0x00007f35f7d75a40 __libc_start_main + 240
27 clang            0x000000000065bad9 _start + 41
Stack dump:
0.      Program arguments: /usr/lib/llvm-3.7/bin/clang -cc1 -triple
x86_64-pc-linux-gnu -emit-llvm-bc -emit-llvm-uselists -disable-free
-disable-llvm-verifier -main-file-name main.cpp -mrelocation-model static
-mthread-model posix -mdisable-fp-elim -fmath-errno -masm-verbose
-mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64
-target-linker-version 2.25.1 -dwarf-column-info -coverage-file
/home/Void/devel/clang_crash/main.cpp -resource-dir
/usr/lib/llvm-3.7/bin/../lib/clang/3.7.0 -O0 -std=c++11 -fdeprecated-macro
-fdebug-compilation-dir /home/Void/devel/clang_crash -ferror-limit 19
-fmessage-length 166 -mstackrealign -fobjc-runtime=gcc -fcxx-exceptions
-fexceptions -fdiagnostics-show-option -fcolor-diagnostics -disable-llvm-optzns
-o main.tmp.bc -x c++-cpp-output main.ii 
1.      <eof> parser at end of file
2.      main.cpp:5:4: instantiating function definition '~TTree'
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.7.0-1ubuntu1 (tags/RELEASE_370/final) (based on LLVM
3.7.0)
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/main-bf022b.cpp
clang: note: diagnostic msg: /tmp/main-bf022b.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/20150906/7682bc8e/attachment.html>


More information about the llvm-bugs mailing list