[LLVMbugs] [Bug 10149] New: __asm__ segfaults
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Jun 17 07:12:43 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=10149
Summary: __asm__ segfaults
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Frontend
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: tim.nieradzik at gmx.de
CC: llvmbugs at cs.uiuc.edu
int main(void) {
int value;
__asm__("test" : "=l" (value));
}
$ clang crash.c
0 clang 0x0000000001916b7f
1 clang 0x0000000001916f4a
2 libpthread.so.0 0x00007f7904564000
3 clang 0x00000000012945b9 llvm::SelectionDAG::getNode(unsigned int,
llvm::DebugLoc, llvm::SDVTList, llvm::SDValue const*, unsigned int) + 1449
4 clang 0x00000000012bb5ba
llvm::SelectionDAGBuilder::visitInlineAsm(llvm::ImmutableCallSite) + 8314
5 clang 0x00000000012cd822
llvm::SelectionDAGBuilder::visitCall(llvm::CallInst const&) + 1218
6 clang 0x00000000012b42ad llvm::SelectionDAGBuilder::visit(unsigned
int, llvm::User const&) + 317
7 clang 0x00000000012dc332
llvm::SelectionDAGBuilder::visit(llvm::Instruction const&) + 50
8 clang 0x00000000012ea395
llvm::SelectionDAGISel::SelectBasicBlock(llvm::ilist_iterator<llvm::Instruction
const>, llvm::ilist_iterator<llvm::Instruction const>, bool&) + 53
9 clang 0x00000000012ec463
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 8227
10 clang 0x00000000012ede7a
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 650
11 clang 0x000000000184fa07
llvm::FPPassManager::runOnFunction(llvm::Function&) + 615
12 clang 0x000000000184fa8b
llvm::FPPassManager::runOnModule(llvm::Module&) + 75
13 clang 0x000000000184f5b7
llvm::MPPassManager::runOnModule(llvm::Module&) + 519
14 clang 0x000000000184f6c1 llvm::PassManagerImpl::run(llvm::Module&)
+ 145
15 clang 0x000000000075cdfe
clang::EmitBackendOutput(clang::Diagnostic&, clang::CodeGenOptions const&,
clang::TargetOptions const&, llvm::Module*, clang::BackendAction,
llvm::raw_ostream*) + 3006
16 clang 0x000000000075ad55
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 245
17 clang 0x00000000008a26af clang::ParseAST(clang::Sema&, bool) + 351
18 clang 0x0000000000759ba3 clang::CodeGenAction::ExecuteAction() +
51
19 clang 0x0000000000666a3b
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 315
20 clang 0x00000000006427ba
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1178
21 clang 0x0000000000637481 cc1_main(char const**, char const**, char
const*, void*) + 737
22 clang 0x00000000006414bc main + 6844
23 libc.so.6 0x00007f790386dc7d __libc_start_main + 253
24 clang 0x0000000000636fe9
Stack dump:
0. Program arguments: /home/tim/dev/build/Release/bin/clang -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free
-disable-llvm-verifier -main-file-name crash.c -mrelocation-model static
-mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables
-target-cpu x86-64 -target-linker-version 2.20.1 -momit-leaf-frame-pointer
-resource-dir /home/tim/dev/build/Release/bin/../lib/clang/3.0 -ferror-limit 19
-fmessage-length 80 -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics
-o /tmp/cc-QHYMkf.o -x c crash.c
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module 'crash.c'.
4. Running pass 'X86 DAG->DAG Instruction Selection' on function '@main'
clang: error: unable to execute command: Segmentation fault
clang: error: clang frontend command failed due to signal 2 (use -v to see
invocation)
$ clang -v
clang version 3.0 (trunk 132756)
Target: x86_64-unknown-linux-gnu
Thread model: posix
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list