<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 --- - llvm::StoreInst::StoreInst crash with release ARM iOS build."
   href="http://llvm.org/bugs/show_bug.cgi?id=17759">17759</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>llvm::StoreInst::StoreInst crash with release ARM iOS build.
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>MacOS X
          </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>LLVM Codegen
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>justincohen@google.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>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=11465" name="attach_11465" title="test case file.">attachment 11465</a> <a href="attachment.cgi?id=11465&action=edit" title="test case file.">[details]</a></span>
test case file.

Crash while building release ARM for iOS.  Apologies for the large test case, I
gave up on multidelta when I got to 100 lines.


0  clang             0x0000000101ae86e8 llvm::sys::PrintStackTrace(__sFILE*) +
40
1  clang             0x0000000101ae8c24 abort + 676
2  libsystem_c.dylib 0x00007fff86b4190a _sigtramp + 26
3  libsystem_c.dylib 0x00000001ffffffff _sigtramp + 2035017487
4  clang             0x0000000101a5f1a6
llvm::StoreInst::StoreInst(llvm::Value*, llvm::Value*, bool,
llvm::Instruction*) + 54
5  clang             0x0000000100da3e84 llvm::createLoopVectorizePass(bool) +
100724
6  clang             0x00000001002b1a51
clang::CodeGen::CodeGenFunction::EmitReturnStmt(clang::ReturnStmt const&) + 865
7  clang             0x00000001002afeee
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 814
8  clang             0x00000001002b5d1b
clang::CodeGen::CodeGenFunction::EmitCompoundStmtWithoutScope(clang::CompoundStmt
const&, bool, clang::CodeGen::AggValueSlot) + 91
9  clang             0x00000001002b54d4
clang::CodeGen::CodeGenFunction::EmitCompoundStmt(clang::CompoundStmt const&,
bool, clang::CodeGen::AggValueSlot) + 324
10 clang             0x00000001002b036b
clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) + 379
11 clang             0x00000001002afbeb
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 43
12 clang             0x00000001001f8603
clang::CodeGen::CodeGenFunction::EmitConstructorBody(clang::CodeGen::FunctionArgList&)
+ 547
13 clang             0x00000001002c3aba
clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl,
llvm::Function*, clang::CodeGen::CGFunctionInfo const&) + 586
14 clang             0x00000001001e7897
clang::CodeGen::CodeGenModule::EmitCXXConstructor(clang::CXXConstructorDecl
const*, clang::CXXCtorType) + 343
15 clang             0x00000001002cb984
clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl) + 276
16 clang             0x00000001002c806b
clang::CodeGen::CodeGenModule::EmitDeferred() + 27
17 clang             0x00000001002c7ed1
clang::CodeGen::CodeGenModule::Release() + 17
18 clang             0x00000001002bfd6e
clang::EmitObjAction::EmitObjAction(llvm::LLVMContext*) + 1054
19 clang             0x0000000100311c14 clang::ParseAST(clang::Sema&, bool,
bool) + 484
20 clang             0x00000001002befa1 clang::CodeGenAction::ExecuteAction() +
545
21 clang             0x0000000100068ac4 clang::FrontendAction::Execute() + 116
22 clang             0x00000001000420bd
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 973
23 clang             0x00000001000090d8
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3352
24 clang             0x0000000100001279 cc1_main(char const**, char const**,
char const*, void*) + 793
25 clang             0x00000001000073af main + 8911
1.    <eof> parser at end of file
2.    Per-file LLVM IR generation
3.    main.mm:92:17: Generating code for declaration '<anonymous
namespace>::MainControllerTest::MainControllerTest'
4.    main.mm:92:38: LLVM IR generation of compound statement ('{}')
Segmentation fault: 11

Run attached test_case.mm with:

llvm-build/Release+Asserts/bin/clang -cc1 -triple thumbv7-apple-ios6.0.0
-emit-obj -mrelax-all -disable-free -mrelocation-model pic -pic-level 2
-mdisable-fp-elim -masm-verbose -target-cpu cortex-a8 -target-feature
+soft-float-abi -target-abi apcs-gnu -mfloat-abi soft -target-linker-version
133.3 -gdwarf-2  -O0 -std=gnu++0x  -stack-protector 1 -mstackrealign -fblocks
-fno-rtti -fno-threadsafe-statics -fobjc-runtime=ios-6.0.0   -x objective-c++
test_case.mm</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>