Closed llvmbot closed 7 years ago
I get a bunch of errors from compiling the reduced file with trunk and 4.0-rc1, but no assert.
Please re-open if this is still a problem.
Original file that caused the assertion failure cannot be attached here due to its size. If requested, I will email accordingly.
Extended Description
FAILED: /bin/bash -c "(PWD=/proc/self/cwd /home/minseong.kim/linaro_CI/djmin/llvm/build/install/linux-x86/clang-3016494/bin/clang++ -I external/gtest/include -I external/icu/icu4c/source/common -I external/lz4/lib -I external/valgrind/include -I external/valgrind -I external/vixl/src -I external/zlib -I bionic/libc/private -I art/cmdline -I art/sigchainlib -I art -I art/runtime -I out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates -I out/host/linux-x86/gen/SHARED_LIBRARIES/libart_intermediates -I libnativehelper/include/nativehelper \$(cat out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/import_includes) -isystem system/core/include -isystem system/media/audio/include -isystem hardware/libhardware/include -isystem hardware/libhardware_legacy/include -isystem hardware/ril/include -isystem libnativehelper/include -isystem frameworks/native/include -isystem frameworks/native/opengl/include -isystem frameworks/av/include -isystem frameworks/base/include -isystem out/host/linux-x86/obj/include -c -fno-exceptions -Wno-multichar -Wa,--noexecstack -fPIC -no-canonical-prefixes -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector -DSTDC_FORMAT_MACROS -DSTDC_CONSTANT_MACROS -O2 -g -fno-strict-aliasing--gcc-toolchain=prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8 --sysroot prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot -fstack-protector-strong -m64 -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -DNDEBUG -UDEBUG -fdebug-prefix-map=/proc/self/cwd= -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -Wno-expansion-to-defined -target x86_64-linux-gnu -Bprebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/bin -Wsign-promo -Wno-inconsistent-missing-override -Wno-null-dereference -isystem prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8 -isystem prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8/backward -isystem prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8/x86_64-linux -DBUILDING_LIBART=1 -Wthread-safety -Wthread-safety-negative -Wimplicit-fallthrough -Wfloat-equal -Wint-to-void-pointer-cast -Wused-but-marked-unused -Wdeprecated -Wunreachable-code-break -Wunreachable-code-return -Wno-constant-conversion -Wno-undefined-var-template -Wmissing-noreturn -fno-rtti -std=gnu++11 -ggdb3 -Wall -Werror -Wextra -Wstrict-aliasing -fstrict-aliasing -Wunreachable-code -Wredundant-decls -Wshadow -Wunused -fvisibility=protected-DART_DEFAULT_GC_TYPE_IS_CMS -DIMT_SIZE=43 -fno-omit-frame-pointer -DART_BASE_ADDRESS=0x60000000 -DART_DEFAULT_INSTRUCTION_SET_FEATURES=default -DART_ENABLE_CODEGEN_arm -DART_ENABLE_CODEGEN_arm64 -DART_ENABLE_CODEGEN_mips -DART_ENABLE_CODEGEN_mips64 -DART_ENABLE_CODEGEN_x86 -DART_ENABLE_CODEGEN_x86_64 -DART_FRAME_SIZE_LIMIT=1736 -DART_STACK_OVERFLOW_GAP_arm=8192 -DART_STACK_OVERFLOW_GAP_arm64=8192 -DART_STACK_OVERFLOW_GAP_mips=16384 -DART_STACK_OVERFLOW_GAP_mips64=16384 -DART_STACK_OVERFLOW_GAP_x86=8192 -DART_STACK_OVERFLOW_GAP_x86_64=8192 -DART_BASE_ADDRESS_MIN_DELTA=-0x1000000 -DART_BASE_ADDRESS_MAX_DELTA=0x1000000 -DART_DEFAULT_INSTRUCTION_SET_FEATURES=\"default\" -O3 -Wframe-larger-than=1736 -Wno-error=expansion-to-defined -Wno-error=undefined-var-template -Wno-error=unreachable-code -Wno-error=null-dereference -Wno-address-of-packed-member -fPIC -D_USING_LIBCXX -DANDROID_STRICT -std=gnu++14 -nostdinc++ -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -MD -MF out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/thread.d -o out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/thread.o art/runtime/thread.cc ) && (cp out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/thread.d out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/thread.P; sed -e 's/#.//' -e 's/^[^:]: //' -e 's/ \\\$//' -e '/^\$/ d' -e's/\$/ :/' < out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/thread.d >> out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/thread.P; rm -f out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/thread.d )" clang++: /home/minseong.kim/linaro_CI/djmin/llvm/tools/clang/lib/AST/RecordLayoutBuilder.cpp:2933: const clang::ASTRecordLayout& clang::ASTContext::getASTRecordLayout(const clang::RecordDecl*) const: Assertion `D && "Cannot get layout of forward declarations!"' failed.
0 0x0000000001c4f185 llvm::sys::PrintStackTrace(llvm::raw_ostream&) (/home/minseong.kim/linaro_CI/djmin/llvm/build/install/linux-x86/clang-3016494/bin/clang+++0x1c4f185)
1 0x0000000001c4d12e llvm::sys::RunSignalHandlers() (/home/minseong.kim/linaro_CI/djmin/llvm/build/install/linux-x86/clang-3016494/bin/clang+++0x1c4d12e)
2 0x0000000001c4d292 SignalHandler(int) (/home/minseong.kim/linaro_CI/djmin/llvm/build/install/linux-x86/clang-3016494/bin/clang+++0x1c4d292)
3 0x00007fc34fbca330 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x10330)
4 0x00007fc34e9c5c37 gsignal /build/eglibc-oGUzwX/eglibc-2.19/signal/../nptl/sysdeps/unix/sysv/linux/raise.c:56:0
5 0x00007fc34e9c9028 abort /build/eglibc-oGUzwX/eglibc-2.19/stdlib/abort.c:91:0
6 0x00007fc34e9bebf6 __assert_fail_base /build/eglibc-oGUzwX/eglibc-2.19/assert/assert.c:92:0
7 0x00007fc34e9beca2 (/lib/x86_64-linux-gnu/libc.so.6+0x2fca2)
8 0x00000000031cd653 clang::ASTContext::getASTRecordLayout(clang::RecordDecl const*) const (/home/minseong.kim/linaro_CI/djmin/llvm/build/install/linux-x86/clang-3016494/bin/clang+++0x31cd653)
9 0x00000000030588d8 clang::ASTContext::getTypeInfoImpl(clang::Type const*) const (/home/minseong.kim/linaro_CI/djmin/llvm/build/install/linux-x86/clang-3016494/bin/clang+++0x30588d8)
10 0x0000000003054857 clang::ASTContext::getTypeInfo(clang::Type const*) const (/home/minseong.kim/linaro_CI/djmin/llvm/build/install/linux-x86/clang-3016494/bin/clang+++0x3054857)
11 0x0000000003057fc1 clang::ASTContext::getTypeInfoImpl(clang::Type const*) const (/home/minseong.kim/linaro_CI/djmin/llvm/build/install/linux-x86/clang-3016494/bin/clang+++0x3057fc1)
12 0x0000000003054857 clang::ASTContext::getTypeInfo(clang::Type const*) const (/home/minseong.kim/linaro_CI/djmin/llvm/build/install/linux-x86/clang-3016494/bin/clang+++0x3054857)
13 0x0000000003057f22 clang::ASTContext::getTypeAlignInChars(clang::QualType) const (/home/minseong.kim/linaro_CI/djmin/llvm/build/install/linux-x86/clang-3016494/bin/clang+++0x3057f22)
14 0x0000000002936be5 clang::Sema::DiscardMisalignedMemberAddress(clang::Type const, clang::Expr) (/home/minseong.kim/linaro_CI/djmin/llvm/build/install/linux-x86/clang-3016494/bin/clang+++0x2936be5)
15 0x00000000029240d9 clang::Sema::BuildCXXNamedCast(clang::SourceLocation, clang::tok::TokenKind, clang::TypeSourceInfo, clang::Expr, clang::SourceRange, clang::SourceRange)(/home/minseong.kim/linaro_CI/djmin/llvm/build/install/linux-x86/clang-3016494/bin/clang+++0x29240d9)
16 0x00000000029254c2 clang::Sema::ActOnCXXNamedCast(clang::SourceLocation, clang::tok::TokenKind, clang::SourceLocation, clang::Declarator&, clang::SourceLocation, clang::SourceLocation, clang::Expr*, clang::SourceLocation) (/home/minseong.kim/linaro_CI/djmin/llvm/build/install/linux-x86/clang-3016494/bin/clang+++0x29254c2)
17 0x0000000002754256 clang::Parser::ParseCXXCasts() (/home/minseong.kim/linaro_CI/djmin/llvm/build/install/linux-x86/clang-3016494/bin/clang+++0x2754256)
18 0x0000000002749505 clang::Parser::ParseCastExpression(bool, bool, bool&, clang::Parser::TypeCastState) (/home/minseong.kim/linaro_CI/djmin/llvm/build/install/linux-x86/clang-3016494/bin/clang+++0x2749505)
19 0x000000000274afad clang::Parser::ParseCastExpression(bool, bool, clang::Parser::TypeCastState) (/home/minseong.kim/linaro_CI/djmin/llvm/build/install/linux-x86/clang-3016494/bin/clang+++0x274afad)
20 0x000000000274b039 clang::Parser::ParseAssignmentExpression(clang::Parser::TypeCastState) (/home/minseong.kim/linaro_CI/djmin/llvm/build/install/linux-x86/clang-3016494/bin/clang+++0x274b039)
21 0x0000000002720a56 clang::Parser::ParseDeclarationAfterDeclaratorAndAttributes(clang::Declarator&, clang::Parser::ParsedTemplateInfo const&, clang::Parser::ForRangeInit*) (/home/minseong.kim/linaro_CI/djmin/llvm/build/install/linux-x86/clang-3016494/bin/clang+++0x2720a56)
22 0x000000000272f537 clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&, unsigned int, clang::SourceLocation, clang::Parser::ForRangeInit) (/home/minseong.kim/linaro_CI/djmin/llvm/build/install/linux-x86/clang-3016494/bin/clang+++0x272f537)
23 0x0000000002731f44 clang::Parser::ParseSimpleDeclaration(unsigned int, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&, bool, clang::Parser::ForRangeInit*)(/home/minseong.kim/linaro_CI/djmin/llvm/build/install/linux-x86/clang-3016494/bin/clang+++0x2731f44)
24 0x000000000273224d clang::Parser::ParseDeclaration(unsigned int, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) (/home/minseong.kim/linaro_CI/djmin/llvm/build/install/linux-x86/clang-3016494/bin/clang+++0x273224d)
25 0x0000000002780dad clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt, 32u>&, clang::Parser::AllowedContsructsKind, clang::SourceLocation, clang::Parser::ParsedAttributesWithRange&) (/home/minseong.kim/linaro_CI/djmin/llvm/build/install/linux-x86/clang-3016494/bin/clang+++0x2780dad)
26 0x0000000002780f9d clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt, 32u>&, clang::Parser::AllowedContsructsKind, clang::SourceLocation) (/home/minseong.kim/linaro_CI/djmin/llvm/build/install/linux-x86/clang-3016494/bin/clang+++0x2780f9d)
27 0x0000000002784517 clang::Parser::ParseCompoundStatementBody(bool) (/home/minseong.kim/linaro_CI/djmin/llvm/build/install/linux-x86/clang-3016494/bin/clang+++0x2784517)
28 0x000000000278661f clang::Parser::ParseFunctionStatementBody(clang::Decl*, clang::Parser::ParseScope&) (/home/minseong.kim/linaro_CI/djmin/llvm/build/install/linux-x86/clang-3016494/bin/clang+++0x278661f)
29 0x0000000002712209 clang::Parser::ParseFunctionDefinition(clang::ParsingDeclarator&, clang::Parser::ParsedTemplateInfo const&, clang::Parser::LateParsedAttrList*) (/home/minseong.kim/linaro_CI/djmin/llvm/build/install/linux-x86/clang-3016494/bin/clang+++0x2712209)
30 0x000000000272fd10 clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&, unsigned int, clang::SourceLocation, clang::Parser::ForRangeInit) (/home/minseong.kim/linaro_CI/djmin/llvm/build/install/linux-x86/clang-3016494/bin/clang+++0x272fd10)
31 0x000000000270f302 clang::Parser::ParseDeclOrFunctionDefInternal(clang::Parser::ParsedAttributesWithRange&, clang::ParsingDeclSpec&, clang::AccessSpecifier) (/home/minseong.kim/linaro_CI/djmin/llvm/build/install/linux-x86/clang-3016494/bin/clang+++0x270f302)
32 0x000000000270f9de clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsedAttributesWithRange&, clang::ParsingDeclSpec*, clang::AccessSpecifier) (/home/minseong.kim/linaro_CI/djmin/llvm/build/install/linux-x86/clang-3016494/bin/clang+++0x270f9de)
33 0x000000000271358f clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&, clang::ParsingDeclSpec*) (/home/minseong.kim/linaro_CI/djmin/llvm/build/install/linux-x86/clang-3016494/bin/clang+++0x271358f)
34 0x000000000273d66a clang::Parser::ParseInnerNamespace(std::vector<clang::SourceLocation, std::allocator >&, std::vector<clang::IdentifierInfo, std::allocator<clang::IdentifierInfo> >&, std::vector<clang::SourceLocation, std::allocator >&, unsigned int, clang::SourceLocation&, clang::ParsedAttributes&, clang::BalancedDelimiterTracker&) (/home/minseong.kim/linaro_CI/djmin/llvm/build/install/linux-x86/clang-3016494/bin/clang+++0x273d66a)
35 0x000000000273ded8 clang::Parser::ParseNamespace(unsigned int, clang::SourceLocation&, clang::SourceLocation) (/home/minseong.kim/linaro_CI/djmin/llvm/build/install/linux-x86/clang-3016494/bin/clang+++0x273ded8)
36 0x0000000002732424 clang::Parser::ParseDeclaration(unsigned int, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) (/home/minseong.kim/linaro_CI/djmin/llvm/build/install/linux-x86/clang-3016494/bin/clang+++0x2732424)
37 0x00000000027135b1 clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&, clang::ParsingDeclSpec*) (/home/minseong.kim/linaro_CI/djmin/llvm/build/install/linux-x86/clang-3016494/bin/clang+++0x27135b1)
38 0x0000000002713fc4 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr&) (/home/minseong.kim/linaro_CI/djmin/llvm/build/install/linux-x86/clang-3016494/bin/clang+++0x2713fc4)
39 0x000000000270ca43 clang::ParseAST(clang::Sema&, bool, bool) (/home/minseong.kim/linaro_CI/djmin/llvm/build/install/linux-x86/clang-3016494/bin/clang+++0x270ca43)
40 0x00000000023a76ce clang::CodeGenAction::ExecuteAction() (/home/minseong.kim/linaro_CI/djmin/llvm/build/install/linux-x86/clang-3016494/bin/clang+++0x23a76ce)
41 0x00000000020c32c6 clang::FrontendAction::Execute() (/home/minseong.kim/linaro_CI/djmin/llvm/build/install/linux-x86/clang-3016494/bin/clang+++0x20c32c6)
42 0x000000000209e04e clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/home/minseong.kim/linaro_CI/djmin/llvm/build/install/linux-x86/clang-3016494/bin/clang+++0x209e04e)
43 0x0000000002148ea6 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/home/minseong.kim/linaro_CI/djmin/llvm/build/install/linux-x86/clang-3016494/bin/clang+++0x2148ea6)
44 0x0000000000a657b8 cc1_main(llvm::ArrayRef<char const>, char const, void*) (/home/minseong.kim/linaro_CI/djmin/llvm/build/install/linux-x86/clang-3016494/bin/clang+++0xa657b8)
45 0x0000000000a101af main (/home/minseong.kim/linaro_CI/djmin/llvm/build/install/linux-x86/clang-3016494/bin/clang+++0xa101af)
46 0x00007fc34e9b0f45 __libc_start_main /build/eglibc-oGUzwX/eglibc-2.19/csu/libc-start.c:321:0
47 0x0000000000a6166d _start (/home/minseong.kim/linaro_CI/djmin/llvm/build/install/linux-x86/clang-3016494/bin/clang+++0xa6166d)
Stack dump:
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: clang++: note: diagnostic msg: /tmp/thread-9ac53d.cpp clang++: note: diagnostic msg: /tmp/thread-9ac53d.sh clang++: note: diagnostic msg: