[LLVMbugs] [Bug 22502] New: llvm/lib/CodeGen/AsmPrinter/DwarfFile.cpp:171: void llvm::DwarfFile::addScopeVariable(llvm::LexicalScope *, llvm::DbgVariable *): Assertion `CurNum != ArgNum && "Duplicate argument"' failed.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Feb 7 09:36:56 PST 2015


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

            Bug ID: 22502
           Summary: llvm/lib/CodeGen/AsmPrinter/DwarfFile.cpp:171: void
                    llvm::DwarfFile::addScopeVariable(llvm::LexicalScope
                    *, llvm::DbgVariable *): Assertion `CurNum != ArgNum
                    && "Duplicate argument"' failed.
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: rwindz0 at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

LLVM trunk: 228493
Clang trunk: 228492
Bootstrap STAGE2 failed.

clang-3.7:
/home/chilledheart/sources-llvm/llvm/lib/CodeGen/AsmPrinter/DwarfFile.cpp:171:
void llvm::DwarfFile::addScopeVariable(llvm::LexicalScope *, llvm::DbgVariable
*): Assertion `CurNum != ArgNum && "Duplicate argument"' failed.
#0 0x7fc92272738e llvm::sys::PrintStackTrace(_IO_FILE*)
/home/chilledheart/sources-llvm/llvm/lib/Support/Unix/Signals.inc:422:15
#1 0x7fc9227289ab PrintStackTraceSignalHandler(void*)
/home/chilledheart/sources-llvm/llvm/lib/Support/Unix/Signals.inc:481:1
#2 0x7fc92272ac6b SignalHandler(int)
/home/chilledheart/sources-llvm/llvm/lib/Support/Unix/Signals.inc:198:60
#3 0x7fc9203a2950 __restore_rt (/lib64/libc.so.6+0x34950)
#4 0x7fc9203a28c7 __GI_raise
/usr/src/debug/glibc-2.20/signal/../sysdeps/unix/sysv/linux/raise.c:55:0
#5 0x7fc9203a452a __GI_abort /usr/src/debug/glibc-2.20/stdlib/abort.c:91:0
#6 0x7fc92039b46d __assert_fail_base
/usr/src/debug/glibc-2.20/assert/assert.c:92:0
#7 0x7fc92039b522 (/lib64/libc.so.6+0x2d522)
#8 0x7fc91fecce98 llvm::DwarfFile::addScopeVariable(llvm::LexicalScope*,
llvm::DbgVariable*)
/home/chilledheart/sources-llvm/llvm/lib/CodeGen/AsmPrinter/DwarfFile.cpp:172:7
#9 0x7fc91fe9aa7f
llvm::DwarfDebug::collectVariableInfoFromMMITable(llvm::SmallPtrSetImpl<llvm::MDNode
const*>&)
/home/chilledheart/sources-llvm/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp:773:23
#10 0x7fc91fe9c784
llvm::DwarfDebug::collectVariableInfo(llvm::DwarfCompileUnit&,
llvm::DISubprogram, llvm::SmallPtrSetImpl<llvm::MDNode const*>&)
/home/chilledheart/sources-llvm/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp:942:24
#11 0x7fc91fe9f6af llvm::DwarfDebug::endFunction(llvm::MachineFunction const*)
/home/chilledheart/sources-llvm/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp:1263:3
#12 0x7fc91fe351bb llvm::AsmPrinter::EmitFunctionBody()
/home/chilledheart/sources-llvm/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp:885:5
#13 0x7fc9272a6a0c
llvm::X86AsmPrinter::runOnMachineFunction(llvm::MachineFunction&)
/home/chilledheart/sources-llvm/llvm/lib/Target/X86/X86AsmPrinter.cpp:70:3
#14 0x7fc924e1b68e llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
/home/chilledheart/sources-llvm/llvm/lib/CodeGen/MachineFunctionPass.cpp:41:10
#15 0x7fc9247c26bd llvm::FPPassManager::runOnFunction(llvm::Function&)
/home/chilledheart/sources-llvm/llvm/lib/IR/LegacyPassManager.cpp:1538:23
#16 0x7fc9247c2bf8 llvm::FPPassManager::runOnModule(llvm::Module&)
/home/chilledheart/sources-llvm/llvm/lib/IR/LegacyPassManager.cpp:1558:16
#17 0x7fc9247c3553 (anonymous
namespace)::MPPassManager::runOnModule(llvm::Module&)
/home/chilledheart/sources-llvm/llvm/lib/IR/LegacyPassManager.cpp:1616:23
#18 0x7fc9247c2eae llvm::legacy::PassManagerImpl::run(llvm::Module&)
/home/chilledheart/sources-llvm/llvm/lib/IR/LegacyPassManager.cpp:1723:16
#19 0x7fc9247c3d41 llvm::legacy::PassManager::run(llvm::Module&)
/home/chilledheart/sources-llvm/llvm/lib/IR/LegacyPassManager.cpp:1756:10
#20 0x7fc91b388173 (anonymous
namespace)::EmitAssemblyHelper::EmitAssembly(clang::BackendAction,
llvm::raw_ostream*)
/home/chilledheart/sources-llvm/llvm/tools/clang/lib/CodeGen/BackendUtil.cpp:640:5
#21 0x7fc91b3878d2 clang::EmitBackendOutput(clang::DiagnosticsEngine&,
clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions
const&, llvm::StringRef, llvm::Module*, clang::BackendAction,
llvm::raw_ostream*)
/home/chilledheart/sources-llvm/llvm/tools/clang/lib/CodeGen/BackendUtil.cpp:652:3
#22 0x7fc91b618706
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&)
/home/chilledheart/sources-llvm/llvm/tools/clang/lib/CodeGen/CodeGenAction.cpp:178:7
#23 0x7fc91d148e96 clang::ParseAST(clang::Sema&, bool, bool)
/home/chilledheart/sources-llvm/llvm/tools/clang/lib/Parse/ParseAST.cpp:151:3
#24 0x7fc9213b19ba clang::ASTFrontendAction::ExecuteAction()
/home/chilledheart/sources-llvm/llvm/tools/clang/lib/Frontend/FrontendAction.cpp:537:1
#25 0x7fc91b616e51 clang::CodeGenAction::ExecuteAction()
/home/chilledheart/sources-llvm/llvm/tools/clang/lib/CodeGen/CodeGenAction.cpp:726:1
#26 0x7fc9213b0cc0 clang::FrontendAction::Execute()
/home/chilledheart/sources-llvm/llvm/tools/clang/lib/Frontend/FrontendAction.cpp:441:7
#27 0x7fc9213450db
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
/home/chilledheart/sources-llvm/llvm/tools/clang/lib/Frontend/CompilerInstance.cpp:803:7
#28 0x7fc920fd2368 clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
/home/chilledheart/sources-llvm/llvm/tools/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:222:18
#29 0x41899b cc1_main(llvm::ArrayRef<char const*>, char const*, void*)
/home/chilledheart/sources-llvm/llvm/tools/clang/tools/driver/cc1_main.cpp:110:13
#30 0x40ccf3 ExecuteCC1Tool(llvm::ArrayRef<char const*>, llvm::StringRef)
/home/chilledheart/sources-llvm/llvm/tools/clang/tools/driver/driver.cpp:369:12
#31 0x40b4bc main
/home/chilledheart/sources-llvm/llvm/tools/clang/tools/driver/driver.cpp:415:12
#32 0x7fc92038dfe0 __libc_start_main
/usr/src/debug/glibc-2.20/csu/libc-start.c:323:0
#33 0x40ae84 _start (/home/chilledheart/build-debug/bin/clang-3.7+0x40ae84)
Stack dump:
0.    Program arguments: /home/chilledheart/build-debug/bin/clang-3.7 -cc1
-triple x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name
MacOSKeychainAPIChecker.cpp -mrelocation-model pic -pic-level 2 -mthread-model
posix -mdisable-fp-elim -relaxed-aliasing -fmath-errno -masm-verbose
-mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu core-avx2
-momit-leaf-frame-pointer -g -dwarf-column-info -ffunction-sections
-fdata-sections -D CLANG_ENABLE_ARCMT -D CLANG_ENABLE_OBJC_REWRITER -D
CLANG_ENABLE_STATIC_ANALYZER -D GTEST_HAS_RTTI=0 -D _DEBUG -D _GNU_SOURCE -D
__STDC_CONSTANT_MACROS -D __STDC_FORMAT_MACROS -D __STDC_LIMIT_MACROS -O2 -Wall
-W -Wno-unused-parameter -Wwrite-strings -Wcast-qual
-Wmissing-field-initializers -Wno-long-long -Wcovered-switch-default
-Wnon-virtual-dtor -Woverloaded-virtual -Wno-nested-anon-types -pedantic
-std=c++11 -fdeprecated-macro -ferror-limit 19 -fmessage-length 0
-fvisibility-inlines-hidden -mstackrealign -fno-rtti -fobjc-runtime=gcc
-fno-common -fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops
-vectorize-slp -x c++ MacOSKeychainAPIChecker-41c425.cpp 
1.    <eof> parser at end of file
2.    Code generation
3.    Running pass 'Function Pass Manager' on module
'MacOSKeychainAPIChecker-41c425.cpp'.
4.    Running pass 'X86 Assembly / Object Emitter' on function
'@_ZN5clang4ento5check11DeadSymbols17_checkDeadSymbolsIN12_GLOBAL__N_123MacOSKeychainAPICheckerEEEvPvRNS0_12SymbolReaperERNS0_14CheckerContextE'
MacOSKeychainAPIChecker-41c425.sh: line 1: 15356 Aborted                 (core
dumped) "/home/chilledheart/build-debug/bin/clang-3.7" "-cc1" "-triple"
"x86_64-unknown-linux-gnu" "-emit-obj" "-disable-free" "-main-file-name"
"MacOSKeychainAPIChecker.cpp" "-mrelocation-model" "pic" "-pic-level" "2"
"-mthread-model" "posix" "-mdisable-fp-elim" "-relaxed-aliasing" "-fmath-errno"
"-masm-verbose" "-mconstructor-aliases" "-munwind-tables" "-fuse-init-array"
"-target-cpu" "core-avx2" "-momit-leaf-frame-pointer" "-g" "-dwarf-column-info"
"-ffunction-sections" "-fdata-sections" "-D" "CLANG_ENABLE_ARCMT" "-D"
"CLANG_ENABLE_OBJC_REWRITER" "-D" "CLANG_ENABLE_STATIC_ANALYZER" "-D"
"GTEST_HAS_RTTI=0" "-D" "_DEBUG" "-D" "_GNU_SOURCE" "-D"
"__STDC_CONSTANT_MACROS" "-D" "__STDC_FORMAT_MACROS" "-D" "__STDC_LIMIT_MACROS"
"-O2" "-Wall" "-W" "-Wno-unused-parameter" "-Wwrite-strings" "-Wcast-qual"
"-Wmissing-field-initializers" "-Wno-long-long" "-Wcovered-switch-default"
"-Wnon-virtual-dtor" "-Woverloaded-virtual" "-Wno-nested-anon-types"
"-pedantic" "-std=c++11" "-fdeprecated-macro" "-ferror-limit" "19"
"-fmessage-length" "0" "-fvisibility-inlines-hidden" "-mstackrealign"
"-fno-rtti" "-fobjc-runtime=gcc" "-fno-common" "-fdiagnostics-show-option"
"-fcolor-diagnostics" "-vectorize-loops" "-vectorize-slp" "-x" "c++"
"MacOSKeychainAPIChecker-41c425.cpp"

-- 
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/20150207/a975a810/attachment.html>


More information about the llvm-bugs mailing list