swift icon indicating copy to clipboard operation
swift copied to clipboard

[SR-217] Xcode crashes with swift-2.2-SNAPSHOT-2015-12-10-a.xctoolchain

Open swift-ci opened this issue 10 years ago • 7 comments

Previous ID SR-217
Radar None
Original Reporter Eugene Gubin (JIRA User)
Type Bug
Status Resolved
Resolution Cannot Reproduce

Attachment: Download

Additional Detail from JIRA
Votes 0
Component/s Source Tooling
Labels Bug
Assignee Eugene Gubin (JIRA)
Priority Medium

md5: d361973f04957431bdeb10edcd764021

Issue Description:

  1. 1. Open swift-corelib-foundation in XCode (I use 3a1e252ef9e2fae33c954a3833ad1ecaa60b05d7 commit)
    2. Navigate to NSURL.swift
    3. Move cursor to `return path._nsObject.stringByStandardizingPath`.
    4. Usually SourceKit crashes.
    5. CMD+Click on stringByStandardizingPath
    6. Xcode hangs then crashes.

Logs: https://gist.github.com/HeMet/94cf073e0ba466fc8719

swift-ci avatar Dec 13 '15 11:12 swift-ci

@akyrtzi, any ideas?

belkadan avatar Dec 14 '15 18:12 belkadan

Could you mention the Xcode version, and attach latest crash logs from ~/Library/Logs/DiagnosticReports/SourceKitService* ?

akyrtzi avatar Dec 14 '15 21:12 akyrtzi

Comment by Eugene Gubin (JIRA)

@akyrtzi , I use Xcode 7.2 (7C68). Also crash logs attached.

swift-ci avatar Dec 15 '15 16:12 swift-ci

Comment by Eugene Gubin (JIRA)

Still crashes with swift-2.2-SNAPSHOT-2015-12-18-a

swift-ci avatar Dec 19 '15 09:12 swift-ci

I cannot reproduce this crash using top-of-tree open source swift. Could you retry Swift and see if it still crashes?

nkcsgexi avatar Jan 16 '16 00:01 nkcsgexi

Comment by Eugene Gubin (JIRA)

I could not reproduce it now. I think it has something to do with the source code. In past when I report it `stringByStandardizingPath` and related API was not implemented yet. Xcode could crash if `go to definition` feature used after SourceKit have crashed.

swift-ci avatar Jan 16 '16 08:01 swift-ci

Let us know if you are able to reproduce again.

akyrtzi avatar Jan 19 '16 17:01 akyrtzi