[LLVMbugs] [Bug 12341] New: Segmentation fault on powerpc getGlobalAddress

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Mar 23 19:05:02 PDT 2012


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

             Bug #: 12341
           Summary: Segmentation fault on powerpc getGlobalAddress
           Product: libraries
           Version: trunk
          Platform: Macintosh
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: Common Code Generator Code
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: chmeeedalf at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


On recent clang/llvm I get a segmentation fault during the "PowerPC DAG->DAG
Pattern Instruction Selection" pass.

Version (llvm and clang are the same version):

clang version 3.1 (trunk 153301)
Target: powerpc-unknown-freebsd10.0
Thread model: posix

Hello world source:

#include <stdio.h>

int main(int arg, char **argv)
{
        printf("Hello, world\n");
}


Error output:

0.      Program arguments: /usr/local/bin/clang -cc1 -triple
powerpc-unknown-freebsd10.0 -S -disable-free -disable-llvm-verifier
-main-file-name hello.c -mrelocation-model static -mdisable-fp-elim
-mconstructor-aliases -momit-leaf-frame-pointer -coverage-file
/tmp/hello-gQeuAI.s -resource-dir /usr/local/bin/../lib/clang/3.1
-fmodule-cache-path /var/tmp/clang-module-cache -fno-dwarf-directory-asm
-fdebug-compilation-dir /home/chmeee -ferror-limit 19 -fmessage-length 191
-mstackrealign -fno-signed-char -fgnu-runtime -fobjc-runtime-has-arc
-fobjc-runtime-has-weak -fobjc-fragile-abi -fdiagnostics-show-option
-fcolor-diagnostics -o /tmp/hello-gQeuAI.s -x c hello.c 
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module 'hello.c'.
4.      Running pass 'PowerPC DAG->DAG Pattern Instruction Selection' on
function '@main'
clang: error: unable to execute command: Segmentation fault: 11 (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang: note: diagnostic msg: Please submit a bug report to
http://llvm.org/bugs/ and include command line arguments and all diagnostic
information.
clang: note: diagnostic msg: Preprocessed source(s) and associated run
script(s) are located at:
clang: note: diagnostic msg: /tmp/hello-2d8FZm.i
clang: note: diagnostic msg: /tmp/hello-2d8FZm.sh



Backtrace:

#0  0x02946600 in llvm::SelectionDAG::getGlobalAddress ()
#1  0x029464c8 in llvm::SelectionDAG::getGlobalAddress ()
#2  0x028cbbc8 in llvm::PPCTargetLowering::LowerOperation ()
#3  0x02a2ace8 in llvm::DenseMap<llvm::Value const*, unsigned int,
llvm::DenseMapInfo<llvm::Value const*>, llvm::DenseMapInfo<unsigned int>
>::FindAndConstruct ()
#4  0x02a319f0 in llvm::SelectionDAG::Legalize ()
#5  0x029d20d0 in llvm::SelectionDAGISel::CodeGenAndEmitDAG ()
#6  0x029d35f8 in llvm::SelectionDAGISel::SelectBasicBlock ()
#7  0x029d47d8 in llvm::SelectionDAGISel::SelectAllBasicBlocks ()
#8  0x029d56e0 in llvm::SelectionDAGISel::runOnMachineFunction ()
#9  0x028aa800 in llvm::createPPCISelDag ()
#10 0x02b224b4 in llvm::MachineFunctionPass::runOnFunction ()
#11 0x0308e390 in llvm::FPPassManager::runOnFunction ()
#12 0x0308e430 in llvm::FPPassManager::runOnModule ()
#13 0x0308df7c in llvm::MPPassManager::runOnModule ()
#14 0x0308e09c in llvm::PassManagerImpl::run ()
#15 0x0308e114 in llvm::PassManager::run ()
#16 0x01bac3a0 in clang::CreateLLVMCodeGen ()
#17 0x01baccf8 in clang::EmitBackendOutput ()
#18 0x01ba9108 in std::vector<std::pair<unsigned int, unsigned int>,
std::allocator<std::pair<unsigned int, unsigned int> > >::operator= ()
#19 0x01d394e0 in clang::ParseAST ()
#20 0x01a316d0 in clang::ASTFrontendAction::ExecuteAction ()
#21 0x01ba6a30 in clang::CodeGenAction::ExecuteAction ()
#22 0x01a315b0 in clang::FrontendAction::Execute ()
#23 0x01a07178 in clang::CompilerInstance::ExecuteAction ()
#24 0x019e9904 in clang::ExecuteCompilerInvocation ()
#25 0x019df564 in cc1_main ()
#26 0x019e823c in main ()

-- 
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