[llvm-bugs] [Bug 46086] New: LiveDebugValues crashes on valid code on (anonymous namespace)::LiveDebugValues::accumulateFragmentMap(

via llvm-bugs llvm-bugs at lists.llvm.org
Tue May 26 18:11:13 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=46086

            Bug ID: 46086
           Summary: LiveDebugValues crashes on valid code on (anonymous
                    namespace)::LiveDebugValues::accumulateFragmentMap(
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: DebugInfo
          Assignee: unassignedbugs at nondot.org
          Reporter: ditaliano at apple.com
                CC: jdevlieghere at apple.com, keith.walker at arm.com,
                    llvm-bugs at lists.llvm.org,
                    paul_robinson at playstation.sony.com

Created attachment 23537
  --> https://bugs.llvm.org/attachment.cgi?id=23537&action=edit
MIR before LiveDebugValues

$ ./llc -run-pass=livedebugvalues foo.mir

PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash
backtrace.
Stack dump:
0.      Program arguments: ./llc -run-pass=livedebugvalues foo.mir 
1.      Running pass 'Function Pass Manager' on module 'foo.mir'.
2.      Running pass 'Live DEBUG_VALUE analysis' on function '@_Z3barii'
0  llc                      0x000000010e83a23a
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 58
1  llc                      0x000000010e83a779
PrintStackTraceSignalHandler(void*) + 25
2  llc                      0x000000010e83869b llvm::sys::RunSignalHandlers() +
123
3  llc                      0x000000010e83c4e9 SignalHandler(int) + 249
4  libsystem_platform.dylib 0x00007fff7223355d _sigtramp + 29
5  llc                      0x000000010d1c1475
llvm::SmallPtrSet<llvm::MachineBasicBlock const*, 8u>::~SmallPtrSet() + 21
6  llc                      0x000000010da82aaf
llvm::DILocation::getRawInlinedAt() const + 31
7  llc                      0x000000010da8f765 llvm::DILocation::getInlinedAt()
const + 21
8  llc                      0x000000010cfe5934 (anonymous
namespace)::LiveDebugValues::accumulateFragmentMap(llvm::MachineInstr&,
llvm::DenseMap<llvm::DILocalVariable const*,
llvm::SmallSet<llvm::DIExpression::FragmentInfo, 4u,
std::__1::less<llvm::DIExpression::FragmentInfo> >,
llvm::DenseMapInfo<llvm::DILocalVariable const*>,
llvm::detail::DenseMapPair<llvm::DILocalVariable const*,
llvm::SmallSet<llvm::DIExpression::FragmentInfo, 4u,
std::__1::less<llvm::DIExpression::FragmentInfo> > > >&,
llvm::DenseMap<std::__1::pair<llvm::DILocalVariable const*,
llvm::DIExpression::FragmentInfo>,
llvm::SmallVector<llvm::DIExpression::FragmentInfo, 1u>,
llvm::DenseMapInfo<std::__1::pair<llvm::DILocalVariable const*,
llvm::DIExpression::FragmentInfo> >,
llvm::detail::DenseMapPair<std::__1::pair<llvm::DILocalVariable const*,
llvm::DIExpression::FragmentInfo>,
llvm::SmallVector<llvm::DIExpression::FragmentInfo, 1u> > >&) + 84
9  llc                      0x000000010cfe4655 (anonymous
namespace)::LiveDebugValues::ExtendRanges(llvm::MachineFunction&) + 965
10 llc                      0x000000010cfe2359 (anonymous
namespace)::LiveDebugValues::runOnMachineFunction(llvm::MachineFunction&) + 265
11 llc                      0x000000010d18df6d
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 541
12 llc                      0x000000010d95fe4c
llvm::FPPassManager::runOnFunction(llvm::Function&) + 700
13 llc                      0x000000010d960445
llvm::FPPassManager::runOnModule(llvm::Module&) + 117
14 llc                      0x000000010d960bc4 (anonymous
namespace)::MPPassManager::runOnModule(llvm::Module&) + 772
15 llc                      0x000000010d9606e8
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 296
16 llc                      0x000000010d9611f1
llvm::legacy::PassManager::run(llvm::Module&) + 33
17 llc                      0x000000010a6954ee compileModule(char**,
llvm::LLVMContext&) + 6670
18 llc                      0x000000010a693227 main + 1447
19 libdyld.dylib            0x00007fff72026259 start + 1
zsh: segmentation fault  ./llc -run-pass=livedebugvalues foo.mir

-- 
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/20200527/d3754bc6/attachment-0001.html>


More information about the llvm-bugs mailing list