[llvm-bugs] [Bug 35980] New: Compiler aborts in O1 in ffmpeg build
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Jan 16 20:20:29 PST 2018
https://bugs.llvm.org/show_bug.cgi?id=35980
Bug ID: 35980
Summary: Compiler aborts in O1 in ffmpeg build
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: LLVM Codegen
Assignee: unassignedclangbugs at nondot.org
Reporter: santosh.zanjurne at amd.com
CC: llvm-bugs at lists.llvm.org
The issue is seen with flag O1 and above. I shall try to find svn revision
that caused the problem and also come up with a reproducible test.
amd at gukvm36p20:~/santosh/tmp/ffmpeg-3.3.3$ export FLAGS="-m64 -O1 -fuse-ld=lld
-std=c11 "; /home/amd/santosh/llvm/trunk/install/bin//clang $FLAGS -I. -I./
-D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DHAVE_AV_CONFIG_H -c -o
libavcodec/a64multienc.o libavcodec/a64multienc.c
clang-7.0: warning: argument unused during compilation: '-fuse-ld=lld'
[-Wunused-command-line-argument]
clang-7.0:
/home/amd/santosh/llvm/trunk/llvm/lib/CodeGen/CodeGenPrepare.cpp:1945: void
{anonymous}::ExtAddrMode::SetCombinedField({anonymous}::ExtAddrMode::FieldName,
llvm::Value*, const llvm::SmallVectorImpl<{anonymous}::ExtAddrMode>&):
Assertion `BaseReg == nullptr' failed.
#0 0x00002afe8d25a93a llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/home/amd/santosh/llvm/trunk/install/bin/../lib/libLLVM-7.0svn.so+0x69d93a)
#1 0x00002afe8d2586fe llvm::sys::RunSignalHandlers()
(/home/amd/santosh/llvm/trunk/install/bin/../lib/libLLVM-7.0svn.so+0x69b6fe)
#2 0x00002afe8d258864 SignalHandler(int)
(/home/amd/santosh/llvm/trunk/install/bin/../lib/libLLVM-7.0svn.so+0x69b864)
#3 0x00002afe904e47f0 (/lib/x86_64-linux-gnu/libc.so.6+0x357f0)
#4 0x00002afe904e477f gsignal
/build/glibc-mXZSwJ/glibc-2.24/signal/../sysdeps/unix/sysv/linux/raise.c:58:0
#5 0x00002afe904e637a abort /build/glibc-mXZSwJ/glibc-2.24/stdlib/abort.c:91:0
#6 0x00002afe904dcb47 __assert_fail_base
/build/glibc-mXZSwJ/glibc-2.24/assert/assert.c:92:0
#7 0x00002afe904dcbf2 (/lib/x86_64-linux-gnu/libc.so.6+0x2dbf2)
#8 0x00002afe8d42eeaa (anonymous
namespace)::CodeGenPrepare::optimizeMemoryInst(llvm::Instruction*,
llvm::Value*, llvm::Type*, unsigned int)
(/home/amd/santosh/llvm/trunk/install/bin/../lib/libLLVM-7.0svn.so+0x871eaa)
#9 0x00002afe8d42fa91 (anonymous
namespace)::CodeGenPrepare::optimizeInst(llvm::Instruction*, bool&)
(/home/amd/santosh/llvm/trunk/install/bin/../lib/libLLVM-7.0svn.so+0x872a91)
#10 0x00002afe8d43211e (anonymous
namespace)::CodeGenPrepare::runOnFunction(llvm::Function&) [clone .part.1154]
(/home/amd/santosh/llvm/trunk/install/bin/../lib/libLLVM-7.0svn.so+0x87511e)
#11 0x00002afe8d3620c3 llvm::FPPassManager::runOnFunction(llvm::Function&)
(/home/amd/santosh/llvm/trunk/install/bin/../lib/libLLVM-7.0svn.so+0x7a50c3)
#12 0x00002afe8d362194 llvm::FPPassManager::runOnModule(llvm::Module&)
(/home/amd/santosh/llvm/trunk/install/bin/../lib/libLLVM-7.0svn.so+0x7a5194)
#13 0x00002afe8d362e11 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/home/amd/santosh/llvm/trunk/install/bin/../lib/libLLVM-7.0svn.so+0x7a5e11)
#14 0x000055dcd78f8c1e 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/amd/santosh/llvm/trunk/install/bin/clang-7.0+0x5abc1e)
#15 0x000055dcd7d9dec9
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&)
(/home/amd/santosh/llvm/trunk/install/bin/clang-7.0+0xa50ec9)
#16 0x000055dcd7f49f08 clang::ParseAST(clang::Sema&, bool, bool)
(/home/amd/santosh/llvm/trunk/install/bin/clang-7.0+0xbfcf08)
#17 0x000055dcd7d9d0ef clang::CodeGenAction::ExecuteAction()
(/home/amd/santosh/llvm/trunk/install/bin/clang-7.0+0xa500ef)
#18 0x000055dcd7cf89c6 clang::FrontendAction::Execute()
(/home/amd/santosh/llvm/trunk/install/bin/clang-7.0+0x9ab9c6)
#19 0x000055dcd7cc38d6
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/home/amd/santosh/llvm/trunk/install/bin/clang-7.0+0x9768d6)
#20 0x000055dcd7d943f2
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/home/amd/santosh/llvm/trunk/install/bin/clang-7.0+0xa473f2)
#21 0x000055dcd78a01c8 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/home/amd/santosh/llvm/trunk/install/bin/clang-7.0+0x5531c8)
#22 0x000055dcd789a75c main
(/home/amd/santosh/llvm/trunk/install/bin/clang-7.0+0x54d75c)
#23 0x00002afe904cf3f1 __libc_start_main
/build/glibc-mXZSwJ/glibc-2.24/csu/../csu/libc-start.c:325:0
#24 0x000055dcd789c29a _start
(/home/amd/santosh/llvm/trunk/install/bin/clang-7.0+0x54f29a)
Stack dump:
0. Program arguments: /home/amd/santosh/llvm/trunk/install/bin/clang-7.0
-cc1 -triple x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name
a64multienc.c -mrelocation-model static -mthread-model posix -fmath-errno
-masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array
-target-cpu x86-64 -dwarf-column-info -debugger-tuning=gdb
-momit-leaf-frame-pointer -coverage-notes-file
/home/amd/santosh/tmp/ffmpeg-3.3.3/libavcodec/a64multienc.gcno -resource-dir
/home/amd/santosh/llvm/trunk/install/lib/clang/7.0.0 -I . -I ./ -D
_ISOC99_SOURCE -D _FILE_OFFSET_BITS=64 -D _LARGEFILE_SOURCE -D
_POSIX_C_SOURCE=200112 -D _XOPEN_SOURCE=600 -D HAVE_AV_CONFIG_H
-internal-isystem /usr/local/include -internal-isystem
/home/amd/santosh/llvm/trunk/install/lib/clang/7.0.0/include
-internal-externc-isystem /usr/include/x86_64-linux-gnu
-internal-externc-isystem /include -internal-externc-isystem /usr/include -O1
-std=c11 -fdebug-compilation-dir /home/amd/santosh/tmp/ffmpeg-3.3.3
-ferror-limit 19 -fmessage-length 237 -fobjc-runtime=gcc
-fdiagnostics-show-option -o libavcodec/a64multienc.o -x c
libavcodec/a64multienc.c
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module
'libavcodec/a64multienc.c'.
4. Running pass 'CodeGen Prepare' on function '@render_charset'
clang-7.0: error: unable to execute command: Aborted (core dumped)
clang-7.0: error: clang frontend command failed due to signal (use -v to see
invocation)
AMD.LLVM.S.2017_08_23 clang version 7.0.0 (CLANG: 322613) (based on LLVM
AMD.LLVM.6.0.0.S.2017_08_23)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/amd/santosh/llvm/trunk/install/bin
clang-7.0: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang-7.0: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-7.0: note: diagnostic msg: /tmp/a64multienc-7119f5.c
clang-7.0: note: diagnostic msg: /tmp/a64multienc-7119f5.sh
clang-7.0: 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/20180117/dc329136/attachment.html>
More information about the llvm-bugs
mailing list