<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Segmentation fault building FFMPEG with polly/openmp"
href="https://bugs.llvm.org/show_bug.cgi?id=36612">36612</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Segmentation fault building FFMPEG with polly/openmp
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>-New Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>andrei.vukolov@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>clang produces the following:
NVCC libavfilter/vf_scale_cuda.ptx
CC libavfilter/vf_scale_vaapi.o
CC libavfilter/vf_selectivecolor.o
CC libavfilter/vf_separatefields.o
CC libavfilter/vf_setfield.o
CC libavfilter/vf_setparams.o
CC libavfilter/vf_showinfo.o
CC libavfilter/vf_showpalette.o
#0 0x0000000001f98e3a llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/home/twdragon/util/llvm/bin/clang-7.0+0x1f98e3a)
#1 0x0000000001f96f1e llvm::sys::RunSignalHandlers()
(/home/twdragon/util/llvm/bin/clang-7.0+0x1f96f1e)
#2 0x0000000001f9706c SignalHandler(int)
(/home/twdragon/util/llvm/bin/clang-7.0+0x1f9706c)
#3 0x00007f84c8511390 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x11390)
#4 0x00000000017ce390 (anonymous
namespace)::MachineLICMBase::IsLoopInvariantInst(llvm::MachineInstr&) [clone
.constprop.341] (/home/twdragon/util/llvm/bin/clang-7.0+0x17ce390)
#5 0x00000000017d3aec (anonymous
namespace)::MachineLICMBase::HoistOutOfLoop(llvm::DomTreeNodeBase<llvm::MachineBasicBlock>*)
[clone .constprop.335] (/home/twdragon/util/llvm/bin/clang-7.0+0x17d3aec)
#6 0x00000000017d6bfb (anonymous
namespace)::MachineLICMBase::runOnMachineFunction(llvm::MachineFunction&)
(/home/twdragon/util/llvm/bin/clang-7.0+0x17d6bfb)
#7 0x00000000017c30b1 llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
(/home/twdragon/util/llvm/bin/clang-7.0+0x17c30b1)
#8 0x0000000001aa3a9a llvm::FPPassManager::runOnFunction(llvm::Function&)
(/home/twdragon/util/llvm/bin/clang-7.0+0x1aa3a9a)
#9 0x0000000001aa3b43 llvm::FPPassManager::runOnModule(llvm::Module&)
(/home/twdragon/util/llvm/bin/clang-7.0+0x1aa3b43)
#10 0x0000000001aa3654 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/home/twdragon/util/llvm/bin/clang-7.0+0x1aa3654)
#11 0x000000000216daf6 (anonymous
namespace)::EmitAssemblyHelper::EmitAssembly(clang::BackendAction,
std::unique_ptr<llvm::raw_pwrite_stream,
std::default_delete<llvm::raw_pwrite_stream> >)
(/home/twdragon/util/llvm/bin/clang-7.0+0x216daf6)
#12 0x000000000216fbd2 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/twdragon/util/llvm/bin/clang-7.0+0x216fbd2)
#13 0x0000000002979f04
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&)
(/home/twdragon/util/llvm/bin/clang-7.0+0x2979f04)
#14 0x0000000002b14850 clang::ParseAST(clang::Sema&, bool, bool)
(/home/twdragon/util/llvm/bin/clang-7.0+0x2b14850)
#15 0x00000000029794e7 clang::CodeGenAction::ExecuteAction()
(/home/twdragon/util/llvm/bin/clang-7.0+0x29794e7)
#16 0x00000000025256ce clang::FrontendAction::Execute()
(/home/twdragon/util/llvm/bin/clang-7.0+0x25256ce)
#17 0x00000000024f0b36
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/home/twdragon/util/llvm/bin/clang-7.0+0x24f0b36)
#18 0x00000000025b91ac
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/home/twdragon/util/llvm/bin/clang-7.0+0x25b91ac)
#19 0x0000000000a25198 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/home/twdragon/util/llvm/bin/clang-7.0+0xa25198)
#20 0x00000000009897b7 main (/home/twdragon/util/llvm/bin/clang-7.0+0x9897b7)
#21 0x00007f84c7497830 __libc_start_main
/build/glibc-Cl5G7W/glibc-2.23/csu/../csu/libc-start.c:325:0
#22 0x0000000000a226e9 _start (/home/twdragon/util/llvm/bin/clang-7.0+0xa226e9)
Stack dump:
0. Program arguments: /home/twdragon/util/llvm/bin/clang-7.0 -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -disable-free -disable-llvm-verifier
-discard-value-names -main-file-name vf_premultiply.c -mrelocation-model pic
-pic-level 2 -mthread-model posix -fno-signed-zeros -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 -coverage-notes-file
/home/twdragon/src/ffmpeg/build/libavfilter/vf_premultiply.gcno -resource-dir
/home/twdragon/util/llvm/lib/clang/7.0.0 -dependency-file
libavfilter/vf_premultiply.d -MT libavfilter/vf_premultiply.o -I . -I src/ -D
_ISOC99_SOURCE -D _FILE_OFFSET_BITS=64 -D _LARGEFILE_SOURCE -D
_POSIX_C_SOURCE=200112 -D _XOPEN_SOURCE=600 -D PIC -D ZLIB_CONST -D
HAVE_AV_CONFIG_H -D BUILDING_avfilter -I /usr/include/harfbuzz -I
/usr/include/freetype2 -I /usr/include/fribidi -I /usr/include/freetype2 -I
/usr/include/freetype2 -I /usr/include/opus -I /usr/include/opus -I
/usr/include/alsa -D _REENTRANT -I /usr/include/SDL2 -internal-isystem
/usr/local/include -internal-isystem
/home/twdragon/util/llvm/lib/clang/7.0.0/include -internal-externc-isystem
/usr/include/x86_64-linux-gnu -internal-externc-isystem /include
-internal-externc-isystem /usr/include -O3 -Wdeclaration-after-statement -Wall
-Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wwrite-strings
-Wtype-limits -Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast
-Wstrict-prototypes -Wempty-body -Wno-parentheses -Wno-switch
-Wno-format-zero-length -Wno-pointer-sign -Wno-unused-const-variable
-Werror=implicit-function-declaration -Werror=missing-prototypes
-Werror=return-type -std=c11 -fconst-strings -fdebug-compilation-dir
/home/twdragon/src/ffmpeg/build -ferror-limit 19 -fmessage-length 96 -pthread
-mstack-alignment=16 -fobjc-runtime=gcc -fdiagnostics-show-option
-fcolor-diagnostics -vectorize-loops -vectorize-slp -mllvm -polly -mllvm
-polly-parallel -o libavfilter/vf_premultiply.o -x c
src/libavfilter/vf_premultiply.c
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module
'src/libavfilter/vf_premultiply.c'.
4. Running pass 'Early Machine Loop Invariant Code Motion' on function
'@unpremultiply16_polly_subfn'
CC libavfilter/vf_shuffleframes.o
CC libavfilter/vf_shuffleplanes.o
CC libavfilter/vf_signalstats.o
CC libavfilter/vf_signature.o
clang-7.0: error: unable to execute command: Segmentation fault (core dumped)
clang-7.0: error: clang frontend command failed due to signal (use -v to see
invocation)
while executing with polly and openmp enabled in build of ffmpeg with CUDA/NVCC
support.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>