[LLVMbugs] [Bug 7837] New: clang segmentation fault

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Aug 6 09:03:42 PDT 2010


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

           Summary: clang segmentation fault
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: luc_j_bourhis at mac.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


Created an attachment (id=5341)
 --> (http://llvm.org/bugs/attachment.cgi?id=5341)
Obtained with clang++ -E

~/Developer/llvm> svn info
Path: .
URL: http://llvm.org/svn/llvm-project/llvm/trunk
Repository Root: http://llvm.org/svn/llvm-project
Repository UUID: 91177308-0d34-0410-b5e6-96231b3b80d8
Revision: 110444

Note that "make update" was used to update LLVM + CLANG.

~cctbxroot/cctbx_build_clang> clang++ -c
~/Desktop/coordinate_transformers-bug.cpp
0  clang             0x000000010130c2a2 PrintStackTrace(void*) + 34
1  clang             0x000000010130cf43 SignalHandler(int) + 707
2  libSystem.B.dylib 0x00007fff86cbd35a _sigtramp + 26
3  libSystem.B.dylib 0x00007fff86c620aa tiny_malloc_from_free_list + 1196
4  clang             0x00000001001e2710 clang::StmtVisitor<(anonymous
namespace)::ScalarExprEmitter, llvm::Value*>::Visit(clang::Stmt*) + 4416
5  clang             0x00000001001e3069
clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr const*, bool) + 121
6  clang             0x00000001001aa65d
clang::CodeGen::CodeGenFunction::EmitAnyExpr(clang::Expr const*, llvm::Value*,
bool, bool, bool) + 77
7  clang             0x00000001002487b3
clang::CodeGen::CodeGenFunction::EmitCXXExprWithTemporaries(clang::CXXExprWithTemporaries
const*, llvm::Value*, bool, bool) + 83
8  clang             0x00000001001e2654 clang::StmtVisitor<(anonymous
namespace)::ScalarExprEmitter, llvm::Value*>::Visit(clang::Stmt*) + 4228
9  clang             0x00000001001e3069
clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr const*, bool) + 121
10 clang             0x00000001001aa65d
clang::CodeGen::CodeGenFunction::EmitAnyExpr(clang::Expr const*, llvm::Value*,
bool, bool, bool) + 77
11 clang             0x000000010024451d
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 285
12 clang             0x00000001002472eb
clang::CodeGen::CodeGenFunction::EmitCompoundStmt(clang::CompoundStmt const&,
bool, llvm::Value*, bool) + 267
13 clang             0x0000000100247655
clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) + 405
14 clang             0x0000000100244430
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 48
15 clang             0x0000000100270e45
clang::CodeGen::CodeGenFunction::GenerateCode(clang::CodeGen::GlobalDecl,
llvm::Function*) + 1125
16 clang             0x00000001002790e9
clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::CodeGen::GlobalDecl)
+ 761
17 clang             0x000000010027c3ea
clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::CodeGen::GlobalDecl)
+ 378
18 clang             0x000000010027d6e3
clang::CodeGen::CodeGenModule::EmitDeferred() + 243
19 clang             0x000000010027d733
clang::CodeGen::CodeGenModule::Release() + 19
20 clang             0x000000010026682a (anonymous
namespace)::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 106
21 clang             0x00000001002aaf00 clang::ParseAST(clang::Preprocessor&,
clang::ASTConsumer*, clang::ASTContext&, bool, bool,
clang::CodeCompleteConsumer*) + 832
22 clang             0x000000010026748c clang::CodeGenAction::ExecuteAction() +
60
23 clang             0x000000010004e919
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 393
24 clang             0x000000010001f375 cc1_main(char const**, char const**,
char const*, void*) + 2949
25 clang             0x00000001000260a4 main + 4740
26 clang             0x000000010001d4c8 start + 52
27 clang             0x0000000000000021 start + 4294847373
Stack dump:
0.    Program arguments: /Users/luc/Developer/llvm/Release+Asserts/bin/clang
-cc1 -triple x86_64-apple-darwin10.0.0 -emit-obj -mrelax-all -disable-free
-main-file-name coordinate_transformers-bug.cpp -pic-level 1 -mdisable-fp-elim
-masm-verbose -munwind-tables -target-cpu core2 -resource-dir
/Users/luc/Developer/llvm/Release+Asserts/lib/clang/2.8 -ferror-limit 19
-fmessage-length 104 -stack-protector 1 -fblocks -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -o coordinate_transformers-bug.o
-x c++ /Users/luc/Desktop/coordinate_transformers-bug.cpp 
1.    <eof> parser at end of file
2.    Per-file LLVM IR generation
3.   
/Users/luc/Developer/cctbx/cctbx_project/cctbx/maptbx/boost_python/coordinate_transformers.cpp:49:15:
Generating code for declaration 'cctbx::maptbx::boost_python::<anonymous
namespace>::transform_coordinate_wrappers::wrap'
4.   
/Users/luc/Developer/cctbx/cctbx_project/cctbx/maptbx/boost_python/coordinate_transformers.cpp:49:22:
LLVM IR generation of compound statement ('{}')
clang: error: clang frontend command failed due to signal 11 (use -v to see
invocation)

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list