New issue
Advanced search Search tips

Issue 766261 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Sep 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 1
Type: Bug

Blocking:
issue 765852



Sign in to add a comment

ClangToTAndroid dbg fails with clang assert: DwarfRegs.size() == 1

Project Member Reported by h...@chromium.org, Sep 18 2017

Issue description

From https://build.chromium.org/p/chromium.fyi/builders/ClangToTAndroid%20%28dbg%29/builds/2012:

FAILED: obj/third_party/brotli/dec_no_dictionary_data/decode.o 
../../third_party/llvm-build/Release+Asserts/bin/clang -MMD -MF obj/third_party/brotli/dec_no_dictionary_data/decode.o.d -DV8_DEPRECATION_WARNINGS -DNO_TCMALLOC -DSAFE_BROWSING_DB_REMOTE -DCHROMIUM_BUILD -DFIELDTRIAL_TESTING_ENABLED -DCR_CLANG_REVISION=\"313547\" -D_FILE_OFFSET_BITS=64 -DANDROID -DHAVE_SYS_UIO_H -DANDROID_NDK_VERSION_ROLL=r12b_1 -DCOMPONENT_BUILD -D__GNU_SOURCE=1 -D__compiler_offsetof=__builtin_offsetof -Dnan=__builtin_nan -D_DEBUG -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -I../.. -Igen -I../../third_party/brotli/include -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -funwind-tables -fPIC -pipe -fcolor-diagnostics -ffunction-sections -fno-short-enums --target=arm-linux-androideabi -march=armv7-a -mfloat-abi=softfp -mtune=generic-armv7-a -mfpu=neon -mthumb -fomit-frame-pointer -gdwarf-3 -g2 -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Werror -Wall -Wno-unused-variable -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-covered-switch-default -Wno-unneeded-internal-declaration -Wno-inconsistent-missing-override -Wno-undefined-var-template -Wno-nonportable-include-path -Wno-address-of-packed-member -Wno-unused-lambda-capture -Wno-user-defined-warnings -Wno-enum-compare-switch -Wno-tautological-unsigned-zero-compare -O2 -fno-ident -fdata-sections -ffunction-sections -std=gnu11 --sysroot=../../third_party/android_tools/ndk/platforms/android-16/arch-arm -c ../../third_party/brotli/dec/decode.c -o obj/third_party/brotli/dec_no_dictionary_data/decode.o
clang-6.0: /b/c/builder/ClangToTAndroid__dbg_/src/third_party/llvm/lib/CodeGen/AsmPrinter/DwarfExpression.cpp:245: bool llvm::DwarfExpression::addMachineRegExpression(const llvm::TargetRegisterInfo&, llvm::DIExpressionCursor&, unsigned int, unsigned int): Assertion `DwarfRegs.size() == 1' failed.
#0 0x00000000020d995a llvm::sys::PrintStackTrace(llvm::raw_ostream&) (/b/c/builder/ClangToTAndroid__dbg_/src/third_party/llvm-build/Release+Asserts/bin/clang-6.0+0x20d995a)
#1 0x00000000020d7a3e llvm::sys::RunSignalHandlers() (/b/c/builder/ClangToTAndroid__dbg_/src/third_party/llvm-build/Release+Asserts/bin/clang-6.0+0x20d7a3e)
#2 0x00000000020d7ba2 (/b/c/builder/ClangToTAndroid__dbg_/src/third_party/llvm-build/Release+Asserts/bin/clang-6.0+0x20d7ba2)
#3 0x00007fc314d47330 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x10330)
#4 0x00007fc313937c37 gsignal /build/eglibc-SvCtMH/eglibc-2.19/signal/../nptl/sysdeps/unix/sysv/linux/raise.c:56:0
#5 0x00007fc31393b028 abort /build/eglibc-SvCtMH/eglibc-2.19/stdlib/abort.c:91:0
#6 0x00007fc313930bf6 __assert_fail_base /build/eglibc-SvCtMH/eglibc-2.19/assert/assert.c:92:0
#7 0x00007fc313930ca2 (/lib/x86_64-linux-gnu/libc.so.6+0x2fca2)
#8 0x00000000026e5174 (/b/c/builder/ClangToTAndroid__dbg_/src/third_party/llvm-build/Release+Asserts/bin/clang-6.0+0x26e5174)
#9 0x00000000026ce9c2 (/b/c/builder/ClangToTAndroid__dbg_/src/third_party/llvm-build/Release+Asserts/bin/clang-6.0+0x26ce9c2)
#10 0x00000000026d57d1 llvm::DebugLocEntry::finalize(llvm::AsmPrinter const&, llvm::DebugLocStream::ListBuilder&, llvm::DIBasicType const*) (/b/c/builder/ClangToTAndroid__dbg_/src/third_party/llvm-build/Release+Asserts/bin/clang-6.0+0x26d57d1)
#11 0x00000000026df936 llvm::DwarfDebug::collectVariableInfo(llvm::DwarfCompileUnit&, llvm::DISubprogram const*, llvm::DenseSet<std::pair<llvm::DILocalVariable const*, llvm::DILocation const*>, llvm::DenseMapInfo<std::pair<llvm::DILocalVariable const*, llvm::DILocation const*> > >&) (/b/c/builder/ClangToTAndroid__dbg_/src/third_party/llvm-build/Release+Asserts/bin/clang-6.0+0x26df936)
#12 0x00000000026e03ba llvm::DwarfDebug::endFunctionImpl(llvm::MachineFunction const*) (/b/c/builder/ClangToTAndroid__dbg_/src/third_party/llvm-build/Release+Asserts/bin/clang-6.0+0x26e03ba)
#13 0x00000000027102f1 llvm::DebugHandlerBase::endFunction(llvm::MachineFunction const*) (/b/c/builder/ClangToTAndroid__dbg_/src/third_party/llvm-build/Release+Asserts/bin/clang-6.0+0x27102f1)
#14 0x00000000026c0429 llvm::AsmPrinter::EmitFunctionBody() (/b/c/builder/ClangToTAndroid__dbg_/src/third_party/llvm-build/Release+Asserts/bin/clang-6.0+0x26c0429)
#15 0x0000000000ed372c (/b/c/builder/ClangToTAndroid__dbg_/src/third_party/llvm-build/Release+Asserts/bin/clang-6.0+0xed372c)
#16 0x000000000198e9b5 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (/b/c/builder/ClangToTAndroid__dbg_/src/third_party/llvm-build/Release+Asserts/bin/clang-6.0+0x198e9b5)
#17 0x0000000001c8b3e3 llvm::FPPassManager::runOnFunction(llvm::Function&) (/b/c/builder/ClangToTAndroid__dbg_/src/third_party/llvm-build/Release+Asserts/bin/clang-6.0+0x1c8b3e3)
#18 0x0000000001c8b48c llvm::FPPassManager::runOnModule(llvm::Module&) (/b/c/builder/ClangToTAndroid__dbg_/src/third_party/llvm-build/Release+Asserts/bin/clang-6.0+0x1c8b48c)
#19 0x0000000001c8bd0f llvm::legacy::PassManagerImpl::run(llvm::Module&) (/b/c/builder/ClangToTAndroid__dbg_/src/third_party/llvm-build/Release+Asserts/bin/clang-6.0+0x1c8bd0f)
#20 0x0000000002260bc8 (/b/c/builder/ClangToTAndroid__dbg_/src/third_party/llvm-build/Release+Asserts/bin/clang-6.0+0x2260bc8)
#21 0x0000000002261e62 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> >) (/b/c/builder/ClangToTAndroid__dbg_/src/third_party/llvm-build/Release+Asserts/bin/clang-6.0+0x2261e62)
#22 0x0000000002940d2b (/b/c/builder/ClangToTAndroid__dbg_/src/third_party/llvm-build/Release+Asserts/bin/clang-6.0+0x2940d2b)
#23 0x0000000002d3fe22 clang::ParseAST(clang::Sema&, bool, bool) (/b/c/builder/ClangToTAndroid__dbg_/src/third_party/llvm-build/Release+Asserts/bin/clang-6.0+0x2d3fe22)
#24 0x000000000294036f clang::CodeGenAction::ExecuteAction() (/b/c/builder/ClangToTAndroid__dbg_/src/third_party/llvm-build/Release+Asserts/bin/clang-6.0+0x294036f)
#25 0x00000000025f74d6 clang::FrontendAction::Execute() (/b/c/builder/ClangToTAndroid__dbg_/src/third_party/llvm-build/Release+Asserts/bin/clang-6.0+0x25f74d6)
#26 0x00000000025ced2e clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/b/c/builder/ClangToTAndroid__dbg_/src/third_party/llvm-build/Release+Asserts/bin/clang-6.0+0x25ced2e)
#27 0x0000000002687bdb clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/b/c/builder/ClangToTAndroid__dbg_/src/third_party/llvm-build/Release+Asserts/bin/clang-6.0+0x2687bdb)
#28 0x0000000000bbd0a8 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/b/c/builder/ClangToTAndroid__dbg_/src/third_party/llvm-build/Release+Asserts/bin/clang-6.0+0xbbd0a8)
#29 0x0000000000b5468e main (/b/c/builder/ClangToTAndroid__dbg_/src/third_party/llvm-build/Release+Asserts/bin/clang-6.0+0xb5468e)
#30 0x00007fc313922f45 __libc_start_main /build/eglibc-SvCtMH/eglibc-2.19/csu/libc-start.c:321:0
#31 0x0000000000bb87a9 _start (/b/c/builder/ClangToTAndroid__dbg_/src/third_party/llvm-build/Release+Asserts/bin/clang-6.0+0xbb87a9)
Stack dump:
0.	Program arguments: /b/c/builder/ClangToTAndroid__dbg_/src/third_party/llvm-build/Release+Asserts/bin/clang-6.0 -cc1 -triple thumbv7--linux-android -emit-obj -disable-free -main-file-name decode.c -mrelocation-model pic -pic-level 2 -mthread-model posix -relaxed-aliasing -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu generic -target-feature +soft-float-abi -target-feature -fp-only-sp -target-feature -d16 -target-feature +vfp3 -target-feature -fp16 -target-feature -vfp4 -target-feature -fp-armv8 -target-feature +neon -target-feature -crypto -target-abi aapcs-linux -mfloat-abi soft -fallow-half-arguments-and-returns -dwarf-column-info -debug-info-kind=limited -dwarf-version=3 -debugger-tuning=gdb -ffunction-sections -fdata-sections -coverage-notes-file /b/c/builder/ClangToTAndroid__dbg_/src/out/Debug/obj/third_party/brotli/dec_no_dictionary_data/decode.gcno -resource-dir /b/c/builder/ClangToTAndroid__dbg_/src/third_party/llvm-build/Release+Asserts/lib/clang/6.0.0 -dependency-file obj/third_party/brotli/dec_no_dictionary_data/decode.o.d -MT obj/third_party/brotli/dec_no_dictionary_data/decode.o -D V8_DEPRECATION_WARNINGS -D NO_TCMALLOC -D SAFE_BROWSING_DB_REMOTE -D CHROMIUM_BUILD -D FIELDTRIAL_TESTING_ENABLED -D CR_CLANG_REVISION="313547" -D _FILE_OFFSET_BITS=64 -D ANDROID -D HAVE_SYS_UIO_H -D ANDROID_NDK_VERSION_ROLL=r12b_1 -D COMPONENT_BUILD -D __GNU_SOURCE=1 -D __compiler_offsetof=__builtin_offsetof -D nan=__builtin_nan -D _DEBUG -D DYNAMIC_ANNOTATIONS_ENABLED=1 -D WTF_USE_DYNAMIC_ANNOTATIONS=1 -I ../.. -I gen -I ../../third_party/brotli/include -D __DATE__= -D __TIME__= -D __TIMESTAMP__= -isysroot ../../third_party/android_tools/ndk/platforms/android-16/arch-arm -internal-isystem ../../third_party/android_tools/ndk/platforms/android-16/arch-arm/usr/local/include -internal-isystem /b/c/builder/ClangToTAndroid__dbg_/src/third_party/llvm-build/Release+Asserts/lib/clang/6.0.0/include -internal-externc-isystem ../../third_party/android_tools/ndk/platforms/android-16/arch-arm/include -internal-externc-isystem ../../third_party/android_tools/ndk/platforms/android-16/arch-arm/usr/include -O2 -Wno-builtin-macro-redefined -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Werror -Wall -Wno-unused-variable -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-covered-switch-default -Wno-unneeded-internal-declaration -Wno-inconsistent-missing-override -Wno-undefined-var-template -Wno-nonportable-include-path -Wno-address-of-packed-member -Wno-unused-lambda-capture -Wno-user-defined-warnings -Wno-enum-compare-switch -Wno-tautological-unsigned-zero-compare -std=gnu11 -fdebug-compilation-dir /b/c/builder/ClangToTAndroid__dbg_/src/out/Debug -ferror-limit 19 -fmessage-length 0 -fvisibility hidden -femulated-tls -stack-protector 1 -stack-protector-buffer-size 4 -fno-signed-char -fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp -o obj/third_party/brotli/dec_no_dictionary_data/decode.o -x c ../../third_party/brotli/dec/decode.c 
1.	<eof> parser at end of file
2.	Code generation
3.	Running pass 'Function Pass Manager' on module '../../third_party/brotli/dec/decode.c'.
4.	Running pass 'ARM Assembly Printer' on function '@ProcessCommands'
clang-6.0: error: unable to execute command: Aborted (core dumped)
clang-6.0: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 6.0.0 (trunk 313547)
Target: arm--linux-android
Thread model: posix
InstalledDir: /b/c/builder/ClangToTAndroid__dbg_/src/out/Debug/../../third_party/llvm-build/Release+Asserts/bin
clang-6.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-6.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-6.0: note: diagnostic msg: /b/rr/tmpI0_Wkt/t/decode-ddf31a.c
clang-6.0: note: diagnostic msg: /b/rr/tmpI0_Wkt/t/decode-ddf31a.sh
clang-6.0: note: diagnostic msg: 
********************
 

Comment 1 by h...@chromium.org, Sep 18 2017

Last good:
https://build.chromium.org/p/chromium.fyi/builders/ClangToTAndroid%20%28dbg%29/builds/1968
clang 313392

First bad:
https://build.chromium.org/p/chromium.fyi/builders/ClangToTAndroid%20%28dbg%29/builds/1969
clang 313442


Some suspects:

------------------------------------------------------------------------
r313399 | rnk | 2017-09-15 14:49:56 -0700 (Fri, 15 Sep 2017) | 25 lines

[DebugInfo] Add missing DW_OP_deref when an NRVO pointer is spilled

Summary:
Fixes PR34513.

Indirect DBG_VALUEs typically come from dbg.declares of non-trivially
copyable C++ objects that must be passed by address. We were already
handling the case where the virtual register gets allocated to a
physical register and is later spilled. That's what usually happens for
normal parameters that aren't NRVO variables: they usually appear in
physical register parameters, and are spilled later in the function,
which would correctly add deref.

NRVO variables are different because the dbg.declare can come much later
after earlier instructions cause the incoming virtual register to be
spilled.

Also, clean up this code. We only need to look at the first operand of a
DBG_VALUE, which eliminates the operand loop.

Reviewers: aprantl, dblaikie, probinson

Subscribers: MatzeB, qcolombet, llvm-commits, hiraditya

Differential Revision: https://reviews.llvm.org/D37929
------------------------------------------------------------------------

------------------------------------------------------------------------
r313400 | rnk | 2017-09-15 14:54:38 -0700 (Fri, 15 Sep 2017) | 18 lines

[DebugInfo] Insert DW_OP_deref when spilling indirect DBG_VALUEs

Summary:
This comes up in optimized debug info for C++ programs that pass and
return objects indirectly by address. In these programs,
llvm.dbg.declare survives optimization, which causes us to emit indirect
DBG_VALUE instructions. The fast register allocator knows to insert
DW_OP_deref when spilling indirect DBG_VALUE instructions, but the
LiveDebugVariables did not until this change.

This fixes part of PR34513. I need to look into why this doesn't work at
-O0 and I'll send follow up patches to handle that.

Reviewers: aprantl, dblaikie, probinson

Subscribers: qcolombet, hiraditya, llvm-commits

Differential Revision: https://reviews.llvm.org/D37911
------------------------------------------------------------------------

Comment 2 Deleted

Comment 3 by h...@chromium.org, Sep 18 2017

Attaching reproducer.
decode-958617.c
3.2 MB View Download
decode-958617.sh
7.4 KB View Download

Comment 4 by h...@chromium.org, Sep 18 2017

Cc: r...@chromium.org
The assert started with r313400.

Comment 5 by h...@chromium.org, Sep 18 2017

Cc: -r...@chromium.org
Owner: r...@chromium.org
Reid, maybe you can take a look. This seems to be part of a series of patches, so maybe it's easier for you to fix than for me to revert?

Comment 6 by r...@chromium.org, Sep 18 2017

We should be able to safely revert just that patch. One patch changed fast regalloc and the other changed greedy regalloc. Let's take a look though.

Comment 7 by h...@chromium.org, Sep 18 2017

Reverted with r313589 in the meantime

Comment 8 by h...@chromium.org, Sep 19 2017

Reid re-landed with a fix in r313640, but now iOS is sad (I'm guessing it's a similar problem).

From https://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/262881:

FAILED: obj/third_party/libvpx/libvpx/idct32x32_34_add_neon.o 
export DEVELOPER_DIR=/b/build/slave/ios-device/build/src/build/ios_files/Xcode.app;  /b/build/slave/cache/goma_client/gomacc ../../third_party/llvm-build/Release+Asserts/bin/clang -MMD -MF obj/third_party/libvpx/libvpx/idct32x32_34_add_neon.o.d -DV8_DEPRECATION_WARNINGS -DNO_TCMALLOC -DCHROMIUM_BUILD -DFIELDTRIAL_TESTING_ENABLED -DCR_CLANG_REVISION=\"313640-1\" -DCR_XCODE_VERSION=0900 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DNS_BLOCK_ASSERTIONS=1 -I../.. -Igen -I../../third_party/libvpx/source/config -I../../third_party/libvpx/source/config/ios/arm-neon -I../../third_party/libvpx/source/libvpx -Igen/third_party/libvpx -I../../third_party/libvpx/source/libvpx -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -fcolor-diagnostics -arch armv7 -Oz -fno-omit-frame-pointer -gdwarf-2 -isysroot /b/build/slave/ios-device/build/src/build/ios_files/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.0.sdk -stdlib=libc++ -miphoneos-version-min=9.0 -fvisibility=hidden -Xclang -load -Xclang ../../third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.dylib -Xclang -add-plugin -Xclang find-bad-constructs -Xclang -plugin-arg-find-bad-constructs -Xclang check-auto-raw-pointer -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Werror -Wall -Wno-unused-variable -Wundeclared-selector -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-covered-switch-default -Wno-unneeded-internal-declaration -Wno-inconsistent-missing-override -Wno-undefined-var-template -Wno-nonportable-include-path -Wno-address-of-packed-member -Wno-unused-lambda-capture -Wno-user-defined-warnings -Wno-enum-compare-switch -Wno-tautological-unsigned-zero-compare -Wno-conversion -Wno-parentheses-equality -Wno-unused-function -std=c11 -c ../../third_party/libvpx/source/libvpx/vpx_dsp/arm/idct32x32_34_add_neon.c -o obj/third_party/libvpx/libvpx/idct32x32_34_add_neon.o
Assertion failed: (DwarfRegs.size() == 1), function addMachineRegExpression, file /b/build/slave/mac_upload_clang/build/src/third_party/llvm/lib/CodeGen/AsmPrinter/DwarfExpression.cpp, line 245.
0  clang                    0x0000000109b83558 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 40
1  clang                    0x0000000109b83c46 llvm::sys::PrintStackTraceOnErrorSignal(llvm::StringRef, bool) + 886
2  libsystem_platform.dylib 0x00007fffe0299b3a _sigtramp + 26
3  libsystem_platform.dylib 0x00000003ffffffff _sigtramp + 534144223
4  libsystem_c.dylib        0x00007fffe011e420 abort + 129
5  libsystem_c.dylib        0x00007fffe00e5893 basename_r + 0
6  clang                    0x000000010a2ae8a3 llvm::DwarfExpression::addMachineRegExpression(llvm::TargetRegisterInfo const&, llvm::DIExpressionCursor&, unsigned int, unsigned int) + 1171
7  clang                    0x000000010a29b8d9 llvm::DwarfDebug::emitDebugLocEntry(llvm::ByteStreamer&, llvm::DebugLocStream::Entry const&) + 1049
8  clang                    0x000000010a299bb0 llvm::DebugLocEntry::finalize(llvm::AsmPrinter const&, llvm::DebugLocStream::ListBuilder&, llvm::DIBasicType const*) + 608
9  clang                    0x000000010a298e42 llvm::DwarfDebug::collectVariableInfo(llvm::DwarfCompileUnit&, llvm::DISubprogram const*, llvm::DenseSet<std::__1::pair<llvm::DILocalVariable const*, llvm::DILocation const*>, llvm::DenseMapInfo<std::__1::pair<llvm::DILocalVariable const*, llvm::DILocation const*> > >&) + 498
10 clang                    0x000000010a29a616 llvm::DwarfDebug::endFunctionImpl(llvm::MachineFunction const*) + 358
11 clang                    0x000000010a27b556 llvm::DebugHandlerBase::endFunction(llvm::MachineFunction const*) + 102
12 clang                    0x000000010a26ac52 llvm::AsmPrinter::EmitFunctionBody() + 8098
13 clang                    0x00000001086ea3a0 llvm::createA15SDOptimizerPass() + 16512
14 clang                    0x000000010931f3a8 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 184
15 clang                    0x0000000109612d5d llvm::FPPassManager::runOnFunction(llvm::Function&) + 541
16 clang                    0x0000000109613043 llvm::FPPassManager::runOnModule(llvm::Module&) + 67
17 clang                    0x000000010961358b llvm::legacy::PassManagerImpl::run(llvm::Module&) + 955
18 clang                    0x0000000109d66333 clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::DataLayout const&, llvm::Module*, clang::BackendAction, std::__1::unique_ptr<llvm::raw_pwrite_stream, std::__1::default_delete<llvm::raw_pwrite_stream> >) + 15379
19 clang                    0x0000000109f60fb6 clang::EmitObjAction::EmitObjAction(llvm::LLVMContext*) + 2198
20 clang                    0x000000010a212c3c clang::MultiplexConsumer::HandleTranslationUnit(clang::ASTContext&) + 44
21 clang                    0x000000010a959232 clang::ParseAST(clang::Sema&, bool, bool) + 466
22 clang                    0x000000010a1e8e29 clang::FrontendAction::Execute() + 137
23 clang                    0x000000010a18bfc1 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 801
24 clang                    0x000000010a237a12 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 4482
25 clang                    0x000000010839b26a cc1_main(llvm::ArrayRef<char const*>, char const*, void*) + 1418
26 clang                    0x0000000108398f4f main + 11519
27 clang                    0x0000000108395fa4 start + 52
Stack dump:
0.	Program arguments: /b/build/slave/ios-device/build/src/third_party/llvm-build/Release+Asserts/bin/clang -cc1 -triple thumbv7-apple-ios9.0.0 -emit-obj -disable-free -main-file-name idct32x32_34_add_neon.c -mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim -relaxed-aliasing -masm-verbose -faligned-alloc-unavailable -target-cpu generic -target-feature +soft-float-abi -target-abi apcs-gnu -mfloat-abi soft -fallow-half-arguments-and-returns -dwarf-column-info -debug-info-kind=standalone -dwarf-version=2 -debugger-tuning=lldb -target-linker-version 274.1 -coverage-notes-file /b/build/slave/ios-device/build/src/out/Release-iphoneos/obj/third_party/libvpx/libvpx/idct32x32_34_add_neon.gcno -resource-dir /b/build/slave/ios-device/build/src/third_party/llvm-build/Release+Asserts/lib/clang/6.0.0 -dependency-file obj/third_party/libvpx/libvpx/idct32x32_34_add_neon.o.d -MT obj/third_party/libvpx/libvpx/idct32x32_34_add_neon.o -isysroot /b/build/slave/ios-device/build/src/build/ios_files/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.0.sdk -D V8_DEPRECATION_WARNINGS -D NO_TCMALLOC -D CHROMIUM_BUILD -D FIELDTRIAL_TESTING_ENABLED -D CR_CLANG_REVISION="313640-1" -D CR_XCODE_VERSION=0900 -D NDEBUG -D NVALGRIND -D DYNAMIC_ANNOTATIONS_ENABLED=0 -D NS_BLOCK_ASSERTIONS=1 -I ../.. -I gen -I ../../third_party/libvpx/source/config -I ../../third_party/libvpx/source/config/ios/arm-neon -I ../../third_party/libvpx/source/libvpx -I gen/third_party/libvpx -I ../../third_party/libvpx/source/libvpx -D __DATE__= -D __TIME__= -D __TIMESTAMP__= -Oz -Wno-builtin-macro-redefined -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Werror -Wall -Wno-unused-variable -Wundeclared-selector -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-covered-switch-default -Wno-unneeded-internal-declaration -Wno-inconsistent-missing-override -Wno-undefined-var-template -Wno-nonportable-include-path -Wno-address-of-packed-member -Wno-unused-lambda-capture -Wno-user-defined-warnings -Wno-enum-compare-switch -Wno-tautological-unsigned-zero-compare -Wno-conversion -Wno-parentheses-equality -Wno-unused-function -std=c11 -fdebug-compilation-dir /b/build/slave/ios-device/build/src/out/Release-iphoneos -ferror-limit 19 -fmessage-length 0 -fvisibility hidden -stack-protector 1 -stack-protector-buffer-size 4 -fblocks -fencode-extended-block-signature -fobjc-runtime=ios-9.0.0 -fsjlj-exceptions -fmax-type-align=16 -fdiagnostics-show-option -fcolor-diagnostics -vectorize-slp -load ../../third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.dylib -add-plugin find-bad-constructs -plugin-arg-find-bad-constructs check-auto-raw-pointer -o obj/third_party/libvpx/libvpx/idct32x32_34_add_neon.o -x c ../../third_party/libvpx/source/libvpx/vpx_dsp/arm/idct32x32_34_add_neon.c 
1.	<eof> parser at end of file
2.	Code generation
3.	Running pass 'Function Pass Manager' on module '../../third_party/libvpx/source/libvpx/vpx_dsp/arm/idct32x32_34_add_neon.c'.
4.	Running pass 'ARM Assembly Printer' on function '@vpx_idct32_6_neon'
clang: error: unable to execute command: Abort trap: 6
clang: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 6.0.0 (trunk 313640)
Target: arm-apple-darwin16.7.0
Thread model: posix
InstalledDir: /b/build/slave/ios-device/build/src/out/Release-iphoneos/../../third_party/llvm-build/Release+Asserts/bin
clang: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run script.
idct32x32_34_add_neon-6ec7a8.c
6.7 MB View Download
idct32x32_34_add_neon-6ec7a8.sh
7.2 KB View Download

Comment 9 by h...@chromium.org, Sep 20 2017

Blocking: 765852

Comment 10 by h...@chromium.org, Sep 20 2017

Status: Fixed (was: Assigned)
Reid reverted in r313679 and relanded with r313775+r313786, so hopefully it's fixed.

Sign in to add a comment