[LLVMbugs] [Bug 15821] New: failed assertion `(PtrInfo.V == 0 || isa<PointerType>(PtrInfo.V->getType())) && "invalid pointer value"' atCodeGen/MachineInstr.cpp:428

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Apr 22 14:40:28 PDT 2013


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

            Bug ID: 15821
           Summary: failed assertion `(PtrInfo.V == 0 ||
                    isa<PointerType>(PtrInfo.V->getType())) && "invalid
                    pointer value"' atCodeGen/MachineInstr.cpp:428
           Product: libraries
           Version: trunk
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Keywords: compile-fail
          Severity: normal
          Priority: P
         Component: Backend: PowerPC
          Assignee: unassignedbugs at nondot.org
          Reporter: fang at csl.cornell.edu
                CC: annulen at yandex.ru, hfinkel at anl.gov,
                    llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Report separated from bug 14779.

% ../../../gcc40-cmake-build/bin/clang++ -c SetTheory.cpp -o SetTheory.o
/Users/fang/local/src/LLVM-svn/llvm/lib/CodeGen/MachineInstr.cpp:428: failed
assertion `(PtrInfo.V == 0 || isa<PointerType>(PtrInfo.V->getType())) &&
"invalid pointer value"'
Stack dump:
0.      Program arguments:
/Volumes/Isolde/builds/LLVM/gcc40-cmake-build/bin/clang-3.1 -cc1 -triple
powerpc-apple-macosx10.4.0 -emit-obj -mrelax-all -disable-free -main-file-name
SetTheory.cpp -mrelocation-model pic -pic-level 2 -mdisable-fp-elim
-masm-verbose -coverage-file
/Users/fang/local/src/LLVM-svn/gcc40-stage2-build/lib/DebugInfo/SetTheory.o
-resource-dir
/Volumes/Isolde/builds/LLVM/gcc40-cmake-build/bin/../lib/clang/3.3
-fdeprecated-macro -fdebug-compilation-dir
/Users/fang/local/src/LLVM-svn/gcc40-stage2-build/lib/DebugInfo -ferror-limit
19 -fmessage-length 80 -mstackrealign -fblocks -fblocks-runtime-optional
-fobjc-runtime=macosx-10.4.0 -fobjc-default-synthesize-properties
-fencode-extended-block-signature -fcxx-exceptions -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -backend-option -vectorize-loops
-o SetTheory.o -x c++ SetTheory.cpp 
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module 'SetTheory.cpp'.
4.      Running pass 'PowerPC DAG->DAG Pattern Instruction Selection' on
function '@_ZN1F6apply2ER1CPiR1AxS4_1B'
clang-3.1: error: unable to execute command: Abort trap
clang-3.1: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.3 
Target: powerpc-apple-darwin8.11.0
Thread model: posix
clang-3.1: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang-3.1: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-3.1: note: diagnostic msg: /tmp/SetTheory-af7r6O.cpp
clang-3.1: note: diagnostic msg: /tmp/SetTheory-af7r6O.sh
clang-3.1: note: diagnostic msg: 

********************

Reduced test case from Konstantin in bug 14779:
% cat SetTheory.cpp
class A;
class B {};
class C
{
public:
    typedef A RecSet;
    C();
};
struct D  {
    virtual void apply2(C &p1, int *, C::RecSet &p3, long long ,  C::RecSet
&p5, B ) ;
};
struct F :  D {
    void apply2(C &p1, int *, C::RecSet &p3, long long, C::RecSet &p5, B ) {  
}
};
C::C()
{
    F();
}

This occurs on the powerpc-darwin8 branch (last trunk merge r179582).

-- 
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/20130422/ccf93708/attachment.html>


More information about the llvm-bugs mailing list