Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

Assertion failed compiling WebKit on OS X Mavericks: (found && "Losing a member during member list replacement"), function VerifySubsetOf #17045

Closed Quuxplusone closed 11 years ago

Quuxplusone commented 11 years ago
Bugzilla Link PR17046
Status RESOLVED FIXED
Importance P normal
Reported by David Farler (dfarler@apple.com)
Reported on 2013-08-30 19:47:46 -0700
Last modified on 2013-09-06 01:45:37 -0700
Version trunk
Hardware Macintosh MacOS X
CC dblaikie@gmail.com, ddkilzer@kilzer.net, echristo@gmail.com, llvm-bugs@lists.llvm.org, rafael@espindo.la
Fixed by commit(s)
Attachments DeviceController-c64e39.sh (3528 bytes, application/x-sh)
DeviceController-c64e39.cpp.gz (469354 bytes, application/x-gzip)
Blocks
Blocked by
See also
Created attachment 11121
Diagnostic run script

CompileC /Volumes/Data/BuildSlave/build-asan-
webkit/OpenSource/WebKitBuild/WebCore.build/Debug/WebCore.build/Objects-
normal/x86_64/DeviceController.o page/DeviceController.cpp normal x86_64 c++
com.apple.compilers.llvm.clang.1_0.compiler
    cd /Volumes/Data/BuildSlave/build-asan-webkit/OpenSource/Source/WebCore
    /Volumes/Data/BuildSlave/build-asan-webkit/Xcode.app/Contents/Developer/Toolchains/OSX10.9.xctoolchain/usr/bin/clang -x c++ -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu++11 -stdlib=libc++ -Wno-trigraphs -fno-exceptions -fno-rtti -fpascal-strings -O0 -Wno-missing-field-initializers -Wmissing-prototypes -Wno-return-type -Wnon-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wsign-compare -Wno-shorten-64-to-32 -Wnewline-eof -Wno-c++11-extensions -DDISABLE_THREAD_CHECK -DENABLE_3D_RENDERING -DENABLE_BLOB -DENABLE_CACHE_PARTITIONING -DENABLE_CANVAS_PATH -DENABLE_CHANNEL_MESSAGING -DENABLE_CSS_BOX_DECORATION_BREAK -DENABLE_CSS_EXCLUSIONS -DENABLE_CSS_FILTERS -DENABLE_CSS_REGIONS -DENABLE_CSS_SHADERS -DENABLE_CSS_COMPOSITING -DENABLE_CSS_SHAPES -DENABLE_CSS_STICKY_POSITION -DENABLE_CSS_TRANSFORMS_ANIMATIONS_UNPREFIXED -DENABLE_CURSOR_VISIBILITY -DENABLE_DASHBOARD_SUPPORT -DENABLE_DETAILS_ELEMENT -DENABLE_DOM4_EVENTS_CONSTRUCTOR -DENABLE_ENCRYPTED_MEDIA -DENABLE_ENCRYPTED_MEDIA_V2 -DENABLE_FILTERS -DENABLE_FULLSCREEN_API -DENABLE_GEOLOCATION -DENABLE_HIDDEN_PAGE_DOM_TIMER_THROTTLING -DENABLE_ICONDATABASE -DENABLE_IFRAME_SEAMLESS -DENABLE_INDIE_UI -DENABLE_INPUT_TYPE_COLOR -DENABLE_JAVASCRIPT_DEBUGGER -DENABLE_LEGACY_CSS_VENDOR_PREFIXES -DENABLE_LEGACY_NOTIFICATIONS -DENABLE_LEGACY_VENDOR_PREFIXES -DENABLE_LEGACY_WEB_AUDIO -DENABLE_MATHML -DENABLE_METER_ELEMENT -DENABLE_MOUSE_CURSOR_SCALE -DENABLE_NOTIFICATIONS -DENABLE_PAGE_VISIBILITY_API -DENABLE_PDFKIT_PLUGIN -DENABLE_PROGRESS_ELEMENT -DENABLE_PROMISES -DENABLE_PUBLIC_SUFFIX_LIST -DENABLE_REQUEST_ANIMATION_FRAME -DENABLE_SHARED_WORKERS -DENABLE_SPEECH_SYNTHESIS -DENABLE_SQL_DATABASE -DENABLE_SVG -DENABLE_SVG_FONTS -DENABLE_USERSELECT_ALL -DENABLE_VIDEO -DENABLE_VIDEO_TRACK -DENABLE_WEBGL -DENABLE_WEB_AUDIO -DENABLE_WEB_SOCKETS -DENABLE_WORKERS -DENABLE_XHR_TIMEOUT -DENABLE_XSLT -DWEBKIT_VERSION_MIN_REQUIRED=WEBKIT_VERSION_LATEST -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -mmacosx-version-min=10.9 -g -fvisibility-inlines-hidden -fno-threadsafe-statics -Wno-sign-conversion -I/Volumes/Data/BuildSlave/build-asan-webkit/OpenSource/WebKitBuild/WebCore.build/Debug/WebCore.build/WebCore.hmap -I/Volumes/Data/BuildSlave/build-asan-webkit/OpenSource/WebKitBuild/Debug/include -IForwardingHeaders -Iicu -I/usr/include/libxslt -I/usr/include/libxml2 -I/Volumes/Data/BuildSlave/build-asan-webkit/OpenSource/WebKitBuild/Debug/DerivedSources/WebCore -I/Volumes/Data/BuildSlave/build-asan-webkit/OpenSource/WebKitBuild/Debug/usr/local/include -I/Volumes/Data/BuildSlave/build-asan-webkit/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Volumes/Data/BuildSlave/build-asan-webkit/OpenSource/WebKitBuild/WebCore.build/Debug/WebCore.build/DerivedSources/x86_64 -I/Volumes/Data/BuildSlave/build-asan-webkit/OpenSource/WebKitBuild/WebCore.build/Debug/WebCore.build/DerivedSources -Wall -Wextra -Wcast-qual -Wchar-subscripts -Wextra-tokens -Wformat=2 -Winit-self -Wmissing-format-attribute -Wmissing-noreturn -Wpacked -Wpointer-arith -Wredundant-decls -Wundef -Wwrite-strings -Wexit-time-destructors -Wglobal-constructors -Wtautological-compare -F/Volumes/Data/BuildSlave/build-asan-webkit/OpenSource/WebKitBuild/Debug -F/System/Library/Frameworks/Carbon.framework/Frameworks -F/System/Library/Frameworks/ApplicationServices.framework/Frameworks -F/System/Library/Frameworks/CoreServices.framework/Frameworks -fsanitize=address -O1 -mllvm -asan-blacklist=/Volumes/Data/BuildSlave/build-asan-webkit/OpenSource/Tools/asan/webkit-asan-ignore.txt -Wno-error -fno-omit-frame-pointer -g -DUSE_SYSTEM_MALLOC=1 -include /Volumes/Data/BuildSlave/build-asan-webkit/OpenSource/WebKitBuild/PrecompiledHeaders/WebCorePrefix-eifximwijutwiwbabtrwaltkjbqa/WebCorePrefix.h -MMD -MT dependencies -MF /Volumes/Data/BuildSlave/build-asan-webkit/OpenSource/WebKitBuild/WebCore.build/Debug/WebCore.build/Objects-normal/x86_64/DeviceController.d --serialize-diagnostics /Volumes/Data/BuildSlave/build-asan-webkit/OpenSource/WebKitBuild/WebCore.build/Debug/WebCore.build/Objects-normal/x86_64/DeviceController.dia -c /Volumes/Data/BuildSlave/build-asan-webkit/OpenSource/Source/WebCore/page/DeviceController.cpp -o /Volumes/Data/BuildSlave/build-asan-webkit/OpenSource/WebKitBuild/WebCore.build/Debug/WebCore.build/Objects-normal/x86_64/DeviceController.o
Assertion failed: (found && "Losing a member during member list replacement"),
function VerifySubsetOf, file /Volumes/Data/BuildSlave/build-trunk-
clang/llvm/lib/IR/DebugInfo.cpp, line 662.
0  clang                    0x000000010850b518
llvm::sys::PrintStackTrace(__sFILE*) + 40
1  clang                    0x000000010850ba14 SignalHandler(int) + 548
2  libsystem_platform.dylib 0x00007fff8e3e75aa _sigtramp + 26
3  libsystem_platform.dylib 000000000000000000 _sigtramp + 1908509296
4  clang                    0x000000010850b7d6 abort + 22
5  clang                    0x000000010850b7b1 __assert_rtn + 81
6  clang                    0x000000010842bfe0
llvm::DICompositeType::setTypeArray(llvm::DIArray, llvm::DIArray) + 688
7  clang                    0x0000000106d3d0dc
clang::CodeGen::CGDebugInfo::getOrCreateLimitedType(clang::RecordType const*,
llvm::DIFile) + 124
8  clang                    0x0000000106d412b2
clang::CodeGen::CGDebugInfo::CreateTypeDefinition(clang::RecordType const*) + 82
9  clang                    0x0000000106d41092
clang::CodeGen::CGDebugInfo::completeClassData(clang::RecordDecl const*) + 226
10 clang                    0x0000000106dedfe8
clang::CodeGen::CodeGenVTables::GenerateClassData(clang::CXXRecordDecl const*)
+ 40
11 clang                    0x0000000106dee33b
clang::CodeGen::CodeGenModule::EmitDeferredVTables() + 123
12 clang                    0x0000000106df9903
clang::CodeGen::CodeGenModule::EmitDeferred() + 51
13 clang                    0x0000000106df9761
clang::CodeGen::CodeGenModule::Release() + 17
14 clang                    0x0000000106df163e
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 94
15 clang                    0x0000000106e3e534 clang::ParseAST(clang::Sema&,
bool, bool) + 516
16 clang                    0x0000000106df063a
clang::CodeGenAction::ExecuteAction() + 122
17 clang                    0x0000000106babc36 clang::FrontendAction::Execute()
+ 134
18 clang                    0x0000000106b880ed
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 973
19 clang                    0x0000000106b506f7
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 4391
20 clang                    0x0000000106b48643 cc1_main(char const**, char
const**, char const*, void*) + 835
21 clang                    0x0000000106b4e618 main + 8072
22 libdyld.dylib            0x00007fff907e75fd start + 1
23 libdyld.dylib            0x0000000000000109 start + 1870760717
Stack dump:
0.  Program arguments: /Volumes/Data/BuildSlave/build-trunk-
clang/build/Release+Asserts/bin/clang -cc1 -triple x86_64-apple-macosx10.9.0 -
emit-obj -disable-free -main-file-name DeviceController.cpp -mrelocation-model
pic -pic-level 2 -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu
core2 -target-linker-version 142 -gdwarf-2 -coverage-file
/Volumes/Data/BuildSlave/build-asan-
webkit/OpenSource/WebKitBuild/WebCore.build/Debug/WebCore.build/Objects-
normal/x86_64/DeviceController.o -resource-dir /Volumes/Data/BuildSlave/build-
trunk-clang/build/Release+Asserts/bin/../lib/clang/3.4 -dependency-file
/Volumes/Data/BuildSlave/build-asan-
webkit/OpenSource/WebKitBuild/WebCore.build/Debug/WebCore.build/Objects-
normal/x86_64/DeviceController.d -MT dependencies -include-pch
/Volumes/Data/BuildSlave/build-asan-
webkit/OpenSource/WebKitBuild/PrecompiledHeaders/WebCorePrefix-
eifximwijutwiwbabtrwaltkjbqa/WebCorePrefix.h.pch -D DISABLE_THREAD_CHECK -D
ENABLE_3D_RENDERING -D ENABLE_BLOB -D ENABLE_CACHE_PARTITIONING -D
ENABLE_CANVAS_PATH -D ENABLE_CHANNEL_MESSAGING -D
ENABLE_CSS_BOX_DECORATION_BREAK -D ENABLE_CSS_EXCLUSIONS -D ENABLE_CSS_FILTERS -
D ENABLE_CSS_REGIONS -D ENABLE_CSS_SHADERS -D ENABLE_CSS_COMPOSITING -D
ENABLE_CSS_SHAPES -D ENABLE_CSS_STICKY_POSITION -D
ENABLE_CSS_TRANSFORMS_ANIMATIONS_UNPREFIXED -D ENABLE_CURSOR_VISIBILITY -D
ENABLE_DASHBOARD_SUPPORT -D ENABLE_DETAILS_ELEMENT -D
ENABLE_DOM4_EVENTS_CONSTRUCTOR -D ENABLE_ENCRYPTED_MEDIA -D
ENABLE_ENCRYPTED_MEDIA_V2 -D ENABLE_FILTERS -D ENABLE_FULLSCREEN_API -D
ENABLE_GEOLOCATION -D ENABLE_HIDDEN_PAGE_DOM_TIMER_THROTTLING -D
ENABLE_ICONDATABASE -D ENABLE_IFRAME_SEAMLESS -D ENABLE_INDIE_UI -D
ENABLE_INPUT_TYPE_COLOR -D ENABLE_JAVASCRIPT_DEBUGGER -D
ENABLE_LEGACY_CSS_VENDOR_PREFIXES -D ENABLE_LEGACY_NOTIFICATIONS -D
ENABLE_LEGACY_VENDOR_PREFIXES -D ENABLE_LEGACY_WEB_AUDIO -D ENABLE_MATHML -D
ENABLE_METER_ELEMENT -D ENABLE_MOUSE_CURSOR_SCALE -D ENABLE_NOTIFICATIONS -D
ENABLE_PAGE_VISIBILITY_API -D ENABLE_PDFKIT_PLUGIN -D ENABLE_PROGRESS_ELEMENT -
D ENABLE_PROMISES -D ENABLE_PUBLIC_SUFFIX_LIST -D
ENABLE_REQUEST_ANIMATION_FRAME -D ENABLE_SHARED_WORKERS -D
ENABLE_SPEECH_SYNTHESIS -D ENABLE_SQL_DATABASE -D ENABLE_SVG -D
ENABLE_SVG_FONTS -D ENABLE_USERSELECT_ALL -D ENABLE_VIDEO -D ENABLE_VIDEO_TRACK
-D ENABLE_WEBGL -D ENABLE_WEB_AUDIO -D ENABLE_WEB_SOCKETS -D ENABLE_WORKERS -D
ENABLE_XHR_TIMEOUT -D ENABLE_XSLT -D
WEBKIT_VERSION_MIN_REQUIRED=WEBKIT_VERSION_LATEST -D USE_SYSTEM_MALLOC=1 -I
/Volumes/Data/BuildSlave/build-asan-
webkit/OpenSource/WebKitBuild/WebCore.build/Debug/WebCore.build/WebCore.hmap -I
/Volumes/Data/BuildSlave/build-asan-webkit/OpenSource/WebKitBuild/Debug/include
-I ForwardingHeaders -I icu -I /usr/include/libxslt -I /usr/include/libxml2 -I
/Volumes/Data/BuildSlave/build-asan-
webkit/OpenSource/WebKitBuild/Debug/DerivedSources/WebCore -I
/Volumes/Data/BuildSlave/build-asan-
webkit/OpenSource/WebKitBuild/Debug/usr/local/include -I
/Volumes/Data/BuildSlave/build-asan-
webkit/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
-I /Volumes/Data/BuildSlave/build-asan-
webkit/OpenSource/WebKitBuild/WebCore.build/Debug/WebCore.build/DerivedSources/x86_64
-I /Volumes/Data/BuildSlave/build-asan-
webkit/OpenSource/WebKitBuild/WebCore.build/Debug/WebCore.build/DerivedSources -
F/Volumes/Data/BuildSlave/build-asan-webkit/OpenSource/WebKitBuild/Debug -
F/System/Library/Frameworks/Carbon.framework/Frameworks -
F/System/Library/Frameworks/ApplicationServices.framework/Frameworks -
F/System/Library/Frameworks/CoreServices.framework/Frameworks -stdlib=libc++ -
O1 -Wno-trigraphs -Wno-missing-field-initializers -Wmissing-prototypes -Wno-
return-type -Wnon-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-
destructors -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -
Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-
empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-
constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-
bool-conversion -Wno-enum-conversion -Wsign-compare -Wno-shorten-64-to-32 -
Wnewline-eof -Wno-c++11-extensions -Wdeprecated-declarations -Winvalid-offsetof
-Wno-sign-conversion -Wall -Wextra -Wcast-qual -Wchar-subscripts -Wextra-tokens
-Wformat=2 -Winit-self -Wmissing-format-attribute -Wmissing-noreturn -Wpacked -
Wpointer-arith -Wredundant-decls -Wundef -Wwrite-strings -Wexit-time-
destructors -Wglobal-constructors -Wtautological-compare -Wno-error -
std=gnu++11 -fconst-strings -fdeprecated-macro -fdebug-compilation-dir
/Volumes/Data/BuildSlave/build-asan-webkit/OpenSource/Source/WebCore -ferror-
limit 19 -fmacro-backtrace-limit 0 -fmessage-length 0 -fvisibility-inlines-
hidden -fsanitize=address,init-order -stack-protector 1 -mstackrealign -fblocks
-fno-rtti -fno-threadsafe-statics -fobjc-runtime=macosx-10.9.0 -fobjc-dispatch-
method=mixed -fobjc-default-synthesize-properties -fencode-extended-block-
signature -fpascal-strings -fdiagnostics-show-option -fdiagnostics-show-note-
include-stack -fasm-blocks -vectorize-slp -serialize-diagnostic-file
/Volumes/Data/BuildSlave/build-asan-
webkit/OpenSource/WebKitBuild/WebCore.build/Debug/WebCore.build/Objects-
normal/x86_64/DeviceController.dia -mllvm -asan-
blacklist=/Volumes/Data/BuildSlave/build-asan-
webkit/OpenSource/Tools/asan/webkit-asan-ignore.txt -o
/Volumes/Data/BuildSlave/build-asan-
webkit/OpenSource/WebKitBuild/WebCore.build/Debug/WebCore.build/Objects-
normal/x86_64/DeviceController.o -x c++ /Volumes/Data/BuildSlave/build-asan-
webkit/OpenSource/Source/WebCore/page/DeviceController.cpp
1.  <eof> parser at end of file
2.  Per-file LLVM IR generation
clang: error: unable to execute command: Illegal instruction: 4
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.4 (trunk 189688)
Target: x86_64-apple-darwin13.0.0
Thread model: posix
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.
clang: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg:
/var/folders/_v/x1qy0srd07x70lxy1qdym__h0000gn/T/DeviceController-c64e39.cpp
clang: note: diagnostic msg:
/var/folders/_v/x1qy0srd07x70lxy1qdym__h0000gn/T/DeviceController-c64e39.sh
clang: note: diagnostic msg:

********************
Quuxplusone commented 11 years ago

Attached DeviceController-c64e39.sh (3528 bytes, application/x-sh): Diagnostic run script

Quuxplusone commented 11 years ago

Attached DeviceController-c64e39.cpp.gz (469354 bytes, application/x-gzip): Diagnostic preprocessed source

Quuxplusone commented 11 years ago
Steps to reproduce:

svn checkout https://svn.webkit.org/repository/webkit/trunk WebKit
cd WebKit
make debug "ARGS=-xcconfig $PWD/Tools/asan/asan.xcconfig
ASAN_IGNORE=$PWD/Tools/asan/webkit-asan-ignore.txt
DEBUG_INFORMATION_FORMAT=dwarf-with-dsym'

In order for Xcode to use your built trunk clang, you need symlinks to it at:
/Applications/Xcode.app/Contents/Developer/Toolchains/*.xctoolchain/usr/bin/clang
Quuxplusone commented 11 years ago
(In reply to comment #2)
> Steps to reproduce:
>
> svn checkout https://svn.webkit.org/repository/webkit/trunk WebKit
> cd WebKit
> make debug "ARGS=-xcconfig $PWD/Tools/asan/asan.xcconfig
> ASAN_IGNORE=$PWD/Tools/asan/webkit-asan-ignore.txt
> DEBUG_INFORMATION_FORMAT=dwarf-with-dsym'
>
> In order for Xcode to use your built trunk clang, you need symlinks to it at:
> /Applications/Xcode.app/Contents/Developer/Toolchains/*.xctoolchain/usr/bin/
> clang

The make invocation should be:

make debug ARGS="-xcconfig $PWD/Tools/asan/asan.xcconfig
ASAN_IGNORE=$PWD/Tools/asan/webkit-asan-ignore.txt
DEBUG_INFORMATION_FORMAT=dwarf-with-dsym"
Quuxplusone commented 11 years ago

Great! Thanks for the report, I'll look into it

Quuxplusone commented 11 years ago

Thanks, David. This is blocking our bring-up of building and testing open source WebKit with address sanitization; is there any chance you will be able to look at this soon? We’ve had various build failures for the past few weeks and unfortunately I don’t have a revision that I can park/roll back yet.

Quuxplusone commented 11 years ago

Yep, looking at this now/tomorrow.

Quuxplusone commented 11 years ago

Fixed in r190122

Sorry for the delay/breakage. Thanks for the report.