[llvm-bugs] [Bug 39093] New: Crash in RAGreedy::growRegion((anonymous namespace)::RAGreedy::GlobalSplitCandidate&)

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Sep 26 16:52:38 PDT 2018


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

            Bug ID: 39093
           Summary: Crash in RAGreedy::growRegion((anonymous
                    namespace)::RAGreedy::GlobalSplitCandidate&)
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: bsalomon at google.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 20927
  --> https://bugs.llvm.org/attachment.cgi?id=20927&action=edit
crash dump asked to attach this file

ccache clang -MMD -MF obj/third_party/externals/expat/lib/expat.xmltok.o.d
-DHAVE_MEMMOVE -D_GLIBCXX_DEBUG -DXML_STATIC  -w -fstrict-aliasing -fPIC -g
-Wno-unused-parameter -Wno-error -O3 -fdata-sections -ffunction-sections
-isystem /home/bsalomon/src/skia/third_party/externals/expat/lib  -c
../../third_party/externals/expat/lib/xmltok.c -o
obj/third_party/externals/expat/lib/expat.xmltok.o
Stack dump:
0.      Program arguments: /home/bsalomon/src/llvm/out/bin/clang-8 -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -disable-free -disable-llvm-verifier
-discard-value-names -main-file-name xmltok.c -mrelocation-model pic -pic-level
2 -mthread-model posix -fmath-errno -masm-verbose -mconstructor-aliases
-munwind-tables -fuse-init-array -target-cpu x86-64 -dwarf-column-info
-debug-info-kind=limited -dwarf-version=4 -debugger-tuning=gdb
-momit-leaf-frame-pointer -ffunction-sections -fdata-sections
-coverage-notes-file
/home/bsalomon/src/skia/out/Debug/obj/third_party/externals/expat/lib/expat.xmltok.gcno
-resource-dir /home/bsalomon/src/llvm/out/lib/clang/8.0.0 -isystem
/home/bsalomon/src/skia/third_party/externals/expat/lib -D HAVE_MEMMOVE -D
_GLIBCXX_DEBUG -D XML_STATIC -internal-isystem /usr/local/include
-internal-isystem /home/bsalomon/src/llvm/out/lib/clang/8.0.0/include
-internal-externc-isystem /usr/include/x86_64-linux-gnu
-internal-externc-isystem /include -internal-externc-isystem /usr/include -O3
-Wno-unused-parameter -Wno-error -w -fdebug-compilation-dir
/home/bsalomon/src/skia/out/Debug -ferror-limit 19 -fmessage-length 0
-fobjc-runtime=gcc -fdiagnostics-show-option -vectorize-loops -vectorize-slp -o
obj/third_party/externals/expat/lib/expat.xmltok.o -x c
../../third_party/externals/expat/lib/xmltok.c -faddrsig 
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module
'../../third_party/externals/expat/lib/xmltok.c'.
4.      Running pass 'Greedy Register Allocator' on function
'@normal_contentTok'
#0 0x0000000001ce5ab4 PrintStackTraceSignalHandler(void*)
(/home/bsalomon/src/llvm/out/bin/clang-8+0x1ce5ab4)
#1 0x0000000001ce3abe llvm::sys::RunSignalHandlers()
(/home/bsalomon/src/llvm/out/bin/clang-8+0x1ce3abe)
#2 0x0000000001ce5c72 SignalHandler(int)
(/home/bsalomon/src/llvm/out/bin/clang-8+0x1ce5c72)
#3 0x00007f641ae08890 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x12890)
#4 0x000000000175f14a (anonymous namespace)::RAGreedy::growRegion((anonymous
namespace)::RAGreedy::GlobalSplitCandidate&)
(/home/bsalomon/src/llvm/out/bin/clang-8+0x175f14a)
#5 0x000000000175c760 (anonymous
namespace)::RAGreedy::calculateRegionSplitCost(llvm::LiveInterval&,
llvm::AllocationOrder&, llvm::BlockFrequency&, unsigned int&, bool, bool*)
(/home/bsalomon/src/llvm/out/bin/clang-8+0x175c760)
#6 0x0000000001757852 (anonymous
namespace)::RAGreedy::selectOrSplitImpl(llvm::LiveInterval&,
llvm::SmallVectorImpl<unsigned int>&, llvm::SmallSet<unsigned int, 16u,
std::less<unsigned int> >&, unsigned int)
(/home/bsalomon/src/llvm/out/bin/clang-8+0x1757852)
#7 0x0000000001752385 (anonymous
namespace)::RAGreedy::selectOrSplit(llvm::LiveInterval&,
llvm::SmallVectorImpl<unsigned int>&)
(/home/bsalomon/src/llvm/out/bin/clang-8+0x1752385)
#8 0x0000000001789d55 llvm::RegAllocBase::allocatePhysRegs()
(/home/bsalomon/src/llvm/out/bin/clang-8+0x1789d55)
#9 0x0000000001751a95 (anonymous
namespace)::RAGreedy::runOnMachineFunction(llvm::MachineFunction&)
(/home/bsalomon/src/llvm/out/bin/clang-8+0x1751a95)
#10 0x00000000015a8d93
llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
(/home/bsalomon/src/llvm/out/bin/clang-8+0x15a8d93)
#11 0x000000000185cf65 llvm::FPPassManager::runOnFunction(llvm::Function&)
(/home/bsalomon/src/llvm/out/bin/clang-8+0x185cf65)
#12 0x000000000185d1c3 llvm::FPPassManager::runOnModule(llvm::Module&)
(/home/bsalomon/src/llvm/out/bin/clang-8+0x185d1c3)
#13 0x000000000185d73f llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/home/bsalomon/src/llvm/out/bin/clang-8+0x185d73f)
#14 0x0000000001e68d97 clang::EmitBackendOutput(clang::DiagnosticsEngine&,
clang::HeaderSearchOptions const&, clang::CodeGenOptions const&,
clang::TargetOptions const&, clang::LangOptions const&, llvm::DataLayout
const&, llvm::Module*, clang::BackendAction,
std::unique_ptr<llvm::raw_pwrite_stream,
std::default_delete<llvm::raw_pwrite_stream> >)
(/home/bsalomon/src/llvm/out/bin/clang-8+0x1e68d97)
#15 0x00000000025a1c61
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&)
(/home/bsalomon/src/llvm/out/bin/clang-8+0x25a1c61)
#16 0x0000000002cc2893 clang::ParseAST(clang::Sema&, bool, bool)
(/home/bsalomon/src/llvm/out/bin/clang-8+0x2cc2893)
#17 0x00000000022a5d87 clang::FrontendAction::Execute()
(/home/bsalomon/src/llvm/out/bin/clang-8+0x22a5d87)
#18 0x0000000002252118
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/home/bsalomon/src/llvm/out/bin/clang-8+0x2252118)
#19 0x000000000233bc91
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/home/bsalomon/src/llvm/out/bin/clang-8+0x233bc91)
#20 0x00000000008e1c50 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/home/bsalomon/src/llvm/out/bin/clang-8+0x8e1c50)
#21 0x00000000008e0083 main (/home/bsalomon/src/llvm/out/bin/clang-8+0x8e0083)
#22 0x00007f641988fb97 __libc_start_main
/build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c:344:0
#23 0x00000000008dd4ea _start
(/home/bsalomon/src/llvm/out/bin/clang-8+0x8dd4ea)
clang-8: error: unable to execute command: Segmentation fault (core dumped)
clang-8: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 8.0.0 (trunk 343150)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/bsalomon/src/llvm/out/bin
clang-8: note: diagnostic msg: PLEASE submit a bug report to
https://bugs.llvm.org/ and include the crash backtrace, preprocessed source,
and associated run script.
clang-8: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-8: note: diagnostic msg: /tmp/xmltok-f9b367.c
clang-8: note: diagnostic msg: /tmp/xmltok-f9b367.sh
clang-8: note: diagnostic msg:

-- 
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/20180926/fe1681b6/attachment-0001.html>


More information about the llvm-bugs mailing list