<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 --- - [3.3 RC] i1 weak_odr thread_local global crashes MC on OS X"
   href="http://llvm.org/bugs/show_bug.cgi?id=15972">15972</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[3.3 RC] i1 weak_odr thread_local global crashes MC on OS X
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

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

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

        <tr>
          <th>OS</th>
          <td>All
          </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>MC
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>code@klickverbot.at
          </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>LLVM from the release_33 branch (r181625) crashes when MC-codegening the
following module

---
target datalayout =
"e-p:64:64:64-S128-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f16:16:16-f32:32:32-f64:64:64-f128:128:128-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
target triple = "x86_64-apple-darwin11.4.2"

@global = weak_odr thread_local global i1 zeroinitializer
---

(e.g. llc -filetype=obj testcase.ll):

---
Assertion failed: (FF.getValueSize() && "Invalid virtual align in concrete
fragment!"), function writeFragment, file
/Users/aule/Build/Source/llvm/lib/MC/MCAssembler.cpp, line 639.
0  llc               0x000000010d49c06e llvm::sys::PrintStackTrace(__sFILE*) +
46
1  llc               0x000000010d49c37b _ZL28PrintStackTraceSignalHandlerPv +
27
2  llc               0x000000010d49c689 _ZL13SignalHandleri + 297
3  libsystem_c.dylib 0x00007fff91d85cfa _sigtramp + 26
4  libsystem_c.dylib 0x000004006c340df8 _sigtramp + 3663442200
5  llc               0x000000010d49c3ab raise + 27
6  llc               0x000000010d49c462 abort + 18
7  llc               0x000000010d49c441 __assert_rtn + 129
8  llc               0x000000010d3bca3a
_ZL13writeFragmentRKN4llvm11MCAssemblerERKNS_11MCAsmLayoutERKNS_10MCFragmentE +
2058
9  llc               0x000000010d3bc198
llvm::MCAssembler::writeSectionData(llvm::MCSectionData const*,
llvm::MCAsmLayout const&) const + 968
10 llc               0x000000010d408d19
llvm::MachObjectWriter::WriteObject(llvm::MCAssembler&, llvm::MCAsmLayout
const&) + 2377
11 llc               0x000000010d3bd53b llvm::MCAssembler::Finish() + 1515
12 llc               0x000000010d3f602e llvm::MCObjectStreamer::FinishImpl() +
142
13 llc               0x000000010d3e9ece (anonymous
namespace)::MCMachOStreamer::FinishImpl() + 702
14 llc               0x000000010d3fc50e llvm::MCStreamer::Finish() + 110
15 llc               0x000000010ca68451
llvm::AsmPrinter::doFinalization(llvm::Module&) + 2961
16 llc               0x000000010d35666c
llvm::FPPassManager::doFinalization(llvm::Module&) + 92
17 llc               0x000000010d356b1e
llvm::MPPassManager::runOnModule(llvm::Module&) + 1134
18 llc               0x000000010d35713e
llvm::PassManagerImpl::run(llvm::Module&) + 302
19 llc               0x000000010d3573e1 llvm::PassManager::run(llvm::Module&) +
33
20 llc               0x000000010c7464ac
_ZL13compileModulePPcRN4llvm11LLVMContextE + 4844
21 llc               0x000000010c745162 main + 226
22 llc               0x000000010c745034 start + 52
---</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>