[LLVMbugs] [Bug 21609] New: [AsmPrinter] DwarfFile: Assertion `(LS->getParent() || CurNum != ArgNum) && "Duplicate argument for top level (non-inlined) function"' failed.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Nov 19 09:11:47 PST 2014


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

            Bug ID: 21609
           Summary: [AsmPrinter] DwarfFile: Assertion `(LS->getParent() ||
                    CurNum != ArgNum) && "Duplicate argument for top level
                    (non-inlined) function"' failed.
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: AArch64
          Assignee: unassignedbugs at nondot.org
          Reporter: mcrosier at codeaurora.org
                CC: apazos at codeaurora.org, dblaikie at gmail.com,
                    llvmbugs at cs.uiuc.edu
    Classification: Unclassified

llvm/lib/CodeGen/AsmPrinter/DwarfFile.cpp:177: void
llvm::DwarfFile::addScopeVariable(llvm::LexicalScope*, llvm::DbgVariable*):
Assertion `(LS->getParent() || CurNum != ArgNum) && "Duplicate argument for top
level (non-inlined) function"' failed.

Reduced test case:

struct S {
  int m;
  S(int i) : m(i) {}

  int f
(int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,int,!
 int,int,i
 nt,int,int,int,int,int,char)
const { return 0; }
};

int main(void) {
  const S s(0);
  return
s.f(1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1);
}

Reproduce with:
clang-3.6 "-cc1" "-triple" "aarch64--linux-gnu" "-emit-obj" "-mrelax-all"
"-disable-free" "-main-file-name" "foo.ii" "-mrelocation-model" "static"
"-mthread-model" "posix" "-mdisable-fp-elim" "-fmath-errno" "-masm-verbose"
"-mconstructor-aliases" "-fuse-init-array" "-target-cpu" "cortex-a57"
"-target-feature" "+neon" "-target-feature" "+crc" "-target-feature" "+crypto"
"-target-abi" "aapcs" "-g" "-dwarf-column-info" "-coverage-file"
"/prj/llvm-arm/home/mrosier/foo.o" "-O0" "-fdeprecated-macro" "-ferror-limit"
"19" "-fmessage-length" "267" "-mstackrealign"
"-fallow-half-arguments-and-returns" "-fno-signed-char" "-fobjc-runtime=gcc"
"-fcxx-exceptions" "-fexceptions" "-fdiagnostics-show-option"
"-fcolor-diagnostics" "-o" "foo.o" "-x" "c++-cpp-output" "foo.ii"

-- 
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/20141119/8db6f928/attachment.html>


More information about the llvm-bugs mailing list