[LLVMbugs] [Bug 15640] New: llvm crashes with Linux kernel code on ARM target

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Apr 1 14:26:26 PDT 2013


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

            Bug ID: 15640
           Summary: llvm crashes with Linux kernel code on ARM target
           Product: new-bugs
           Version: trunk
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: weimingz at codeaurora.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 10264
  --> http://llvm.org/bugs/attachment.cgi?id=10264&action=edit
clang -O3 q

clang: /home/weimingz/llvm/include/llvm/CodeGen/MachineOperand.h:260: unsigned
int llvm::MachineOperand::getReg() const: Assertion `isReg() && "This is not a
register operand!"' failed.
0  clang           0x0000000002c7e165 llvm::sys::PrintStackTrace(_IO_FILE*) +
38
1  clang           0x0000000002c7e3e2
2  clang           0x0000000002c7de3a
3  libpthread.so.0 0x00007fa103acc8f0
4  libc.so.6       0x00007fa102bb3a75 gsignal + 53
5  libc.so.6       0x00007fa102bb75c0 abort + 384
6  libc.so.6       0x00007fa102bac941 __assert_fail + 241
7  clang           0x00000000020a6a79
8  clang           0x00000000020c68d9
llvm::ARMBaseRegisterInfo::eliminateFrameIndex(llvm::MachineBasicBlock::bundle_iterator<llvm::MachineInstr,
llvm::ilist_iterator<llvm::MachineInstr> >, int, unsigned int,
llvm::RegScavenger*) const + 935
9  clang           0x00000000024bce82
llvm::PEI::replaceFrameIndices(llvm::MachineFunction&) + 1476
10 clang           0x00000000024b9b33
llvm::PEI::runOnMachineFunction(llvm::MachineFunction&) + 571
11 clang           0x0000000002476ca5
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 95
12 clang           0x0000000002b54c77
llvm::FPPassManager::runOnFunction(llvm::Function&) + 393
13 clang           0x0000000002b54e77
llvm::FPPassManager::runOnModule(llvm::Module&) + 89
14 clang           0x0000000002b551f2
llvm::MPPassManager::runOnModule(llvm::Module&) + 576
15 clang           0x0000000002b55818 llvm::PassManagerImpl::run(llvm::Module&)
+ 254
16 clang           0x0000000002b55b73 llvm::PassManager::run(llvm::Module&) +
39
17 clang           0x0000000000e83ada
18 clang           0x0000000000e83bb2
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*,
clang::BackendAction, llvm::raw_ostream*) + 140
19 clang           0x0000000000e7e2d4
20 clang           0x0000000001062e7f clang::ParseAST(clang::Sema&, bool, bool)
+ 780
21 clang           0x0000000000c371da clang::ASTFrontendAction::ExecuteAction()
+ 298
22 clang           0x0000000000e7d139 clang::CodeGenAction::ExecuteAction() +
1425
23 clang           0x0000000000c36d5a clang::FrontendAction::Execute() + 200
24 clang           0x0000000000c0bfaa
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 728
25 clang           0x0000000000bdaa28
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1018
26 clang           0x0000000000bca930 cc1_main(char const**, char const**, char
const*, void*) + 754
27 clang           0x0000000000bd4f56 main + 499
28 libc.so.6       0x00007fa102b9ec4d __libc_start_main + 253
29 clang           0x0000000000bc9fa9
Stack dump:
0.    Program arguments: /scratch/llvm-build/Debug+Asserts/bin/clang -cc1
-triple armv4t-none-linux-gnueabi -emit-obj -disable-free -main-file-name
context-parsed.i -mrelocation-model static -fmath-errno -ffp-contract=fast
-masm-verbose -mconstructor-aliases -target-abi aapcs-linux -target-cpu
arm7tdmi -mfloat-abi soft -target-feature +soft-float-abi
-target-linker-version 2.20.1 -momit-leaf-frame-pointer -resource-dir
/local/scratch/llvm-build/mainline-state-transtion/Debug+Asserts/bin/../lib/clang/3.3
-O3 -fdebug-compilation-dir
/prj/llvm-arm/home/weimingz/llvm_tests/bug_asm_inline/unittest -ferror-limit 19
-fmessage-length 174 -mstackrealign -fno-signed-char -fobjc-runtime=gcc
-fobjc-default-synthesize-properties -fdiagnostics-show-option
-fcolor-diagnostics -o /tmp/context-parsed-VKo8Pc.o -x cpp-output
context-parsed.i

-- 
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/20130401/f0cce5e4/attachment.html>


More information about the llvm-bugs mailing list