<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 --- - Crash in ARM Assembly/Object Emitter"
   href="http://llvm.org/bugs/show_bug.cgi?id=15452">15452</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Crash in ARM Assembly/Object Emitter
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>trunk
          </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>enhancement
          </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>bero@linaro.org
          </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>When building the nexus7 Linux kernel with clang (with patches from llvmlinux),
I'm getting the following crash:

0  libLLVM-3.3.so  0x00002ba2c164f792 llvm::sys::PrintStackTrace(_IO_FILE*) +
34
1  libLLVM-3.3.so  0x00002ba2c164f5e9
2  libpthread.so.0 0x00002ba2c2634050
3  libLLVM-3.3.so  0x00002ba2c14fd93a
llvm::ARMInstPrinter::getRegisterName(unsigned int) + 10
4  libLLVM-3.3.so  0x00002ba2c14fd9a0
llvm::ARMInstPrinter::printRegName(llvm::raw_ostream&, unsigned int) const + 80
5  libLLVM-3.3.so  0x00002ba2c150102c
llvm::ARMInstPrinter::printRegisterList(llvm::MCInst const*, unsigned int,
llvm::raw_ostream&) + 124
6  libLLVM-3.3.so  0x00002ba2c15078b6
llvm::ARMInstPrinter::printInstruction(llvm::MCInst const*, llvm::raw_ostream&)
+ 7670
7  libLLVM-3.3.so  0x00002ba2c1508f41
llvm::ARMInstPrinter::printInst(llvm::MCInst const*, llvm::raw_ostream&,
llvm::StringRef) + 369
8  libLLVM-3.3.so  0x00002ba2c13de09f
9  libLLVM-3.3.so  0x00002ba2c1cfd587
10 libLLVM-3.3.so  0x00002ba2c16ae3c7 llvm::AsmPrinter::EmitFunctionBody() +
343
11 libLLVM-3.3.so  0x00002ba2c1cf75ef
12 libLLVM-3.3.so  0x00002ba2c14df01f
llvm::FPPassManager::runOnFunction(llvm::Function&) + 607
13 libLLVM-3.3.so  0x00002ba2c14df05b
llvm::FPPassManager::runOnModule(llvm::Module&) + 43
14 libLLVM-3.3.so  0x00002ba2c14dec0f
llvm::MPPassManager::runOnModule(llvm::Module&) + 575
15 libLLVM-3.3.so  0x00002ba2c14ded4c llvm::PassManagerImpl::run(llvm::Module&)
+ 172
16 clang           0x0000000000705724
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*,
clang::BackendAction, llvm::raw_ostream*) + 3364
17 clang           0x00000000010089c2
18 clang           0x000000000082e51a clang::ParseAST(clang::Sema&, bool, bool)
+ 538
19 clang           0x00000000005ec2f9 clang::FrontendAction::Execute() + 185
20 clang           0x00000000005d6b32
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 290
21 clang           0x00000000005c7c6a
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1498
22 clang           0x00000000005c3a88 cc1_main(char const**, char const**, char
const*, void*) + 1144
23 clang           0x00000000005c2a16 main + 7430
24 libc.so.6       0x00002ba2c297bc35 __libc_start_main + 245
25 clang           0x00000000005c355d
Stack dump:
0.      Program arguments: /usr/bin/clang -cc1 -triple armv7--linux-androideabi
-S -disable-free -disable-llvm-verifier -main-file-name xt_qtaguid.c
-mrelocation-model static -relaxed-aliasing -fmath-errno -mconstructor-aliases
-munwind-tables -fuse-init-array -target-abi aapcs-linux -target-cpu cortex-a8
-msoft-float -mfloat-abi soft -target-feature +soft-float -target-feature
+soft-float-abi -target-feature -neon -target-linker-version
2.23.51.0.9.20130118 -momit-leaf-frame-pointer -g -coverage-file
/tmp/xt_qtaguid-e4FnVz.s -nostdsysteminc -nobuiltininc -resource-dir
/usr/bin/../lib/clang/3.3 -dependency-file net/netfilter/.xt_qtaguid.o.d -MT
net/netfilter/xt_qtaguid.o -sys-header-deps -isystem
/usr/bin/../lib/clang/3.3/include -include
/mnt/disk/repos/linaro-android/src/kernel/tegra/include/linux/kconfig.h -D
__KERNEL__ -D __LINUX_ARM_ARCH__=7 -D KBUILD_STR(s)=#s -D
KBUILD_BASENAME=KBUILD_STR(xt_qtaguid) -D KBUILD_MODNAME=KBUILD_STR(xt_qtaguid)
-I /mnt/disk/repos/linaro-android/src/kernel/tegra/arch/arm/include -I
arch/arm/include/generated -I include -I
/mnt/disk/repos/linaro-android/src/kernel/tegra/include -I
/mnt/disk/repos/linaro-android/src/kernel/tegra/net/netfilter -I net/netfilter
-I /mnt/disk/repos/linaro-android/src/kernel/tegra/arch/arm/mach-tegra/include
-O2 -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs
-Werror-implicit-function-declaration -Wno-format-security
-Wno-asm-operand-widths -Wno-unused-but-set-variable
-Wdeclaration-after-statement -Wno-pointer-sign -fno-dwarf2-cfi-asm
-fno-dwarf-directory-asm -fdebug-compilation-dir
/mnt/disk/repos/linaro-grouper/out/target/product/grouper/obj/kernel
-ferror-limit 19 -fmessage-length 0 -fwrapv -mstackrealign -fno-builtin
-fno-signed-char -fobjc-runtime=gcc -fobjc-default-synthesize-properties
-fno-common -fdiagnostics-show-option -backend-option -vectorize-loops -o
/tmp/xt_qtaguid-e4FnVz.s -x c
/mnt/disk/repos/linaro-android/src/kernel/tegra/net/netfilter/xt_qtaguid.c 
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module
'/mnt/disk/repos/linaro-android/src/kernel/tegra/net/netfilter/xt_qtaguid.c'.
4.      Running pass 'ARM Assembly / Object Emitter' on function '@qtaguid_mt'
clang: error: unable to execute command: Segmentation fault (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.3 (trunk)
Target: arm--linux-androideabi
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> 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/xt_qtaguid-gE5Xie.c
clang: note: diagnostic msg: /tmp/xt_qtaguid-gE5Xie.sh
clang: note: diagnostic msg: 

********************
make[4]: *** [net/netfilter/xt_qtaguid.o] Error 254</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>