[LLVMbugs] [Bug 16203] New: clang++ 3.3 (trunk 171695) crash when compile

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Jun 2 21:34:40 PDT 2013


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

            Bug ID: 16203
           Summary: clang++ 3.3 (trunk 171695) crash when compile
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
          Assignee: unassignedclangbugs at nondot.org
          Reporter: wen.max8 at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

[baba at centos62internal mars_online_server]$ make
clang++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"mo\"
-DVERSION=\"1.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE__BOOL=1
-DHAVE_STDBOOL_H=1 -DHAVE_MEMSET=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1
-DHAVE_STRTOULL=1 -I.     -std=c++11 -I/opt/local/include
-I/home/baba/local/include -I/usr/local/include -I../../include-c++11
-DPROGRAM_NAME=\"mars\ online\" -DENABLE_ERROR -O2 -MT battle_room_pvp.o -MD
-MP -MF .deps/battle_room_pvp.Tpo -c -o battle_room_pvp.o battle_room_pvp.cpp
clang:
/home/baba/clang/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/Type.h:2957:
bool clang::FunctionProtoType::isNothrow(clang::ASTContext &) const: Assertion
`EST != EST_Unevaluated && EST != EST_Uninstantiated' failed.
0  clang           0x0000000002f203b5
1  clang           0x0000000002f20936
2  libpthread.so.0 0x00000038c900f500
3  libc.so.6       0x00000038c84328a5 gsignal + 53
4  libc.so.6       0x00000038c8434085 abort + 373
5  libc.so.6       0x00000038c842ba1e
6  libc.so.6       0x00000038c842bae0 __assert_perror_fail + 0
7  clang           0x0000000000bf1924
8  clang           0x0000000000be7f19
clang::CodeGen::CodeGenModule::ConstructAttributeList(clang::CodeGen::CGFunctionInfo
const&, clang::Decl const*, llvm::SmallVector<llvm::AttributeWithIndex, 8u>&,
unsigned int&) + 345
9  clang           0x0000000000b5ba71
clang::CodeGen::CodeGenModule::SetLLVMFunctionAttributes(clang::Decl const*,
clang::CodeGen::CGFunctionInfo const&, llvm::Function*) + 161
10 clang           0x0000000000b5c059
clang::CodeGen::CodeGenModule::SetFunctionAttributes(clang::GlobalDecl,
llvm::Function*, bool) + 233
11 clang           0x0000000000b5da71
clang::CodeGen::CodeGenModule::GetOrCreateLLVMFunction(llvm::StringRef,
llvm::Type*, clang::GlobalDecl, bool, llvm::Attribute) + 657
12 clang           0x0000000000be0db8
clang::CodeGen::CodeGenModule::GetAddrOfCXXDestructor(clang::CXXDestructorDecl
const*, clang::CXXDtorType, clang::CodeGen::CGFunctionInfo const*) + 344
13 clang           0x0000000000bfdf0a
clang::CodeGen::CodeGenFunction::EmitCXXDestructorCall(clang::CXXDestructorDecl
const*, clang::CXXDtorType, bool, llvm::Value*) + 218
14 clang           0x0000000000bfe9d8
clang::CodeGen::CodeGenFunction::destroyCXXObject(clang::CodeGen::CodeGenFunction&,
llvm::Value*, clang::QualType) + 184
15 clang           0x0000000000c346a2
clang::CodeGen::CodeGenFunction::emitDestroy(llvm::Value*, clang::QualType,
void (*)(clang::CodeGen::CodeGenFunction&, llvm::Value*, clang::QualType),
bool) + 178
16 clang           0x0000000000c36a7c
17 clang           0x0000000000c0ca41
18 clang           0x0000000000c0c45a
clang::CodeGen::CodeGenFunction::PopCleanupBlock(bool) + 5354
19 clang           0x0000000000c0d96a
clang::CodeGen::CodeGenFunction::DeactivateCleanupBlock(clang::CodeGen::EHScopeStack::stable_iterator,
llvm::Instruction*) + 314
20 clang           0x0000000000c7250f
21 clang           0x0000000000c6e560
22 clang           0x0000000000c6d6a8
clang::CodeGen::CodeGenFunction::EmitAggExpr(clang::Expr const*,
clang::CodeGen::AggValueSlot) + 248
23 clang           0x0000000000c7bbf9
24 clang           0x0000000000c7e14a
25 clang           0x0000000000c7c6b5
clang::CodeGen::CodeGenFunction::EmitCXXNewExpr(clang::CXXNewExpr const*) +
2709
26 clang           0x0000000000ca7600
27 clang           0x0000000000ca37ac
28 clang           0x0000000000c9a688
29 clang           0x0000000000c9a637
clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr const*, bool) + 183
30 clang           0x0000000000c4c92b
clang::CodeGen::CodeGenFunction::EmitAnyExpr(clang::Expr const*,
clang::CodeGen::AggValueSlot, bool) + 123
31 clang           0x0000000000c4d29a
clang::CodeGen::CodeGenFunction::EmitAnyExprToTemp(clang::Expr const*) + 250
32 clang           0x0000000000bebdce
clang::CodeGen::CodeGenFunction::EmitCallArg(clang::CodeGen::CallArgList&,
clang::Expr const*, clang::QualType) + 878
33 clang           0x0000000000c645e9
34 clang           0x0000000000c79105
clang::CodeGen::CodeGenFunction::EmitCXXMemberCall(clang::CXXMethodDecl const*,
clang::SourceLocation, llvm::Value*, clang::CodeGen::ReturnValueSlot,
llvm::Value*, llvm::Value*, clang::ConstExprIterator, clang::ConstExprIterator)
+ 757
35 clang           0x0000000000bfed60
clang::CodeGen::CodeGenFunction::EmitCXXConstructorCall(clang::CXXConstructorDecl
const*, clang::CXXCtorType, bool, llvm::Value*, clang::ConstExprIterator,
clang::ConstExprIterator) + 896
36 clang           0x0000000000c7acd0
clang::CodeGen::CodeGenFunction::EmitCXXConstructExpr(clang::CXXConstructExpr
const*, clang::CodeGen::AggValueSlot) + 1152
37 clang           0x0000000000c70ef6
38 clang           0x0000000000c6e158
39 clang           0x0000000000c70dd7
40 clang           0x0000000000c6e128
41 clang           0x0000000000c75f1a
42 clang           0x0000000000c760f8
43 clang           0x0000000000c71498
44 clang           0x0000000000c6e350
45 clang           0x0000000000c7262d
46 clang           0x0000000000c6e5a8
47 clang           0x0000000000c6d6a8
clang::CodeGen::CodeGenFunction::EmitAggExpr(clang::Expr const*,
clang::CodeGen::AggValueSlot) + 248
48 clang           0x0000000000c7aafa
clang::CodeGen::CodeGenFunction::EmitCXXConstructExpr(clang::CXXConstructExpr
const*, clang::CodeGen::AggValueSlot) + 682
49 clang           0x0000000000c70ef6
50 clang           0x0000000000c6e158
51 clang           0x0000000000c718c9
52 clang           0x0000000000c6e488
53 clang           0x0000000000c6d6a8
clang::CodeGen::CodeGenFunction::EmitAggExpr(clang::Expr const*,
clang::CodeGen::AggValueSlot) + 248
54 clang           0x0000000000c33a59
clang::CodeGen::CodeGenFunction::EmitExprAsInit(clang::Expr const*,
clang::ValueDecl const*, clang::CodeGen::LValue, bool) + 825
55 clang           0x0000000000c32c24
clang::CodeGen::CodeGenFunction::EmitAutoVarInit(clang::CodeGen::CodeGenFunction::AutoVarEmission
const&) + 756
56 clang           0x0000000000c305ca
clang::CodeGen::CodeGenFunction::EmitAutoVarDecl(clang::VarDecl const&) + 58
57 clang           0x0000000000c304a1
clang::CodeGen::CodeGenFunction::EmitVarDecl(clang::VarDecl const&) + 81
58 clang           0x0000000000c3031c
clang::CodeGen::CodeGenFunction::EmitDecl(clang::Decl const&) + 172
59 clang           0x0000000000d23e7f
clang::CodeGen::CodeGenFunction::EmitDeclStmt(clang::DeclStmt const&) + 111
60 clang           0x0000000000d1f5c1
clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) + 241
61 clang           0x0000000000d1ef80
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 80
62 clang           0x0000000000d23c9a
clang::CodeGen::CodeGenFunction::EmitCompoundStmt(clang::CompoundStmt const&,
bool, clang::CodeGen::AggValueSlot) + 282
63 clang           0x0000000000d1f59f
clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) + 207
64 clang           0x0000000000d1ef80
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 80
65 clang           0x0000000000d1fa2b
clang::CodeGen::CodeGenFunction::EmitIfStmt(clang::IfStmt const&) + 603
66 clang           0x0000000000d1f153
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 547
67 clang           0x0000000000d23c9a
clang::CodeGen::CodeGenFunction::EmitCompoundStmt(clang::CompoundStmt const&,
bool, clang::CodeGen::AggValueSlot) + 282
68 clang           0x0000000000d1f59f
clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) + 207
69 clang           0x0000000000d1ef80
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 80
70 clang           0x0000000000d1fa2b
clang::CodeGen::CodeGenFunction::EmitIfStmt(clang::IfStmt const&) + 603
71 clang           0x0000000000d1f153
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 547
72 clang           0x0000000000d23c9a
clang::CodeGen::CodeGenFunction::EmitCompoundStmt(clang::CompoundStmt const&,
bool, clang::CodeGen::AggValueSlot) + 282
73 clang           0x0000000000d1f59f
clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) + 207
74 clang           0x0000000000d1ef80
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 80
75 clang           0x0000000000d3de01
clang::CodeGen::CodeGenFunction::EmitFunctionBody(clang::CodeGen::FunctionArgList&)
+ 161
76 clang           0x0000000000d3e204
clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl,
llvm::Function*, clang::CodeGen::CGFunctionInfo const&) + 1012
77 clang           0x0000000000b5f110
clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl)
+ 864
78 clang           0x0000000000b5c326
clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl) + 438
79 clang           0x0000000000b5e591
clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl) + 753
80 clang           0x0000000000b646a1
clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) + 257
81 clang           0x0000000000b53e25
82 clang           0x0000000000b5190e
83 clang           0x0000000000d6cbae clang::ParseAST(clang::Sema&, bool, bool)
+ 494
84 clang           0x00000000008b9c4a clang::ASTFrontendAction::ExecuteAction()
+ 298
85 clang           0x0000000000b50ee6 clang::CodeGenAction::ExecuteAction() +
1222
86 clang           0x00000000008b9856 clang::FrontendAction::Execute() + 166
87 clang           0x0000000000888205
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 789
88 clang           0x0000000000849d19
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1001
89 clang           0x00000000008366c0 cc1_main(char const**, char const**, char
const*, void*) + 944
90 clang           0x0000000000842ac5 main + 533
91 libc.so.6       0x00000038c841ecdd __libc_start_main + 253
92 clang           0x0000000000836229
Stack dump:
0.    Program arguments: /home/baba/local/bin/clang -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name
battle_room_pvp.cpp -mrelocation-model static -fmath-errno -masm-verbose
-mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64
-target-linker-version 2.20.51.0.2 -momit-leaf-frame-pointer -coverage-file
/home/baba/development/mo at a3/mars_online_server/mars_online_server/battle_room_pvp.o
-resource-dir /home/baba/local/bin/../lib/clang/3.3 -dependency-file
.deps/battle_room_pvp.Tpo -sys-header-deps -MP -MT battle_room_pvp.o -D
PACKAGE_NAME="" -D PACKAGE_TARNAME="" -D PACKAGE_VERSION="" -D
PACKAGE_STRING="" -D PACKAGE_BUGREPORT="" -D PACKAGE="mo" -D VERSION="1.0" -D
STDC_HEADERS=1 -D HAVE_SYS_TYPES_H=1 -D HAVE_SYS_STAT_H=1 -D HAVE_STDLIB_H=1 -D
HAVE_STRING_H=1 -D HAVE_MEMORY_H=1 -D HAVE_STRINGS_H=1 -D HAVE_INTTYPES_H=1 -D
HAVE_STDINT_H=1 -D HAVE_UNISTD_H=1 -D HAVE__BOOL=1 -D HAVE_STDBOOL_H=1 -D
HAVE_MEMSET=1 -D HAVE_STRTOL=1 -D HAVE_STRTOUL=1 -D HAVE_STRTOULL=1 -D
PROGRAM_NAME="mars online" -D ENABLE_ERROR -I . -I /opt/local/include -I
/home/baba/local/include -I /usr/local/include -I ../../include-c++11
-fmodule-cache-path /var/tmp/clang-module-cache -internal-isystem
/home/baba/local/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0
-internal-isystem
/home/baba/local/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/x86_64-unknown-linux-gnu
-internal-isystem
/home/baba/local/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/backward
-internal-isystem /usr/local/include -internal-isystem
/home/baba/local/bin/../lib/clang/3.3/include -internal-externc-isystem
/include -internal-externc-isystem /usr/include -O2 -std=c++11
-fdeprecated-macro -fdebug-compilation-dir
/home/baba/development/mo at a3/mars_online_server/mars_online_server
-ferror-limit 19 -fmessage-length 129 -mstackrealign -fobjc-runtime=gcc
-fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics
-backend-option -vectorize-loops -o battle_room_pvp.o -x c++
battle_room_pvp.cpp 
1.    battle_room_pvp.cpp:591:1: current parser token 'int'
2.    battle_room_pvp.cpp:389:22: LLVM IR generation of declaration
'battle_room_pvp::on_pair_1v1_battle'
3.    battle_room_pvp.cpp:389:22: Generating code for declaration
'battle_room_pvp::on_pair_1v1_battle'
4.    battle_room_pvp.cpp:389:43: LLVM IR generation of compound statement
('{}')
5.    battle_room_pvp.cpp:408:22: LLVM IR generation of compound statement
('{}')
6.    battle_room_pvp.cpp:411:26: LLVM IR generation of compound statement
('{}')
clang: error: unable to execute command: Aborted (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.3 (trunk 171695)
Target: x86_64-unknown-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: 
********************

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/battle_room_pvp-RDvTkG.cpp
clang: note: diagnostic msg: /tmp/battle_room_pvp-RDvTkG.sh
clang: note: diagnostic msg: 

********************
make: *** [battle_room_pvp.o] 错误 254
[baba at centos62internal mars_online_server]$ 
[baba at centos62internal mars_online_server]$ git status
# On branch master
# Changed but not updated:
#   (use "git add <file>..." to update what will be committed)
#   (use "git checkout -- <file>..." to discard changes in working directory)
#
#    modified:   Makefile.am
#
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#    ../../.AppleDouble/
#    ../../include-c++11/1.txt
#    ../../include-c++11/2.txt
#    ../../include-c++11/commpb.pb.cc
#    ../../include-c++11/commpb.pb.h
#    ../../include-c++11/configure.pb.cc
#    ../../include-c++11/configure.pb.h
#    ../../include-c++11/server_protocol_buffers.pb.cc
#    ../../include-c++11/server_protocol_buffers.pb.h
#    .deps/
#    1.patch
#    1.txt
#    11.txt
#    2.txt
#    22.txt
#    Makefile
#    Makefile.in
#    aclocal.m4
#    autom4te.cache/
#    battle_room_manager.o
#    battle_room_pve.o
#    chat_manager.o
#    client_data_handler.o
#    config.log
#    config.status
#    configure
#    core.11584
#    core.5784
#    core.5847
#    core.7447
#    core.9185
#    core.9313
#    depcomp
#    g1.lua
#    install-sh
#    l1.lua
#    main.o
#    manager_base.o
#    missing
#    mo_g1.lua
#    mo_l1.lua
#    mog1--2013-05-24.log
#    mog1--2013-05-27.log
#    mog1--2013-05-28.log
#    nohup.out
#    prepare_room.o
#    scene_manager.o
#    startup.sh
#    te.lua
no changes added to commit (use "git add" and/or "git commit -a")
[baba at centos62internal mars_online_server]$ git commit -a -m '1. battle_room ->
battle_room_pvp/pve'
[master b1dfa2e] 1. battle_room -> battle_room_pvp/pve
 1 files changed, 1 insertions(+), 1 deletions(-)
[baba at centos62internal mars_online_server]$ git pull
remote: Counting objects: 10, done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 6 (delta 4), reused 0 (delta 0)
Unpacking objects: 100% (6/6), done.
>From a3:/mo
   fbb6a63..87549a3  master     -> origin/master
Merge made by recursive.
 .../mars_online_server/battle_room_pvp.cpp         |   37 ++++++++++---------
 .../mars_online_server/client_data_handler.cpp     |    4 +-
 2 files changed, 21 insertions(+), 20 deletions(-)
[baba at centos62internal mars_online_server]$ git push
Counting objects: 14, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (9/9), done.
Writing objects: 100% (9/9), 1.51 KiB, done.
Total 9 (delta 6), reused 0 (delta 0)
To gitolite at a3:/mo
   87549a3..541551e  master -> master
[baba at centos62internal mars_online_server]$ mae
-bash: mae: command not found
[baba at centos62internal mars_online_server]$ make
clang++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"mo\"
-DVERSION=\"1.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE__BOOL=1
-DHAVE_STDBOOL_H=1 -DHAVE_MEMSET=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1
-DHAVE_STRTOULL=1 -I.     -std=c++11 -I/opt/local/include
-I/home/baba/local/include -I/usr/local/include -I../../include-c++11
-DPROGRAM_NAME=\"mars\ online\" -DENABLE_ERROR -O2 -MT battle_room_pvp.o -MD
-MP -MF .deps/battle_room_pvp.Tpo -c -o battle_room_pvp.o battle_room_pvp.cpp
clang:
/home/baba/clang/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/Type.h:2957:
bool clang::FunctionProtoType::isNothrow(clang::ASTContext &) const: Assertion
`EST != EST_Unevaluated && EST != EST_Uninstantiated' failed.
0  clang           0x0000000002f203b5
1  clang           0x0000000002f20936
2  libpthread.so.0 0x00000038c900f500
3  libc.so.6       0x00000038c84328a5 gsignal + 53
4  libc.so.6       0x00000038c8434085 abort + 373
5  libc.so.6       0x00000038c842ba1e
6  libc.so.6       0x00000038c842bae0 __assert_perror_fail + 0
7  clang           0x0000000000bf1924
8  clang           0x0000000000be7f19
clang::CodeGen::CodeGenModule::ConstructAttributeList(clang::CodeGen::CGFunctionInfo
const&, clang::Decl const*, llvm::SmallVector<llvm::AttributeWithIndex, 8u>&,
unsigned int&) + 345
9  clang           0x0000000000b5ba71
clang::CodeGen::CodeGenModule::SetLLVMFunctionAttributes(clang::Decl const*,
clang::CodeGen::CGFunctionInfo const&, llvm::Function*) + 161
10 clang           0x0000000000b5c059
clang::CodeGen::CodeGenModule::SetFunctionAttributes(clang::GlobalDecl,
llvm::Function*, bool) + 233
11 clang           0x0000000000b5da71
clang::CodeGen::CodeGenModule::GetOrCreateLLVMFunction(llvm::StringRef,
llvm::Type*, clang::GlobalDecl, bool, llvm::Attribute) + 657
12 clang           0x0000000000be0db8
clang::CodeGen::CodeGenModule::GetAddrOfCXXDestructor(clang::CXXDestructorDecl
const*, clang::CXXDtorType, clang::CodeGen::CGFunctionInfo const*) + 344
13 clang           0x0000000000bfdf0a
clang::CodeGen::CodeGenFunction::EmitCXXDestructorCall(clang::CXXDestructorDecl
const*, clang::CXXDtorType, bool, llvm::Value*) + 218
14 clang           0x0000000000bfe9d8
clang::CodeGen::CodeGenFunction::destroyCXXObject(clang::CodeGen::CodeGenFunction&,
llvm::Value*, clang::QualType) + 184
15 clang           0x0000000000c346a2
clang::CodeGen::CodeGenFunction::emitDestroy(llvm::Value*, clang::QualType,
void (*)(clang::CodeGen::CodeGenFunction&, llvm::Value*, clang::QualType),
bool) + 178
16 clang           0x0000000000c36a7c
17 clang           0x0000000000c0ca41
18 clang           0x0000000000c0c45a
clang::CodeGen::CodeGenFunction::PopCleanupBlock(bool) + 5354
19 clang           0x0000000000c0d96a
clang::CodeGen::CodeGenFunction::DeactivateCleanupBlock(clang::CodeGen::EHScopeStack::stable_iterator,
llvm::Instruction*) + 314
20 clang           0x0000000000c7250f
21 clang           0x0000000000c6e560
22 clang           0x0000000000c6d6a8
clang::CodeGen::CodeGenFunction::EmitAggExpr(clang::Expr const*,
clang::CodeGen::AggValueSlot) + 248
23 clang           0x0000000000c7bbf9
24 clang           0x0000000000c7e14a
25 clang           0x0000000000c7c6b5
clang::CodeGen::CodeGenFunction::EmitCXXNewExpr(clang::CXXNewExpr const*) +
2709
26 clang           0x0000000000ca7600
27 clang           0x0000000000ca37ac
28 clang           0x0000000000c9a688
29 clang           0x0000000000c9a637
clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr const*, bool) + 183
30 clang           0x0000000000c4c92b
clang::CodeGen::CodeGenFunction::EmitAnyExpr(clang::Expr const*,
clang::CodeGen::AggValueSlot, bool) + 123
31 clang           0x0000000000c4d29a
clang::CodeGen::CodeGenFunction::EmitAnyExprToTemp(clang::Expr const*) + 250
32 clang           0x0000000000bebdce
clang::CodeGen::CodeGenFunction::EmitCallArg(clang::CodeGen::CallArgList&,
clang::Expr const*, clang::QualType) + 878
33 clang           0x0000000000c645e9
34 clang           0x0000000000c79105
clang::CodeGen::CodeGenFunction::EmitCXXMemberCall(clang::CXXMethodDecl const*,
clang::SourceLocation, llvm::Value*, clang::CodeGen::ReturnValueSlot,
llvm::Value*, llvm::Value*, clang::ConstExprIterator, clang::ConstExprIterator)
+ 757
35 clang           0x0000000000bfed60
clang::CodeGen::CodeGenFunction::EmitCXXConstructorCall(clang::CXXConstructorDecl
const*, clang::CXXCtorType, bool, llvm::Value*, clang::ConstExprIterator,
clang::ConstExprIterator) + 896
36 clang           0x0000000000c7acd0
clang::CodeGen::CodeGenFunction::EmitCXXConstructExpr(clang::CXXConstructExpr
const*, clang::CodeGen::AggValueSlot) + 1152
37 clang           0x0000000000c70ef6
38 clang           0x0000000000c6e158
39 clang           0x0000000000c70dd7
40 clang           0x0000000000c6e128
41 clang           0x0000000000c75f1a
42 clang           0x0000000000c760f8
43 clang           0x0000000000c71498
44 clang           0x0000000000c6e350
45 clang           0x0000000000c7262d
46 clang           0x0000000000c6e5a8
47 clang           0x0000000000c6d6a8
clang::CodeGen::CodeGenFunction::EmitAggExpr(clang::Expr const*,
clang::CodeGen::AggValueSlot) + 248
48 clang           0x0000000000c7aafa
clang::CodeGen::CodeGenFunction::EmitCXXConstructExpr(clang::CXXConstructExpr
const*, clang::CodeGen::AggValueSlot) + 682
49 clang           0x0000000000c70ef6
50 clang           0x0000000000c6e158
51 clang           0x0000000000c718c9
52 clang           0x0000000000c6e488
53 clang           0x0000000000c6d6a8
clang::CodeGen::CodeGenFunction::EmitAggExpr(clang::Expr const*,
clang::CodeGen::AggValueSlot) + 248
54 clang           0x0000000000c33a59
clang::CodeGen::CodeGenFunction::EmitExprAsInit(clang::Expr const*,
clang::ValueDecl const*, clang::CodeGen::LValue, bool) + 825
55 clang           0x0000000000c32c24
clang::CodeGen::CodeGenFunction::EmitAutoVarInit(clang::CodeGen::CodeGenFunction::AutoVarEmission
const&) + 756
56 clang           0x0000000000c305ca
clang::CodeGen::CodeGenFunction::EmitAutoVarDecl(clang::VarDecl const&) + 58
57 clang           0x0000000000c304a1
clang::CodeGen::CodeGenFunction::EmitVarDecl(clang::VarDecl const&) + 81
58 clang           0x0000000000c3031c
clang::CodeGen::CodeGenFunction::EmitDecl(clang::Decl const&) + 172
59 clang           0x0000000000d23e7f
clang::CodeGen::CodeGenFunction::EmitDeclStmt(clang::DeclStmt const&) + 111
60 clang           0x0000000000d1f5c1
clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) + 241
61 clang           0x0000000000d1ef80
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 80
62 clang           0x0000000000d23c9a
clang::CodeGen::CodeGenFunction::EmitCompoundStmt(clang::CompoundStmt const&,
bool, clang::CodeGen::AggValueSlot) + 282
63 clang           0x0000000000d1f59f
clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) + 207
64 clang           0x0000000000d1ef80
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 80
65 clang           0x0000000000d1fa2b
clang::CodeGen::CodeGenFunction::EmitIfStmt(clang::IfStmt const&) + 603
66 clang           0x0000000000d1f153
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 547
67 clang           0x0000000000d23c9a
clang::CodeGen::CodeGenFunction::EmitCompoundStmt(clang::CompoundStmt const&,
bool, clang::CodeGen::AggValueSlot) + 282
68 clang           0x0000000000d1f59f
clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) + 207
69 clang           0x0000000000d1ef80
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 80
70 clang           0x0000000000d1fa2b
clang::CodeGen::CodeGenFunction::EmitIfStmt(clang::IfStmt const&) + 603
71 clang           0x0000000000d1f153
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 547
72 clang           0x0000000000d23c9a
clang::CodeGen::CodeGenFunction::EmitCompoundStmt(clang::CompoundStmt const&,
bool, clang::CodeGen::AggValueSlot) + 282
73 clang           0x0000000000d1f59f
clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) + 207
74 clang           0x0000000000d1ef80
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 80
75 clang           0x0000000000d3de01
clang::CodeGen::CodeGenFunction::EmitFunctionBody(clang::CodeGen::FunctionArgList&)
+ 161
76 clang           0x0000000000d3e204
clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl,
llvm::Function*, clang::CodeGen::CGFunctionInfo const&) + 1012
77 clang           0x0000000000b5f110
clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl)
+ 864
78 clang           0x0000000000b5c326
clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl) + 438
79 clang           0x0000000000b5e591
clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl) + 753
80 clang           0x0000000000b646a1
clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) + 257
81 clang           0x0000000000b53e25
82 clang           0x0000000000b5190e
83 clang           0x0000000000d6cbae clang::ParseAST(clang::Sema&, bool, bool)
+ 494
84 clang           0x00000000008b9c4a clang::ASTFrontendAction::ExecuteAction()
+ 298
85 clang           0x0000000000b50ee6 clang::CodeGenAction::ExecuteAction() +
1222
86 clang           0x00000000008b9856 clang::FrontendAction::Execute() + 166
87 clang           0x0000000000888205
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 789
88 clang           0x0000000000849d19
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1001
89 clang           0x00000000008366c0 cc1_main(char const**, char const**, char
const*, void*) + 944
90 clang           0x0000000000842ac5 main + 533
91 libc.so.6       0x00000038c841ecdd __libc_start_main + 253
92 clang           0x0000000000836229
Stack dump:
0.    Program arguments: /home/baba/local/bin/clang -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name
battle_room_pvp.cpp -mrelocation-model static -fmath-errno -masm-verbose
-mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64
-target-linker-version 2.20.51.0.2 -momit-leaf-frame-pointer -coverage-file
/home/baba/development/mo at a3/mars_online_server/mars_online_server/battle_room_pvp.o
-resource-dir /home/baba/local/bin/../lib/clang/3.3 -dependency-file
.deps/battle_room_pvp.Tpo -sys-header-deps -MP -MT battle_room_pvp.o -D
PACKAGE_NAME="" -D PACKAGE_TARNAME="" -D PACKAGE_VERSION="" -D
PACKAGE_STRING="" -D PACKAGE_BUGREPORT="" -D PACKAGE="mo" -D VERSION="1.0" -D
STDC_HEADERS=1 -D HAVE_SYS_TYPES_H=1 -D HAVE_SYS_STAT_H=1 -D HAVE_STDLIB_H=1 -D
HAVE_STRING_H=1 -D HAVE_MEMORY_H=1 -D HAVE_STRINGS_H=1 -D HAVE_INTTYPES_H=1 -D
HAVE_STDINT_H=1 -D HAVE_UNISTD_H=1 -D HAVE__BOOL=1 -D HAVE_STDBOOL_H=1 -D
HAVE_MEMSET=1 -D HAVE_STRTOL=1 -D HAVE_STRTOUL=1 -D HAVE_STRTOULL=1 -D
PROGRAM_NAME="mars online" -D ENABLE_ERROR -I . -I /opt/local/include -I
/home/baba/local/include -I /usr/local/include -I ../../include-c++11
-fmodule-cache-path /var/tmp/clang-module-cache -internal-isystem
/home/baba/local/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0
-internal-isystem
/home/baba/local/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/x86_64-unknown-linux-gnu
-internal-isystem
/home/baba/local/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/backward
-internal-isystem /usr/local/include -internal-isystem
/home/baba/local/bin/../lib/clang/3.3/include -internal-externc-isystem
/include -internal-externc-isystem /usr/include -O2 -std=c++11
-fdeprecated-macro -fdebug-compilation-dir
/home/baba/development/mo at a3/mars_online_server/mars_online_server
-ferror-limit 19 -fmessage-length 129 -mstackrealign -fobjc-runtime=gcc
-fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics
-backend-option -vectorize-loops -o battle_room_pvp.o -x c++
battle_room_pvp.cpp 
1.    <eof> parser at end of file
2.    battle_room_pvp.cpp:408:22: LLVM IR generation of declaration
'battle_room_pvp::on_pair_1v1_battle'
3.    battle_room_pvp.cpp:408:22: Generating code for declaration
'battle_room_pvp::on_pair_1v1_battle'
4.    battle_room_pvp.cpp:408:43: LLVM IR generation of compound statement
('{}')
5.    battle_room_pvp.cpp:427:22: LLVM IR generation of compound statement
('{}')
6.    battle_room_pvp.cpp:430:26: LLVM IR generation of compound statement
('{}')
clang: error: unable to execute command: Aborted (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.3 (trunk 171695)
Target: x86_64-unknown-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: 
********************

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/battle_room_pvp-ImRghV.cpp
clang: note: diagnostic msg: /tmp/battle_room_pvp-ImRghV.sh
clang: note: diagnostic msg: 

********************
make: *** [battle_room_pvp.o] 错误 254
[baba at centos62internal mars_online_server]$ vi /tmp/battle_room_pvp-ImRghV.cpp 
[baba at centos62internal mars_online_server]$ ls -alh
/tmp/battle_room_pvp-ImRghV.cpp 
-rw-rw-r-- 1 baba baba 27M 6月   3 11:46 /tmp/battle_room_pvp-ImRghV.cpp
[baba at centos62internal mars_online_server]$ make
clang++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"mo\"
-DVERSION=\"1.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE__BOOL=1
-DHAVE_STDBOOL_H=1 -DHAVE_MEMSET=1 -DHAVE_STRTOL=1 -DHAVE_STRTOUL=1
-DHAVE_STRTOULL=1 -I.     -std=c++11 -I/opt/local/include
-I/home/baba/local/include -I/usr/local/include -I../../include-c++11
-DPROGRAM_NAME=\"mars\ online\" -DENABLE_ERROR -O2 -MT battle_room_pvp.o -MD
-MP -MF .deps/battle_room_pvp.Tpo -c -o battle_room_pvp.o battle_room_pvp.cpp
clang:
/home/baba/clang/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/Type.h:2957:
bool clang::FunctionProtoType::isNothrow(clang::ASTContext &) const: Assertion
`EST != EST_Unevaluated && EST != EST_Uninstantiated' failed.
0  clang           0x0000000002f203b5
1  clang           0x0000000002f20936
2  libpthread.so.0 0x00000038c900f500
3  libc.so.6       0x00000038c84328a5 gsignal + 53
4  libc.so.6       0x00000038c8434085 abort + 373
5  libc.so.6       0x00000038c842ba1e
6  libc.so.6       0x00000038c842bae0 __assert_perror_fail + 0
7  clang           0x0000000000bf1924
8  clang           0x0000000000be7f19
clang::CodeGen::CodeGenModule::ConstructAttributeList(clang::CodeGen::CGFunctionInfo
const&, clang::Decl const*, llvm::SmallVector<llvm::AttributeWithIndex, 8u>&,
unsigned int&) + 345
9  clang           0x0000000000b5ba71
clang::CodeGen::CodeGenModule::SetLLVMFunctionAttributes(clang::Decl const*,
clang::CodeGen::CGFunctionInfo const&, llvm::Function*) + 161
10 clang           0x0000000000b5c059
clang::CodeGen::CodeGenModule::SetFunctionAttributes(clang::GlobalDecl,
llvm::Function*, bool) + 233
11 clang           0x0000000000b5da71
clang::CodeGen::CodeGenModule::GetOrCreateLLVMFunction(llvm::StringRef,
llvm::Type*, clang::GlobalDecl, bool, llvm::Attribute) + 657
12 clang           0x0000000000be0db8
clang::CodeGen::CodeGenModule::GetAddrOfCXXDestructor(clang::CXXDestructorDecl
const*, clang::CXXDtorType, clang::CodeGen::CGFunctionInfo const*) + 344
13 clang           0x0000000000bfdf0a
clang::CodeGen::CodeGenFunction::EmitCXXDestructorCall(clang::CXXDestructorDecl
const*, clang::CXXDtorType, bool, llvm::Value*) + 218
14 clang           0x0000000000bfe9d8
clang::CodeGen::CodeGenFunction::destroyCXXObject(clang::CodeGen::CodeGenFunction&,
llvm::Value*, clang::QualType) + 184
15 clang           0x0000000000c346a2
clang::CodeGen::CodeGenFunction::emitDestroy(llvm::Value*, clang::QualType,
void (*)(clang::CodeGen::CodeGenFunction&, llvm::Value*, clang::QualType),
bool) + 178
16 clang           0x0000000000c36a7c
17 clang           0x0000000000c0ca41
18 clang           0x0000000000c0c45a
clang::CodeGen::CodeGenFunction::PopCleanupBlock(bool) + 5354
19 clang           0x0000000000c0d96a
clang::CodeGen::CodeGenFunction::DeactivateCleanupBlock(clang::CodeGen::EHScopeStack::stable_iterator,
llvm::Instruction*) + 314
20 clang           0x0000000000c7250f
21 clang           0x0000000000c6e560
22 clang           0x0000000000c6d6a8
clang::CodeGen::CodeGenFunction::EmitAggExpr(clang::Expr const*,
clang::CodeGen::AggValueSlot) + 248
23 clang           0x0000000000c7bbf9
24 clang           0x0000000000c7e14a
25 clang           0x0000000000c7c6b5
clang::CodeGen::CodeGenFunction::EmitCXXNewExpr(clang::CXXNewExpr const*) +
2709
26 clang           0x0000000000ca7600
27 clang           0x0000000000ca37ac
28 clang           0x0000000000c9a688
29 clang           0x0000000000c9a637
clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr const*, bool) + 183
30 clang           0x0000000000c4c92b
clang::CodeGen::CodeGenFunction::EmitAnyExpr(clang::Expr const*,
clang::CodeGen::AggValueSlot, bool) + 123
31 clang           0x0000000000c4d29a
clang::CodeGen::CodeGenFunction::EmitAnyExprToTemp(clang::Expr const*) + 250
32 clang           0x0000000000bebdce
clang::CodeGen::CodeGenFunction::EmitCallArg(clang::CodeGen::CallArgList&,
clang::Expr const*, clang::QualType) + 878
33 clang           0x0000000000c645e9
34 clang           0x0000000000c79105
clang::CodeGen::CodeGenFunction::EmitCXXMemberCall(clang::CXXMethodDecl const*,
clang::SourceLocation, llvm::Value*, clang::CodeGen::ReturnValueSlot,
llvm::Value*, llvm::Value*, clang::ConstExprIterator, clang::ConstExprIterator)
+ 757
35 clang           0x0000000000bfed60
clang::CodeGen::CodeGenFunction::EmitCXXConstructorCall(clang::CXXConstructorDecl
const*, clang::CXXCtorType, bool, llvm::Value*, clang::ConstExprIterator,
clang::ConstExprIterator) + 896
36 clang           0x0000000000c7acd0
clang::CodeGen::CodeGenFunction::EmitCXXConstructExpr(clang::CXXConstructExpr
const*, clang::CodeGen::AggValueSlot) + 1152
37 clang           0x0000000000c70ef6
38 clang           0x0000000000c6e158
39 clang           0x0000000000c70dd7
40 clang           0x0000000000c6e128
41 clang           0x0000000000c75f1a
42 clang           0x0000000000c760f8
43 clang           0x0000000000c71498
44 clang           0x0000000000c6e350
45 clang           0x0000000000c7262d
46 clang           0x0000000000c6e5a8
47 clang           0x0000000000c6d6a8
clang::CodeGen::CodeGenFunction::EmitAggExpr(clang::Expr const*,
clang::CodeGen::AggValueSlot) + 248
48 clang           0x0000000000c7aafa
clang::CodeGen::CodeGenFunction::EmitCXXConstructExpr(clang::CXXConstructExpr
const*, clang::CodeGen::AggValueSlot) + 682
49 clang           0x0000000000c70ef6
50 clang           0x0000000000c6e158
51 clang           0x0000000000c718c9
52 clang           0x0000000000c6e488
53 clang           0x0000000000c6d6a8
clang::CodeGen::CodeGenFunction::EmitAggExpr(clang::Expr const*,
clang::CodeGen::AggValueSlot) + 248
54 clang           0x0000000000c33a59
clang::CodeGen::CodeGenFunction::EmitExprAsInit(clang::Expr const*,
clang::ValueDecl const*, clang::CodeGen::LValue, bool) + 825
55 clang           0x0000000000c32c24
clang::CodeGen::CodeGenFunction::EmitAutoVarInit(clang::CodeGen::CodeGenFunction::AutoVarEmission
const&) + 756
56 clang           0x0000000000c305ca
clang::CodeGen::CodeGenFunction::EmitAutoVarDecl(clang::VarDecl const&) + 58
57 clang           0x0000000000c304a1
clang::CodeGen::CodeGenFunction::EmitVarDecl(clang::VarDecl const&) + 81
58 clang           0x0000000000c3031c
clang::CodeGen::CodeGenFunction::EmitDecl(clang::Decl const&) + 172
59 clang           0x0000000000d23e7f
clang::CodeGen::CodeGenFunction::EmitDeclStmt(clang::DeclStmt const&) + 111
60 clang           0x0000000000d1f5c1
clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) + 241
61 clang           0x0000000000d1ef80
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 80
62 clang           0x0000000000d23c9a
clang::CodeGen::CodeGenFunction::EmitCompoundStmt(clang::CompoundStmt const&,
bool, clang::CodeGen::AggValueSlot) + 282
63 clang           0x0000000000d1f59f
clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) + 207
64 clang           0x0000000000d1ef80
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 80
65 clang           0x0000000000d1fa2b
clang::CodeGen::CodeGenFunction::EmitIfStmt(clang::IfStmt const&) + 603
66 clang           0x0000000000d1f153
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 547
67 clang           0x0000000000d23c9a
clang::CodeGen::CodeGenFunction::EmitCompoundStmt(clang::CompoundStmt const&,
bool, clang::CodeGen::AggValueSlot) + 282
68 clang           0x0000000000d1f59f
clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) + 207
69 clang           0x0000000000d1ef80
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 80
70 clang           0x0000000000d1fa2b
clang::CodeGen::CodeGenFunction::EmitIfStmt(clang::IfStmt const&) + 603
71 clang           0x0000000000d1f153
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 547
72 clang           0x0000000000d23c9a
clang::CodeGen::CodeGenFunction::EmitCompoundStmt(clang::CompoundStmt const&,
bool, clang::CodeGen::AggValueSlot) + 282
73 clang           0x0000000000d1f59f
clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) + 207
74 clang           0x0000000000d1ef80
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 80
75 clang           0x0000000000d3de01
clang::CodeGen::CodeGenFunction::EmitFunctionBody(clang::CodeGen::FunctionArgList&)
+ 161
76 clang           0x0000000000d3e204
clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl,
llvm::Function*, clang::CodeGen::CGFunctionInfo const&) + 1012
77 clang           0x0000000000b5f110
clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl)
+ 864
78 clang           0x0000000000b5c326
clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl) + 438
79 clang           0x0000000000b5e591
clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl) + 753
80 clang           0x0000000000b646a1
clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) + 257
81 clang           0x0000000000b53e25
82 clang           0x0000000000b5190e
83 clang           0x0000000000d6cbae clang::ParseAST(clang::Sema&, bool, bool)
+ 494
84 clang           0x00000000008b9c4a clang::ASTFrontendAction::ExecuteAction()
+ 298
85 clang           0x0000000000b50ee6 clang::CodeGenAction::ExecuteAction() +
1222
86 clang           0x00000000008b9856 clang::FrontendAction::Execute() + 166
87 clang           0x0000000000888205
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 789
88 clang           0x0000000000849d19
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1001
89 clang           0x00000000008366c0 cc1_main(char const**, char const**, char
const*, void*) + 944
90 clang           0x0000000000842ac5 main + 533
91 libc.so.6       0x00000038c841ecdd __libc_start_main + 253
92 clang           0x0000000000836229
Stack dump:
0.    Program arguments: /home/baba/local/bin/clang -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name
battle_room_pvp.cpp -mrelocation-model static -fmath-errno -masm-verbose
-mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64
-target-linker-version 2.20.51.0.2 -momit-leaf-frame-pointer -coverage-file
/home/baba/development/mo at a3/mars_online_server/mars_online_server/battle_room_pvp.o
-resource-dir /home/baba/local/bin/../lib/clang/3.3 -dependency-file
.deps/battle_room_pvp.Tpo -sys-header-deps -MP -MT battle_room_pvp.o -D
PACKAGE_NAME="" -D PACKAGE_TARNAME="" -D PACKAGE_VERSION="" -D
PACKAGE_STRING="" -D PACKAGE_BUGREPORT="" -D PACKAGE="mo" -D VERSION="1.0" -D
STDC_HEADERS=1 -D HAVE_SYS_TYPES_H=1 -D HAVE_SYS_STAT_H=1 -D HAVE_STDLIB_H=1 -D
HAVE_STRING_H=1 -D HAVE_MEMORY_H=1 -D HAVE_STRINGS_H=1 -D HAVE_INTTYPES_H=1 -D
HAVE_STDINT_H=1 -D HAVE_UNISTD_H=1 -D HAVE__BOOL=1 -D HAVE_STDBOOL_H=1 -D
HAVE_MEMSET=1 -D HAVE_STRTOL=1 -D HAVE_STRTOUL=1 -D HAVE_STRTOULL=1 -D
PROGRAM_NAME="mars online" -D ENABLE_ERROR -I . -I /opt/local/include -I
/home/baba/local/include -I /usr/local/include -I ../../include-c++11
-fmodule-cache-path /var/tmp/clang-module-cache -internal-isystem
/home/baba/local/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0
-internal-isystem
/home/baba/local/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/x86_64-unknown-linux-gnu
-internal-isystem
/home/baba/local/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/backward
-internal-isystem /usr/local/include -internal-isystem
/home/baba/local/bin/../lib/clang/3.3/include -internal-externc-isystem
/include -internal-externc-isystem /usr/include -O2 -std=c++11
-fdeprecated-macro -fdebug-compilation-dir
/home/baba/development/mo at a3/mars_online_server/mars_online_server
-ferror-limit 19 -fmessage-length 129 -mstackrealign -fobjc-runtime=gcc
-fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics
-backend-option -vectorize-loops -o battle_room_pvp.o -x c++
battle_room_pvp.cpp 
1.    <eof> parser at end of file
2.    battle_room_pvp.cpp:408:22: LLVM IR generation of declaration
'battle_room_pvp::on_pair_1v1_battle'
3.    battle_room_pvp.cpp:408:22: Generating code for declaration
'battle_room_pvp::on_pair_1v1_battle'
4.    battle_room_pvp.cpp:408:43: LLVM IR generation of compound statement
('{}')
5.    battle_room_pvp.cpp:427:22: LLVM IR generation of compound statement
('{}')
6.    battle_room_pvp.cpp:430:26: LLVM IR generation of compound statement
('{}')
clang: error: unable to execute command: Aborted (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.3 (trunk 171695)
Target: x86_64-unknown-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: 
********************

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/battle_room_pvp-oCcT0y.cpp
clang: note: diagnostic msg: /tmp/battle_room_pvp-oCcT0y.sh
clang: note: diagnostic msg: 

********************
make: *** [battle_room_pvp.o] 错误 254
[baba at centos62internal mars_online_server]$ clang++ --version
clang version 3.3 (trunk 171695)
Target: x86_64-unknown-linux-gnu
Thread model: posix
[baba at centos62internal mars_online_server]$

-- 
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/20130603/3fe8478f/attachment.html>


More information about the llvm-bugs mailing list