[llvm-bugs] [Bug 32369] New: Segfault in 'Reassociate expressions' pass
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Mar 22 00:54:09 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=32369
Bug ID: 32369
Summary: Segfault in 'Reassociate expressions' pass
Product: new-bugs
Version: trunk
Hardware: Other
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: octoploid at yandex.com
CC: llvm-bugs at lists.llvm.org
On ppc64le I get:
#0 0x000000001124bf18 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/home/trippels/llvm_build/bin/clang-5.0+0x1124bf18)
#1 0x000000001124c040 PrintStackTraceSignalHandler(void*)
(/home/trippels/llvm_build/bin/clang-5.0+0x1124c040)
#2 0x000000001124969c llvm::sys::RunSignalHandlers()
(/home/trippels/llvm_build/bin/clang-5.0+0x1124969c)
#3 0x0000000011249b80 SignalHandler(int)
(/home/trippels/llvm_build/bin/clang-5.0+0x11249b80)
#4 0x00003fffb7a20478 0x478 llvm::ReassociatePass::run(llvm::Function&,
llvm::AnalysisManager<llvm::Function>&)
#5 0x00003fffb7a20478
#6 0x00003fffb7a20478 (anonymous
namespace)::ReassociateLegacyPass::runOnFunction(llvm::Function&) (+0x478)
#7 0x00003fffc59db730
#8 0x0000000011133108 llvm::FPPassManager::runOnFunction(llvm::Function&)
(/home/trippels/llvm_build/bin/clang-5.0+0x11133108)
#9 0x0000000011133c9c (anonymous
namespace)::CGPassManager::runOnModule(llvm::Module&)
(/home/trippels/llvm_build/bin/clang-5.0+0x11133c9c)
#10 0x0000000010d38488 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/home/trippels/llvm_build/bin/clang-5.0+0x10d38488)
#11 0x0000000011e565b4 llvm::legacy::PassManager::run(llvm::Module&)
(/home/trippels/llvm_build/bin/clang-5.0+0x11e565b4)
#12 0x0000000010d37890 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/trippels/llvm_build/bin/clang-5.0+0x10d37890)
#13 0x0000000010d37b7c
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&)
(/home/trippels/llvm_build/bin/clang-5.0+0x10d37b7c)
#14 0x000000001145d0e0 clang::ParseAST(clang::Sema&, bool, bool)
(/home/trippels/llvm_build/bin/clang-5.0+0x1145d0e0)
#15 0x0000000011c31dfc clang::ASTFrontendAction::ExecuteAction()
(/home/trippels/llvm_build/bin/clang-5.0+0x11c31dfc)
#16 0x000000001214f728 clang::CodeGenAction::ExecuteAction()
(/home/trippels/llvm_build/bin/clang-5.0+0x1214f728)
#17 0x00000000118936a0 clang::FrontendAction::Execute()
(/home/trippels/llvm_build/bin/clang-5.0+0x118936a0)
#18 0x0000000011c2ea10
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/home/trippels/llvm_build/bin/clang-5.0+0x11c2ea10)
#19 0x00000000118945d8
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/home/trippels/llvm_build/bin/clang-5.0+0x118945d8)
#20 0x000000001185e620 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/home/trippels/llvm_build/bin/clang-5.0+0x1185e620)
#21 0x000000001193bd48 main
(/home/trippels/llvm_build/bin/clang-5.0+0x1193bd48)
#22 0x00000000105366d8 generic_start_main.isra.0
(/home/trippels/llvm_build/bin/clang-5.0+0x105366d8)
#23 0x00000000104f75b4 __libc_start_main
(/home/trippels/llvm_build/bin/clang-5.0+0x104f75b4)
/home/trippels/llvm_build/bin/clang-5.0(_ZN4llvm3sys15PrintStackTraceERNS_11raw_ostreamE+0x38)[0x1124bf18]
/home/trippels/llvm_build/bin/clang-5.0[0x1124c040]
/home/trippels/llvm_build/bin/clang-5.0(_ZN4llvm3sys17RunSignalHandlersEv+0xcc)[0x1124969c]
/home/trippels/llvm_build/bin/clang-5.0[0x11249b80]
[0x3fffb7a20478]
[0x3fffc59db730]
/home/trippels/llvm_build/bin/clang-5.0(_ZN4llvm15ReassociatePass3runERNS_8FunctionERNS_15AnalysisManagerIS1_JEEE+0xda8)[0x11133108]
/home/trippels/llvm_build/bin/clang-5.0[0x11133c9c]
/home/trippels/llvm_build/bin/clang-5.0(_ZN4llvm13FPPassManager13runOnFunctionERNS_8FunctionE+0x388)[0x10d38488]
/home/trippels/llvm_build/bin/clang-5.0[0x11e565b4]
/home/trippels/llvm_build/bin/clang-5.0(_ZN4llvm6legacy15PassManagerImpl3runERNS_6ModuleE+0x410)[0x10d37890]
/home/trippels/llvm_build/bin/clang-5.0(_ZN4llvm6legacy11PassManager3runERNS_6ModuleE+0x1c)[0x10d37b7c]
/home/trippels/llvm_build/bin/clang-5.0(_ZN5clang17EmitBackendOutputERNS_17DiagnosticsEngineERKNS_19HeaderSearchOptionsERKNS_14CodeGenOptionsERKNS_13TargetOptionsERKNS_11LangOptionsERKN4llvm10DataLayoutEPNSE_6ModuleENS_13BackendActionESt10unique_ptrINSE_17raw_pwrite_streamESt14default_deleteISM_EE+0xa60)[0x1145d0e0]
/home/trippels/llvm_build/bin/clang-5.0[0x11c31dfc]
/home/trippels/llvm_build/bin/clang-5.0(_ZN5clang8ParseASTERNS_4SemaEbb+0x4f8)[0x1214f728]
/home/trippels/llvm_build/bin/clang-5.0(_ZN5clang17ASTFrontendAction13ExecuteActionEv+0x70)[0x118936a0]
/home/trippels/llvm_build/bin/clang-5.0(_ZN5clang13CodeGenAction13ExecuteActionEv+0x110)[0x11c2ea10]
/home/trippels/llvm_build/bin/clang-5.0(_ZN5clang14FrontendAction7ExecuteEv+0xf8)[0x118945d8]
/home/trippels/llvm_build/bin/clang-5.0(_ZN5clang16CompilerInstance13ExecuteActionERNS_14FrontendActionE+0x1c0)[0x1185e620]
/home/trippels/llvm_build/bin/clang-5.0(_ZN5clang25ExecuteCompilerInvocationEPNS_16CompilerInstanceE+0xe68)[0x1193bd48]
/home/trippels/llvm_build/bin/clang-5.0(_Z8cc1_mainN4llvm8ArrayRefIPKcEES2_Pv+0xa38)[0x105366d8]
/home/trippels/llvm_build/bin/clang-5.0(main+0x2124)[0x104f75b4]
/lib64/libc.so.6(+0x24700)[0x3fffb73d4700]
/lib64/libc.so.6(__libc_start_main+0xc4)[0x3fffb73d48f4]
Stack dump:
0. Program arguments: /home/trippels/llvm_build/bin/clang-5.0 -cc1 -triple
powerpc64le-unknown-linux-gnu -emit-obj -disable-free -main-file-name
sanitizer_printf.cc -mrelocation-model pic -pic-level 2 -mthread-model posix
-fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables
-fuse-init-array -target-cpu ppc64le -mfloat-abi hard -target-abi elfv2
-momit-leaf-frame-pointer -dwarf-column-info -debug-info-kind=line-tables-only
-dwarf-version=4 -debugger-tuning=gdb -coverage-notes-file
/home/trippels/llvm_build/tools/clang/runtime/compiler-rt-bins/lib/sanitizer_common/CMakeFiles/RTSanitizerCommonNoTermination.powerpc64le.dir/sanitizer_printf.cc.gcno
-sys-header-deps -D HAVE_RPC_XDR_H=1 -D HAVE_TIRPC_RPC_XDR_H=0 -D NDEBUG
-c-isystem /home/trippels/include -cxx-isystem /home/trippels/include -O3 -Wall
-Wno-unused-parameter -Wall -Wno-unused-parameter -Wno-gnu -Wno-variadic-macros
-Wno-c99-extensions -Wno-non-virtual-dtor -Wglobal-constructors -std=c++11
-fdeprecated-macro -ferror-limit 19 -fmessage-length 0 -fvisibility hidden
-fvisibility-inlines-hidden -fno-builtin -fno-rtti -fno-signed-char
-fobjc-runtime=gcc -fdiagnostics-show-option -vectorize-loops -vectorize-slp -x
c++ sanitizer_printf-313c6e.cpp
1. <eof> parser at end of file
2. Per-module optimization passes
3. Running pass 'CallGraph Pass Manager' on module
'sanitizer_printf-313c6e.cpp'.
4. Running pass 'Reassociate expressions' on function
'@_ZN11__sanitizerL12AppendNumberEPPcPKcyhhbbb'
sanitizer_printf-313c6e.sh: line 4: 44582 Segmentation fault
"/home/trippels/llvm_build/bin/clang-5.0" "-cc1" "-triple"
"powerpc64le-unknown-linux-gnu" "-emit-obj" "-disable-free" "-main-file-name"
"sanitizer_printf.cc" "-mrelocation-model" "pic" "-pic-level" "2"
"-mthread-model" "posix" "-fmath-errno" "-masm-verbose" "-mconstructor-aliases"
"-munwind-tables" "-fuse-init-array" "-target-cpu" "ppc64le" "-mfloat-abi"
"hard" "-target-abi" "elfv2" "-momit-leaf-frame-pointer" "-dwarf-column-info"
"-debug-info-kind=line-tables-only" "-dwarf-version=4" "-debugger-tuning=gdb"
"-coverage-notes-file"
"/home/trippels/llvm_build/tools/clang/runtime/compiler-rt-bins/lib/sanitizer_common/CMakeFiles/RTSanitizerCommonNoTermination.powerpc64le.dir/sanitizer_printf.cc.gcno"
"-sys-header-deps" "-D" "HAVE_RPC_XDR_H=1" "-D" "HAVE_TIRPC_RPC_XDR_H=0" "-D"
"NDEBUG" "-c-isystem" "/home/trippels/include" "-cxx-isystem"
"/home/trippels/include" "-O3" "-Wall" "-Wno-unused-parameter" "-Wall"
"-Wno-unused-parameter" "-Wno-gnu" "-Wno-variadic-macros" "-Wno-c99-extensions"
"-Wno-non-virtual-dtor" "-Wglobal-constructors" "-std=c++11"
"-fdeprecated-macro" "-ferror-limit" "19" "-fmessage-length" "0" "-fvisibility"
"hidden" "-fvisibility-inlines-hidden" "-fno-builtin" "-fno-rtti"
"-fno-signed-char" "-fobjc-runtime=gcc" "-fdiagnostics-show-option"
"-vectorize-loops" "-vectorize-slp" "-x" "c++" "sanitizer_printf-313c6e.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/20170322/94210eb9/attachment-0001.html>
More information about the llvm-bugs
mailing list