Xcode 9 beta 2 Playgrounds: crash when creating TimeZone

Originator:igeek1
Number:rdar://33167662 Date Originated:06-Jul-2017 05:58 PM
Status:Duplicate of 32990161 Resolved:July 31 2017, 6:15 PM
Product:Developer Tools Product Version:Xcode 9.0 beta 2 (9M137d)
Classification:Crash/Hang/Data Loss Reproducible:Always
 
Summary:
Creating a TimeZone object in a playground crashes when running in an iOS Playground, but not in a Mac playground.

Steps to Reproduce:
1. Create a new Mac Playground in Xcode 9.
2. Add the following code:

import Foundation
let tz = TimeZone(secondsFromGMT: 0)!

3. Observe the output: “GMT (fixed)”.
4. Convert the playground from macOS to iOS.
5. What for the playground to compile and run the code.

Expected Results:
The same output.

Actual Results:
The playground crashes with this error on the line that creates the TimeZone:

error: Execution was interrupted, reason: EXC_BAD_ACCESS (code=EXC_I386_GPFLT).

Version:
Xcode 9.0 beta 2 (9M137d)

Notes:
The full stack trace is visible in the attached screenshot, also uploaded to https://cl.ly/lRwY

Comments

The original radar that this one was duped to, 32990161, has now been closed. Confirmed fixed in Xcode 9 beta 6.

Closed as a duplicate of 32990161, which as of this writing is still open, but the issue appears to be fixed in Xcode 9 beta 4.

I posted the wrong Xcode build number before (got too clever with a script I wrote to copy the Xcode version number for me to save time), but I have re-tested in Xcode 9 beta 3, and can confirm that it is still broken as I previously reported.

Apple Developer Relations post from July 20 2017, 11:03 PM

Engineering has requested the following information regarding your bug report:

Please verify this issue with the Xcode 9 beta and update your bug report at https://bugreport.apple.com/ with your results.

Xcode 9 beta 3 (9M174d) https://developer.apple.com/download/ Posted Date: July 10th, 2017

Apple Developer Relations post from July 13 2017, 12:09 PM

Thanks, we are working on the new information you provided. We appreciate your help!

Related issue

import UIKit NSTimeZone.local

OR

import UIKit TimeZone.current

  • Crash in a playground in Xcode 9 beta 3
  • Crash when trying to inspect the resulting time zone object in the debugger while running on a device
By Dolce.Ardore at July 18, 2017, 2:28 a.m. (reply...)

This is NOT fixed in Xcode 9.0 beta 3 (13199.7) on macOS 10.12.5 (16F73). Attaching screenshot, also uploaded at https://cl.ly/lXTl

Apple Developer Relations

We believe this issue is resolved in the latest Xcode 9 beta. Please test with the latest Xcode beta. If you still have issues, please update your bug report with any relevant logs or information that could help us investigate.


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!