<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - clang crashes with SIGSEV in clang::CodeGen::CodeGenFunction::EmitScalarExpr"
   href="http://llvm.org/bugs/show_bug.cgi?id=15728">15728</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang crashes with SIGSEV in clang::CodeGen::CodeGenFunction::EmitScalarExpr
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.2
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>C++
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>spam@abma.de
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dgregor@apple.com, llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=10341" name="attach_10341" title="source code which lets clang crash">attachment 10341</a> <a href="attachment.cgi?id=10341&action=edit" title="source code which lets clang crash">[details]</a></span>
source code which lets clang crash

0  libLLVM-3.2.so.1 0x00007f23a3af4c0f
1  libLLVM-3.2.so.1 0x00007f23a3af5079
2  libpthread.so.0  0x00007f23a2ba8bd0
3  clang            0x0000000000540c38
4  clang            0x00000000007d610f
5  clang            0x00000000007d85fd
clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr const*, bool) + 61
6  clang            0x000000000079bebf
clang::CodeGen::CodeGenFunction::EmitAnyExpr(clang::Expr const*,
clang::CodeGen::AggValueSlot, bool) + 303
7  clang            0x00000000007ac826
clang::CodeGen::CodeGenFunction::EmitIgnoredExpr(clang::Expr const*) + 70
8  clang            0x000000000082c24f
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 303
9  clang            0x000000000082c41f
clang::CodeGen::CodeGenFunction::EmitCompoundStmt(clang::CompoundStmt const&,
bool, clang::CodeGen::AggValueSlot) + 239
10 clang            0x000000000082ea42
clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) + 210
11 clang            0x000000000082c143
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 35
12 clang            0x000000000082e7f3
clang::CodeGen::CodeGenFunction::EmitIfStmt(clang::IfStmt const&) + 483
13 clang            0x000000000082c29b
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 379
14 clang            0x000000000082c41f
clang::CodeGen::CodeGenFunction::EmitCompoundStmt(clang::CompoundStmt const&,
bool, clang::CodeGen::AggValueSlot) + 239
15 clang            0x000000000082ea42
clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) + 210
16 clang            0x000000000082c143
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 35
17 clang            0x0000000000771231
clang::CodeGen::CodeGenFunction::EmitDestructorBody(clang::CodeGen::FunctionArgList&)
+ 385
18 clang            0x000000000083eb20
clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl,
llvm::Function*, clang::CodeGen::CGFunctionInfo const&) + 1600
19 clang            0x000000000075b942
clang::CodeGen::CodeGenModule::EmitCXXDestructor(clang::CXXDestructorDecl
const*, clang::CXXDtorType) + 194
20 clang            0x0000000000736221
clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl) + 465
21 clang            0x0000000000737968
clang::CodeGen::CodeGenModule::EmitDeferred() + 216
22 clang            0x0000000000737979 clang::CodeGen::CodeGenModule::Release()
+ 9
23 clang            0x000000000072332b
24 clang            0x0000000000859bd2 clang::ParseAST(clang::Sema&, bool,
bool) + 498
25 clang            0x00000000005f50b1 clang::FrontendAction::Execute() + 97
26 clang            0x00000000005dc57a
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 282
27 clang            0x00000000005c5e92
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1378
28 clang            0x00000000005c0e88 cc1_main(char const**, char const**,
char const*, void*) + 1160
29 clang            0x00000000005bfd84 main + 7316
30 libc.so.6        0x00007f23a22d9ea5 __libc_start_main + 245
31 clang            0x00000000005c0889
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
MiniMap.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.1
-momit-leaf-frame-pointer -g -D BOOST_NO_FENV_H -D
SPRING_DATADIR="/home/abma/local/spring/develop/share/games/spring" -D
STREFLOP_SSE -D SYNCCHECK -D USE_GML -D USE_GML_SIM -D USE_VALGRIND -D DEBUG -D
_DEBUG -D NO_CATCH_EXCEPTIONS -O0 -Wall -Wno-sign-compare -fdeprecated-macro
-ferror-limit 19 -fmessage-length 0 -fvisibility hidden
-fvisibility-inlines-hidden -pthread -mstackrealign -fobjc-runtime=gcc
-fcxx-exceptions -fexceptions -fdiagnostics-show-option -x c++
MiniMap-UMYYr8.cpp 
1.    <eof> parser at end of file
2.    Per-file LLVM IR generation
3.    rts/lib/gml/gmlcls.h:235:10: Generating code for declaration
'gmlBaseMutexLock<boost::unique_lock<boost::recursive_mutex>,
boost::recursive_mutex>::~gmlBaseMutexLock'
4.    rts/lib/gml/gmlcls.h:235:30: LLVM IR generation of compound statement
('{}')
5.    rts/lib/gml/gmlcls.h:236:23: LLVM IR generation of compound statement
('{}')
Segmentation fault (core dumped)</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>