swiftlang / swift

The Swift Programming Language
https://swift.org
Apache License 2.0
67.66k stars 10.38k forks source link

[SR-13623] Source compat failure: siesta and siesta-legacy #56058

Open nathawes opened 4 years ago

nathawes commented 4 years ago
Previous ID SR-13623
Radar rdar://problem/69706270
Original Reporter @nathawes
Type Bug

Attachment: Download

Additional Detail from JIRA | | | |------------------|-----------------| |Votes | 0 | |Component/s | | |Labels | Bug, Crash | |Assignee | None | |Priority | Medium | md5: f4512166f600b66d40f48c469a9ed68e

Issue Description:

Siesta-legacy and Siesta both crashing while deserializing _objc_addObserver:

PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace.
Stack dump:
0. Program arguments: /Volumes/swift-ci/jenkins/workspace-private/swift-main-source-compat-suite/build/compat_macos/install/toolchain/usr/bin/swift-frontend -frontend -c /Volumes/swift-ci/jenkins/workspace/swift-main-source-compat-suite/swift-source-compat-suite/project_cache/siesta-legacy/Source/SiestaUI/Ω_UI_Deprecations.swift /Volumes/swift-ci/jenkins/workspace/swift-main-source-compat-suite/swift-source-compat-suite/project_cache/siesta-legacy/Source/SiestaUI/SiestaUI-ObjC.swift /Volumes/swift-ci/jenkins/workspace/swift-main-source-compat-suite/swift-source-compat-suite/project_cache/siesta-legacy/Source/SiestaUI/ResourceStatusOverlay.swift /Volumes/swift-ci/jenkins/workspace/swift-main-source-compat-suite/swift-source-compat-suite/project_cache/siesta-legacy/Source/Siesta/Support/Collection+Siesta.swift /Volumes/swift-ci/jenkins/workspace/swift-main-source-compat-suite/swift-source-compat-suite/project_cache/siesta-legacy/Source/SiestaUI/NetworkActivityIndicator.swift /Volumes/swift-ci/jenkins/workspace/swift-main-source-compat-suite/swift-source-compat-suite/project_cache/siesta-legacy/Source/SiestaUI/RemoteImageView.swift -supplementary-output-file-map /var/folders/_8/79jmzf2142z2xydc_01btlx00000gn/T/supplementaryOutputs-1f5e93 -target arm64-apple-ios8.0 -Xllvm -aarch64-use-tbi -enable-objc-interop -sdk /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.0.sdk -I /Volumes/swift-ci/jenkins/workspace/swift-main-source-compat-suite/swift-source-compat-suite/project_cache/siesta-legacy/build/Release-iphoneos -F /Volumes/swift-ci/jenkins/workspace/swift-main-source-compat-suite/swift-source-compat-suite/project_cache/siesta-legacy/build/Release-iphoneos -F /Volumes/swift-ci/jenkins/workspace/swift-main-source-compat-suite/swift-source-compat-suite/project_cache/siesta-legacy/Carthage/Build/iOS -g -import-underlying-module -swift-version 4 -enforce-exclusivity=checked -O -disable-swift3-objc-inference -serialize-debugging-options -Xcc -I/Volumes/swift-ci/jenkins/workspace/swift-main-source-compat-suite/swift-source-compat-suite/project_cache/siesta-legacy/build/Siesta.build/Release-iphoneos/SiestaUI iOS.build/swift-overrides.hmap -Xcc -iquote -Xcc /Volumes/swift-ci/jenkins/workspace/swift-main-source-compat-suite/swift-source-compat-suite/project_cache/siesta-legacy/build/Siesta.build/Release-iphoneos/SiestaUI iOS.build/SiestaUI-generated-files.hmap -Xcc -I/Volumes/swift-ci/jenkins/workspace/swift-main-source-compat-suite/swift-source-compat-suite/project_cache/siesta-legacy/build/Siesta.build/Release-iphoneos/SiestaUI iOS.build/SiestaUI-own-target-headers.hmap -Xcc -I/Volumes/swift-ci/jenkins/workspace/swift-main-source-compat-suite/swift-source-compat-suite/project_cache/siesta-legacy/build/Siesta.build/Release-iphoneos/SiestaUI iOS.build/SiestaUI-all-non-framework-target-headers.hmap -Xcc -ivfsoverlay -Xcc /Volumes/swift-ci/jenkins/workspace/swift-main-source-compat-suite/swift-source-compat-suite/project_cache/siesta-legacy/build/Siesta.build/Release-iphoneos/SiestaUI iOS.build/all-product-headers.yaml -Xcc -iquote -Xcc /Volumes/swift-ci/jenkins/workspace/swift-main-source-compat-suite/swift-source-compat-suite/project_cache/siesta-legacy/build/Siesta.build/Release-iphoneos/SiestaUI iOS.build/SiestaUI-project-headers.hmap -Xcc -I/Volumes/swift-ci/jenkins/workspace/swift-main-source-compat-suite/swift-source-compat-suite/project_cache/siesta-legacy/build/Release-iphoneos/include -Xcc -I/Volumes/swift-ci/jenkins/workspace/swift-main-source-compat-suite/swift-source-compat-suite/project_cache/siesta-legacy/build/Siesta.build/Release-iphoneos/SiestaUI iOS.build/DerivedSources-normal/arm64 -Xcc -I/Volumes/swift-ci/jenkins/workspace/swift-main-source-compat-suite/swift-source-compat-suite/project_cache/siesta-legacy/build/Siesta.build/Release-iphoneos/SiestaUI iOS.build/DerivedSources/arm64 -Xcc -I/Volumes/swift-ci/jenkins/workspace/swift-main-source-compat-suite/swift-source-compat-suite/project_cache/siesta-legacy/build/Siesta.build/Release-iphoneos/SiestaUI iOS.build/DerivedSources -Xcc -ivfsoverlay -Xcc /Volumes/swift-ci/jenkins/workspace/swift-main-source-compat-suite/swift-source-compat-suite/project_cache/siesta-legacy/build/Siesta.build/Release-iphoneos/SiestaUI iOS.build/unextended-module-overlay.yaml -Xcc -working-directory/Volumes/swift-ci/jenkins/workspace/swift-main-source-compat-suite/swift-source-compat-suite/project_cache/siesta-legacy -target-sdk-version 14.0 -module-name SiestaUI -num-threads 4 -o /Volumes/swift-ci/jenkins/workspace/swift-main-source-compat-suite/swift-source-compat-suite/project_cache/siesta-legacy/build/Siesta.build/Release-iphoneos/SiestaUI iOS.build/Objects-normal/arm64/Ω_UI_Deprecations.o -o /Volumes/swift-ci/jenkins/workspace/swift-main-source-compat-suite/swift-source-compat-suite/project_cache/siesta-legacy/build/Siesta.build/Release-iphoneos/SiestaUI iOS.build/Objects-normal/arm64/SiestaUI-ObjC.o -o /Volumes/swift-ci/jenkins/workspace/swift-main-source-compat-suite/swift-source-compat-suite/project_cache/siesta-legacy/build/Siesta.build/Release-iphoneos/SiestaUI iOS.build/Objects-normal/arm64/ResourceStatusOverlay.o -o /Volumes/swift-ci/jenkins/workspace/swift-main-source-compat-suite/swift-source-compat-suite/project_cache/siesta-legacy/build/Siesta.build/Release-iphoneos/SiestaUI iOS.build/Objects-normal/arm64/Collection+Siesta.o -o /Volumes/swift-ci/jenkins/workspace/swift-main-source-compat-suite/swift-source-compat-suite/project_cache/siesta-legacy/build/Siesta.build/Release-iphoneos/SiestaUI iOS.build/Objects-normal/arm64/NetworkActivityIndicator.o -o /Volumes/swift-ci/jenkins/workspace/swift-main-source-compat-suite/swift-source-compat-suite/project_cache/siesta-legacy/build/Siesta.build/Release-iphoneos/SiestaUI iOS.build/Objects-normal/arm64/RemoteImageView.o 
1. Apple Swift version 5.3-dev (LLVM 8d6dfcd39f3bc7d, Swift f8f40e01618b5df)
2. While evaluating request ExecuteSILPipelineRequest(Run pipelines { PrepareOptimizationPasses, EarlyModulePasses, HighLevel,Function+EarlyLoopOpt, HighLevel,Module+StackPromote, Serialize, MidLevel,Function, ClosureSpecialize, LowLevel,Function, LateLoopOpt, SIL Debug Info Generator } on SIL for SiestaUI.SiestaUI)
3. While evaluating request DirectLookupRequest(directly looking up 'deinit' on Siesta.(file).Resource with options { })
4. While loading members for extension of Resource (in module 'Siesta')
5. While deserializing '_objc_addObserver' (FuncDecl @ 1040676) in 'Siesta'
6. ...decl is named '_objc_addObserver(owner:block:)'
7. While deserializing 'block' (ParamDecl @ 1304864) in 'Siesta'
8. ...decl is named 'block'
0 swift-frontend 0x00000001145acdc5 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 37
1 swift-frontend 0x00000001145abd08 llvm::sys::RunSignalHandlers() + 248
2 swift-frontend 0x00000001145ad3a6 SignalHandler(int) + 262
3 libsystem_platform.dylib 0x00007fff7163a5fd _sigtramp + 29
4 libsystem_platform.dylib 0xfffffffffffffff8 _sigtramp + 18446603338613807640
5 swift-frontend 0x00000001106db52a clang::serialization::AbstractTypeReader<(anonymous namespace)::SwiftToClangBasicReader>::read(clang::Type::TypeClass) + 8762
6 swift-frontend 0x00000001106dfe8c llvm::ArrayRef<clang::QualType> clang::serialization::DataStreamBasicReader<(anonymous namespace)::SwiftToClangBasicReader>::readArray<clang::QualType>(llvm::SmallVectorImpl<clang::QualType>&) + 204
7 swift-frontend 0x00000001106db307 clang::serialization::AbstractTypeReader<(anonymous namespace)::SwiftToClangBasicReader>::read(clang::Type::TypeClass) + 8215
8 swift-frontend 0x00000001106dadac clang::serialization::AbstractTypeReader<(anonymous namespace)::SwiftToClangBasicReader>::read(clang::Type::TypeClass) + 6844
9 swift-frontend 0x00000001106cb832 swift::ModuleFile::getClangType(llvm::PointerEmbeddedInt<unsigned int, 31>) + 530
10 swift-frontend 0x00000001106d6744 swift::TypeDeserializer::deserializeAnyFunctionType(llvm::SmallVectorImpl<unsigned long long>&, llvm::StringRef, bool) + 308
11 swift-frontend 0x00000001106c830b swift::TypeDeserializer::getTypeCheckedImpl() + 571
12 swift-frontend 0x00000001106b82eb swift::ModuleFile::getTypeChecked(llvm::PointerEmbeddedInt<unsigned int, 31>) + 235
13 swift-frontend 0x00000001106b51db swift::ModuleFile::getType(llvm::PointerEmbeddedInt<unsigned int, 31>) + 27
14 swift-frontend 0x00000001106c43f8 swift::DeclDeserializer::deserializeParam(llvm::ArrayRef<unsigned long long>, llvm::StringRef) + 504
15 swift-frontend 0x00000001106bdbe6 swift::DeclDeserializer::getDeclCheckedImpl(llvm::function_ref<bool (swift::DeclAttributes)>) + 822
16 swift-frontend 0x00000001106b5406 swift::ModuleFile::getDeclChecked(llvm::PointerEmbeddedInt<unsigned int, 31>, llvm::function_ref<bool (swift::DeclAttributes)>) + 470
17 swift-frontend 0x00000001106b461d swift::ModuleFile::getDecl(llvm::PointerEmbeddedInt<unsigned int, 31>) + 29
18 swift-frontend 0x00000001106b44b8 swift::ModuleFile::readParameterList() + 264
19 swift-frontend 0x00000001106d4343 swift::DeclDeserializer::deserializeAnyFunc(llvm::ArrayRef<unsigned long long>, llvm::StringRef, bool) + 3187
20 swift-frontend 0x00000001106bdcf0 swift::DeclDeserializer::getDeclCheckedImpl(llvm::function_ref<bool (swift::DeclAttributes)>) + 1088
21 swift-frontend 0x00000001106b5406 swift::ModuleFile::getDeclChecked(llvm::PointerEmbeddedInt<unsigned int, 31>, llvm::function_ref<bool (swift::DeclAttributes)>) + 470
22 swift-frontend 0x00000001106cc091 swift::ModuleFile::loadAllMembers(swift::Decl*, unsigned long long) + 609
23 swift-frontend 0x0000000110e56be0 swift::IterableDeclContext::loadAllMembers() const + 336
24 swift-frontend 0x0000000110e56a7e swift::IterableDeclContext::getMembers() const + 14
25 swift-frontend 0x0000000110efc569 swift::DirectLookupRequest::evaluate(swift::Evaluator&, swift::DirectLookupDescriptor) const + 745
26 swift-frontend 0x0000000110f15ff1 swift::SimpleRequest<swift::DirectLookupRequest, llvm::TinyPtrVector<swift::ValueDecl*> (swift::DirectLookupDescriptor), (swift::RequestFlags)17>::evaluateRequest(swift::DirectLookupRequest const&, swift::Evaluator&) + 33
27 swift-frontend 0x0000000110f0dcab llvm::Expected<swift::DirectLookupRequest::OutputType> swift::Evaluator::getResultUncached<swift::DirectLookupRequest>(swift::DirectLookupRequest const&) + 363
28 swift-frontend 0x0000000110efc0f0 swift::DirectLookupRequest::OutputType swift::evaluateOrDefault<swift::DirectLookupRequest>(swift::Evaluator&, swift::DirectLookupRequest, swift::DirectLookupRequest::OutputType) + 32
29 swift-frontend 0x0000000110efc08a swift::NominalTypeDecl::lookupDirect(swift::DeclName, swift::OptionSet<swift::NominalTypeDecl::LookupDirectFlags, unsigned int>) + 122
30 swift-frontend 0x0000000110f1561f swift::GetDestructorRequest::getCachedResult() const + 31
31 swift-frontend 0x0000000110e1c050 llvm::Expected<swift::GetDestructorRequest::OutputType> swift::Evaluator::getResultCached<swift::GetDestructorRequest, (void*)0>(swift::GetDestructorRequest const&) + 32
32 swift-frontend 0x0000000110ddb165 swift::GetDestructorRequest::OutputType swift::evaluateOrDefault<swift::GetDestructorRequest>(swift::Evaluator&, swift::GetDestructorRequest, swift::GetDestructorRequest::OutputType) + 37
33 swift-frontend 0x000000011020c7c3 swift::CalleeCache::getCalleeList(swift::SILInstruction*) const + 259
34 swift-frontend 0x00000001102302fd swift::BottomUpFunctionOrder::DFS(swift::SILFunction*) + 685
35 swift-frontend 0x00000001104311e4 swift::SILPassManager::runFunctionPasses(unsigned int, unsigned int) + 420
36 swift-frontend 0x0000000110436c8c swift::SILPassManager::execute() + 636
37 swift-frontend 0x000000011042e928 swift::SILPassManager::executePassPipelinePlan(swift::SILPassPipelinePlan const&) + 72
38 swift-frontend 0x000000011042e8c3 swift::ExecuteSILPipelineRequest::evaluate(swift::Evaluator&, swift::SILPipelineExecutionDescriptor) const + 51
39 swift-frontend 0x0000000110451c0d swift::SimpleRequest<swift::ExecuteSILPipelineRequest, std::__1::tuple<> (swift::SILPipelineExecutionDescriptor), (swift::RequestFlags)1>::evaluateRequest(swift::ExecuteSILPipelineRequest const&, swift::Evaluator&) + 29
40 swift-frontend 0x0000000110439297 llvm::Expected<swift::ExecuteSILPipelineRequest::OutputType> swift::Evaluator::getResultUncached<swift::ExecuteSILPipelineRequest>(swift::ExecuteSILPipelineRequest const&) + 375
41 swift-frontend 0x000000011042eb54 swift::executePassPipelinePlan(swift::SILModule*, swift::SILPassPipelinePlan const&, bool, swift::irgen::IRGenModule*) + 68
42 swift-frontend 0x000000011043c517 swift::runSILOptimizationPasses(swift::SILModule&) + 151
43 swift-frontend 0x000000010fe90cbb swift::CompilerInstance::performSILProcessing(swift::SILModule*) + 587
44 swift-frontend 0x000000010fd83a5a performCompileStepsPostSILGen(swift::CompilerInstance&, std::__1::unique_ptr<swift::SILModule, std::__1::default_delete<swift::SILModule> >, llvm::PointerUnion<swift::ModuleDecl*, swift::SourceFile*>, swift::PrimarySpecificPaths const&, int&, swift::FrontendObserver*) + 890
45 swift-frontend 0x000000010fd834bc performCompileStepsPostSema(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 636
46 swift-frontend 0x000000010fd7ba51 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 4625
47 swift-frontend 0x000000010fd1401e main + 846
48 libdyld.dylib 0x00007fff71441cc9 start + 1
error: Segmentation fault: 11 (in target 'SiestaUI iOS' from project 'Siesta')
** BUILD FAILED **

Logs attached.

nathawes commented 4 years ago

@swift-ci create

nathawes commented 4 years ago

xfailing here: https://github.com/apple/swift-source-compat-suite/pull/460