swiftlang / swift

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

[SR-13177] Xcode quit unexpectedly while using the libSwiftPM.dylib plug-in #55479

Open swift-ci opened 4 years ago

swift-ci commented 4 years ago
Previous ID SR-13177
Radar None
Original Reporter MattYuma (JIRA User)
Type Bug
Environment LLBuildValue: ###dataCorrupted(Swift.DecodingError.Context(codingPath: [], debugDescription: "Did not find a matching key", underlyingError: nil))### ----- ###\{"env":{"__CF_USER_TEXT_ENCODING":"0x1F5:0x0:0x52","CA_ASSERT_MAIN_THREAD_TRANSACTIONS":"1","CA_DEBUG_TRANSACTIONS":"1","COMMAND_MODE":"unix2003","HOME":"\/Users\/yumatechnical","LaunchInstanceID":"89984906-7D2C-47C0-88BE-64190391B319","LOGNAME":"yumatechnical","MallocNanoZone":"0","PATH":"\/Applications\/Xcode.app\/Contents\/Developer\/usr\/bin:\/usr\/bin:\/bin:\/usr\/sbin:\/sbin","SECURITYSESSIONID":"186a6","SHELL":"\/bin\/zsh","SQLITE_EXEMPT_PATH_FROM_VNODE_GUARDS":"\/Users\/yumatechnical\/Library\/WebKit\/Databases","SSH_AUTH_SOCK":"\/private\/tmp\/com.apple.launchd.ETphSwhprD\/Listeners","TMPDIR":"\/var\/folders\/33\/jt1rxgt51bzd6hyl2f_hgxsr0000gn\/T\/","USER":"yumatechnical","XPC_FLAGS":"0x0","XPC_SERVICE_NAME":"com.apple.xpc.launchd.oneshot.0x10000000.Xcode"}}###: file /Library/Caches/com.apple.xbs/Sources/swiftpm/swiftpm-16074.1/Sources/SPMLLBuild/llbuild.swift, line 232 Thread 0:: Dispatch queue: com.apple.main-thread0 libsystem_kernel.dylib 0x00007fff662132ae semaphore_timedwait_trap + 101 libdispatch.dylib 0x00007fff66079a1b _dispatch_sema4_timedwait + 762 libdispatch.dylib 0x00007fff66079e42 _dispatch_semaphore_wait_slow + 583 com.apple.AppKit 0x00007fff2be6b4a4 -[NSXPCSpellServerClientContext finish] + 994 com.apple.AppKit 0x00007fff2c0dd832 -[NSXPCSpellServerClient _findMisspelledWordInString:language:learnedDictionaries:wordCount:countOnly:] + 3095 com.apple.AppKit 0x00007fff2c3592b7 -[NSSpellChecker _chunkAndFindMisspelledWordInString:language:learnedDictionaries:wordCount:usingSpellServer:] + 1646 com.apple.AppKit 0x00007fff2c359f2c -[NSSpellChecker _checkSpellingOfString:startingAt:language:wrap:inSpellDocumentWithTag:wordCount:reconnectOnError:] + 7267 com.apple.AppKit 0x00007fff2c35a1e0 -[NSSpellChecker checkSpellingOfString:startingAt:language:wrap:inSpellDocumentWithTag:wordCount:reconnectOnError:] + 1168 com.apple.AppKit 0x00007fff2c35a227 -[NSSpellChecker checkSpellingOfString:startingAt:language:wrap:inSpellDocumentWithTag:wordCount:] + 609 com.apple.dt.SourceEditor 0x000000011f606b0c SourceEditorSpellChecker.spellCheckingResults(from:language:) + 79610 com.apple.dt.SourceEditor 0x000000011f6064a4 SourceEditorSpellChecker.spellCheckingResults(from:language:) + 35611 com.apple.dt.SourceEditor 0x000000011f605f27 closure #​1 in closure #​1 in SourceEditorSpellChecker.checkSpellingIn(lineRange:) + 18312 com.apple.dt.SourceEditor 0x000000011f2df679 thunk for @escaping @callee_guaranteed () -> () + 2513 libdispatch.dylib 0x00007fff66078583 _dispatch_call_block_and_release + 1214 libdispatch.dylib 0x00007fff6607950e _dispatch_client_callout + 815 libdispatch.dylib 0x00007fff66084bc4 _dispatch_main_queue_callback_4CF + 110516 com.apple.CoreFoundation 0x00007fff2ea6de00 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 917 com.apple.CoreFoundation 0x00007fff2ea2db8a __CFRunLoopRun + 237018 com.apple.CoreFoundation 0x00007fff2ea2cbd3 CFRunLoopRunSpecific + 49919 com.apple.HIToolbox 0x00007fff2d58265d RunCurrentEventLoopInMode + 29220 com.apple.HIToolbox 0x00007fff2d58239d ReceiveNextEventCommon + 60021 com.apple.HIToolbox 0x00007fff2d582127 _BlockUntilNextEventMatchingListInModeWithFilter + 6422 com.apple.AppKit 0x00007fff2bbf2ba4 _DPSNextEvent + 99023 com.apple.AppKit 0x00007fff2bbf1380 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 135224 com.apple.dt.DVTKit 0x0000000103843153 -[DVTApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 39025 com.apple.AppKit 0x00007fff2bbe309e -[NSApplication run] + 65826 com.apple.AppKit 0x00007fff2bbb5465 NSApplicationMain + 77727 com.apple.dt.Xcode 0x0000000102c77dd5 main + 74128 libdyld.dylib 0x00007fff660d27fd start + 1 Thread 1:: Dispatch queue: IDETextFragmentProviderQueue0 libsystem_kernel.dylib 0x00007fff66213c7e read + 101 com.apple.Foundation 0x00007fff3109c894 _NSReadFromFileDescriptorWithProgress + 2322 com.apple.Foundation 0x00007fff310956b2 _NSReadBytesFromFileWithExtendedAttributes + 8313 com.apple.Foundation 0x00007fff311b2d0f ~~[NSString initWithContentsOfFile:usedEncoding:error:] + 1234 com.apple.Foundation 0x00007fff311b29a3 [NSString stringWithContentsOfURL:usedEncoding:error:] + 615 com.apple.dt.IDEFoundation 0x0000000103f0835d IDEPlainTextTextFragmentProviderTextForFile + 2956 com.apple.dt.IDEFoundation 0x0000000103f0869f +[IDEPlainTextTextFragmentProvider generateTextFragmentProviderSeedForFilePath:completionHandler:] + 1207 com.apple.dt.IDEFoundation 0x0000000103e26ee0 __83[IDETextFragmentIndex runProvider:forFilePath:initialTimestamp:completionHandler:]_block_invoke_2 + 1988 com.apple.dt.DVTFoundation 0x0000000103156ee5 __51~~[DVTThrottledConcurrentQueue processQueueIfNeeded]_block_invoke + 719 com.apple.dt.DVTFoundation 0x00000001031e97f4 __DVT_CALLING_CLIENT_BLOCK__ + 710 com.apple.dt.DVTFoundation 0x00000001031eb436 __DVTDispatchAsync_block_invoke + 119411 libdispatch.dylib 0x00007fff66078583 _dispatch_call_block_and_release + 1212 libdispatch.dylib 0x00007fff6607950e _dispatch_client_callout + 813 libdispatch.dylib 0x00007fff6607b6c0 _dispatch_continuation_pop + 41414 libdispatch.dylib 0x00007fff6607adbe _dispatch_async_redirect_invoke + 70315 libdispatch.dylib 0x00007fff660877e2 _dispatch_root_queue_drain + 32616 libdispatch.dylib 0x00007fff66087f22 _dispatch_worker_thread2 + 9217 libsystem_pthread.dylib 0x00007fff662d36b6 _pthread_wqthread + 22018 libsystem_pthread.dylib 0x00007fff662d2827 start_wqthread + 15
Additional Detail from JIRA | | | |------------------|-----------------| |Votes | 1 | |Component/s | | |Labels | Bug | |Assignee | None | |Priority | Medium | md5: 3bbf8a86ff95fbcdd8135509f164baf9

Issue Description:

Process: Xcode [456]Process: Xcode [456]Path: /Applications/Xcode.app/Contents/MacOS/XcodeIdentifier: com.apple.dt.XcodeVersion: 11.5 (16139)Build Info: IDEFrameworks-16139000000000000\~62 (11E608c)App Item ID: 497799835App External ID: 835814967Code Type: X86-64 (Native)Parent Process: — ? [1]Responsible: Xcode [456]User ID: 501
PlugIn Path: /Applications/Xcode.app/Contents/PlugIns/IDESwiftPackageSupport.ideplugin/Contents/Frameworks/SwiftPM.framework/Versions/A/Libraries/libSwiftPM.dylibPlugIn Identifier: libSwiftPM.dylibPlugIn Version:
? (16074.1)
Date/Time: 2020-06-17 10:03:49.631 -0400OS Version: Mac OS X 10.15.3 (19D76)Report Version: 12Anonymous UUID: E78E69AD-FDF9-196F-BBF3-ED0F0A6C2673

Time Awake Since Boot: 40 seconds
System Integrity Protection: disabled
Crashed Thread: 2 Dispatch queue: -[IDEExecutionEnvironment initWithWorkspaceArena:] (QOS: UNSPECIFIED)
Exception Type: EXC_BAD_INSTRUCTION (SIGILL)Exception Codes: 0x0000000000000001, 0x0000000000000000Exception Note: EXC_CORPSE_NOTIFY
Termination Signal: Illegal instruction: 4Termination Reason: Namespace SIGNAL, Code 0x4Terminating Process: exc handler [456]
Application Specific Information:ProductBuildVersion: 11E608cFatal error: Please file a bug at https://bugs.swift.org with this info --

83b09dda-53f5-4663-b44c-87fd2a9a8717 commented 4 years ago

This seems unrelated to tensorflow. If so, could you move it to the SR JIRA project?

83b09dda-53f5-4663-b44c-87fd2a9a8717 commented 4 years ago

(I found out I can move it myself, so I have moved it 🙂)