Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

Unhandled builtin type kind: UNREACHABLE executed at ASTContext.cpp:4798! #17655

Closed Quuxplusone closed 10 years ago

Quuxplusone commented 10 years ago
Bugzilla Link PR17656
Status RESOLVED DUPLICATE of bug 17651
Importance P normal
Reported by Steve Workman (sjhworkman@gmail.com)
Reported on 2013-10-22 13:22:32 -0700
Last modified on 2013-10-23 07:29:00 -0700
Version 3.2
Hardware Macintosh MacOS X
CC benny.kra@gmail.com, llvm-bugs@lists.llvm.org
Fixed by commit(s)
Attachments nsChildView-Y0I5Cg.sh (1111 bytes, text/x-sh)
Blocks
Blocked by
See also
Crash observed while trying to build Firefox - mozilla-central rev 177bf37a49f5
(Mon Oct 21 20:32:55 2013 -0400).

 8:12.09 Unhandled builtin type kind
 8:12.09 UNREACHABLE executed at ASTContext.cpp:4798!
 8:12.09 0  libLLVM-3.2svn.dylib 0x0000000109d40e52 PrintStackTrace(void*) + 34
 8:12.09 1  libLLVM-3.2svn.dylib 0x0000000109d41379 SignalHandler(int) + 713
 8:12.09 2  libsystem_c.dylib    0x00007fff8c55c90a _sigtramp + 26
 8:12.09 3  clang                0x00000001089d759a (anonymous namespace)::TypePrinter::AppendScope(clang::DeclContext*, llvm::raw_ostream&) + 298
 8:12.09 4  libLLVM-3.2svn.dylib 0x0000000109d41096 abort + 22
 8:12.09 5  libLLVM-3.2svn.dylib 0x0000000109d2c5c4 llvm::llvm_unreachable_internal(char const*, char const*, unsigned int) + 468
 8:12.10 6  clang                0x00000001088a399e ObjCEncodingForPrimitiveKind(clang::ASTContext const*, clang::QualType) + 110
 8:12.10 7  clang                0x00000001088a0f9b clang::ASTContext::getObjCEncodingForTypeImpl(clang::QualType, std::string&, bool, bool, clang::FieldDecl const*, bool, bool, bool, bool, bool) const + 203
 8:12.10 8  clang                0x00000001088a27ab clang::ASTContext::getObjCEncodingForTypeImpl(clang::QualType, std::string&, bool, bool, clang::FieldDecl const*, bool, bool, bool, bool, bool) const + 6363
 8:12.10 9  clang                0x00000001088a4272 clang::ASTContext::getObjCEncodingForStructureImpl(clang::RecordDecl*, std::string&, clang::FieldDecl const*, bool) const + 2002
 8:12.10 10 clang                0x00000001088a4307 clang::ASTContext::getObjCEncodingForStructureImpl(clang::RecordDecl*, std::string&, clang::FieldDecl const*, bool) const + 2151
 8:12.10 11 clang                0x00000001088a1c63 clang::ASTContext::getObjCEncodingForTypeImpl(clang::QualType, std::string&, bool, bool, clang::FieldDecl const*, bool, bool, bool, bool, bool) const + 3475
 8:12.10 12 clang                0x00000001088a4272 clang::ASTContext::getObjCEncodingForStructureImpl(clang::RecordDecl*, std::string&, clang::FieldDecl const*, bool) const + 2002
 8:12.10 13 clang                0x00000001088a4307 clang::ASTContext::getObjCEncodingForStructureImpl(clang::RecordDecl*, std::string&, clang::FieldDecl const*, bool) const + 2151
 8:12.10 14 clang                0x00000001088a1c63 clang::ASTContext::getObjCEncodingForTypeImpl(clang::QualType, std::string&, bool, bool, clang::FieldDecl const*, bool, bool, bool, bool, bool) const + 3475
 8:12.10 15 clang                0x00000001088a27ab clang::ASTContext::getObjCEncodingForTypeImpl(clang::QualType, std::string&, bool, bool, clang::FieldDecl const*, bool, bool, bool, bool, bool) const + 6363
 8:12.10 16 clang                0x00000001088a2e36 clang::ASTContext::getObjCEncodingForMethodDecl(clang::ObjCMethodDecl const*, std::string&, bool) const + 582
 8:12.10 17 clang                0x000000010816c411 (anonymous namespace)::CGObjCCommonMac::GetMethodVarType(clang::ObjCMethodDecl const*, bool) + 65
 8:12.10 18 clang                0x000000010816c354 (anonymous namespace)::CGObjCNonFragileABIMac::GetMethodDescriptionConstant(clang::ObjCMethodDecl const*) + 132
 8:12.10 19 clang                0x000000010816b21c (anonymous namespace)::CGObjCNonFragileABIMac::GetOrEmitProtocol(clang::ObjCProtocolDecl const*) + 892
 8:12.10 20 clang                0x000000010816c94d (anonymous namespace)::CGObjCNonFragileABIMac::EmitProtocolList(llvm::Twine, clang::ObjCProtocolDecl* const*, clang::ObjCProtocolDecl* const*) + 429
 8:12.10 21 clang                0x0000000108173ca6 (anonymous namespace)::CGObjCNonFragileABIMac::BuildClassRoTInitializer(unsigned int, unsigned int, unsigned int, clang::ObjCImplementationDecl const*) + 2422
 8:12.10 22 clang                0x0000000108166f3a (anonymous namespace)::CGObjCNonFragileABIMac::GenerateClass(clang::ObjCImplementationDecl const*) + 1370
 8:12.10 23 clang                0x00000001081ac25d clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) + 669
 8:12.10 24 clang                0x00000001081c8c2f (anonymous namespace)::CodeGeneratorImpl::HandleTopLevelDecl(clang::DeclGroupRef) + 127
 8:12.10 25 clang                0x000000010819b26a clang::BackendConsumer::HandleTopLevelDecl(clang::DeclGroupRef) + 170
 8:12.10 26 clang                0x00000001081d6d02 clang::ParseAST(clang::Sema&, bool, bool) + 306
 8:12.10 27 clang                0x000000010819a612 clang::CodeGenAction::ExecuteAction() + 1298
 8:12.10 28 clang                0x0000000107f8f05d clang::FrontendAction::Execute() + 109
 8:12.11 29 clang                0x0000000107f710cf clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 1007
 8:12.11 30 clang                0x0000000107f39c31 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3569
 8:12.11 31 clang                0x0000000107f31838 cc1_main(char const**, char const**, char const*, void*) + 872
 8:12.11 32 clang                0x0000000107f35b14 main + 708
 8:12.11 33 libdyld.dylib        0x00007fff94be47e1 start + 0
 8:12.11 34 libdyld.dylib        0x0000000000000075 start + 18446603338020665492
 8:12.11 Stack dump:
 8:12.11 0. Program arguments: /opt/local/libexec/llvm-3.2/bin/clang -cc1 -triple x86_64-apple-macosx10.6.0 -emit-obj -mrelax-all -disable-free -main-file-name nsChildView.mm -mrelocation-model pic -pic-level 2 -mdisable-fp-elim -relaxed-aliasing -masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 136 -g -coverage-file /Users/steveworkman/src/moz-central/obj-ff-dbg/widget/cocoa/nsChildView.o -resource-dir /opt/local/libexec/llvm-3.2/bin/../lib/clang/3.2 -dependency-file .deps/nsChildView.o.pp -MT nsChildView.o -sys-header-deps -MP -include ../../mozilla-config.h -D MOZILLA_INTERNAL_API -D IMPL_LIBXUL -D STATIC_EXPORTABLE_JS_API -D NO_NSPR_10_SUPPORT -D NO_X11 -D MOZILLA_CLIENT -D NO_X11 -D DEBUG -D _DEBUG -D TRACING -I /Users/steveworkman/src/moz-central/widget/cocoa/../xpwidgets -I /Users/steveworkman/src/moz-central/widget/cocoa/../shared -I /Users/steveworkman/src/moz-central/layout/forms -I /Users/steveworkman/src/moz-central/layout/generic -I /Users/steveworkman/src/moz-central/layout/xul/base/src -I /Users/steveworkman/src/moz-central/widget/cocoa -I . -I ../../dist/include -I /Users/steveworkman/src/moz-central/obj-ff-dbg/dist/include/nspr -I /Users/steveworkman/src/moz-central/obj-ff-dbg/dist/include/nss -fmodule-cache-path /var/folders/cy/6t1ryw8s64qg4znlr3fd9tf00000gn/T/clang-module-cache -Wall -Wpointer-arith -Woverloaded-virtual -Werror=return-type -Wtype-limits -Wempty-body -Wsign-compare -Wno-invalid-offsetof -Wno-c++0x-extensions -Wno-extended-offsetof -Wno-unknown-warning-option -Wno-return-type-c-linkage -Wno-mismatched-tags -std=gnu++0x -fdeprecated-macro -fdebug-compilation-dir /Users/steveworkman/src/moz-central/obj-ff-dbg/widget/cocoa -ferror-limit 19 -fmessage-length 0 -fvisibility hidden -pthread -stack-protector 1 -mstackrealign -fblocks -fno-rtti -fobjc-runtime=macosx-10.6.0 -fobjc-dispatch-method=mixed -fobjc-default-synthesize-properties -fencode-extended-block-signature -fobjc-exceptions -fexceptions -fdiagnostics-show-option -o nsChildView.o -x objective-c++ /Users/steveworkman/src/moz-central/widget/cocoa/nsChildView.mm
 8:12.11 1. /Users/steveworkman/src/moz-central/widget/cocoa/nsChildView.mm:6152:1: current parser token 'void'
 8:12.11 2. /Users/steveworkman/src/moz-central/widget/cocoa/nsChildView.mm:2718:15: LLVM IR generation of declaration 'globalDragPboard'
 8:12.42 nsIdleService.o
 8:12.57 clang: error: unable to execute command: Illegal instruction: 4
 8:12.57 clang: error: clang frontend command failed due to signal (use -v to see invocation)
 8:12.58 clang version 3.2 (tags/RELEASE_32/final)
 8:12.58 Target: x86_64-apple-darwin12.5.0
 8:12.58 Thread model: posix
 8:12.58 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.
 8:13.11 clang: note: diagnostic msg:
 8:13.11 ********************
 8:13.11
 8:13.11 PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
 8:13.11 Preprocessed source(s) and associated run script(s) are located at:
 8:13.11 clang: note: diagnostic msg: /var/folders/cy/6t1ryw8s64qg4znlr3fd9tf00000gn/T/nsChildView-Y0I5Cg.mm
 8:13.11 clang: note: diagnostic msg: /var/folders/cy/6t1ryw8s64qg4znlr3fd9tf00000gn/T/nsChildView-Y0I5Cg.sh
 8:13.12 clang: note: diagnostic msg:
 8:13.12
 8:13.12 ********************

NOTE: Preprocessed source and run script will be attached.

Clang Info:

$ clang -v
clang version 3.2 (tags/RELEASE_32/final)
Target: x86_64-apple-darwin12.5.0
Thread model: posix

$ sudo port select clang
Available versions for clang:
    mp-clang-3.2 (active)
    none
$ sudo port info clang-3.2
clang-3.2 @3.2_2 (lang)
Variants:             [+]analyzer, arm_runtime, assertions, python25, python26,
[+]python27, universal

Description:          Clang is an LLVM native C/C++/Objective-C compiler, which
aims to deliver amazingly fast compiles (e.g. about 3x
                      faster than GCC when compiling Objective-C code in a debug configuration), extremely useful error and warning
                      messages and to provide a platform for building great source level tools. The included Clang Static Analyzer is
                      a tool automatically finds bugs in your code, and is a great example of the sort of tool that can be built using
                      the Clang frontend as a library to parse C/C++ code.
Homepage:             http://clang.llvm.org/

Extract Dependencies: subversion
Library Dependencies: llvm-3.2, libffi
Runtime Dependencies: clang_select, ld64, perl5, python27
Platforms:            darwin
License:              NCSA
Maintainers:          jeremyhu@macports.org
Quuxplusone commented 10 years ago

Attached nsChildView-Y0I5Cg.sh (1111 bytes, text/x-sh): Associated run script

Quuxplusone commented 10 years ago

Preprocessed source:

https://dl.dropboxusercontent.com/u/55900279/nsChildView-Y0I5Cg.mm.gz

Quuxplusone commented 10 years ago

_This bug has been marked as a duplicate of bug 17651_