Swift REPL/Playground not happy with let d = 1 + 2 + 3 + 4 + 5 + 6 + 7

Originator:jcburns
Number:rdar://17365394 Date Originated:6/18/2014
Status:Open Resolved:
Product:Developer Tools Product Version:Version 6.0 (6A216f)
Classification: Reproducible:
 
Summary:
Using Xcode or the REPL from the command line, enter that simple line of code. I don't get a response

Steps to Reproduce:
1. open REPL or playground

2. Enter:

let d = 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10

3. CPU usage spikes, no response produced.

4. let b = 1 + 2 + 3 + 4 + 5 provides reasonably quick response.

numbers above 5 seem to invoke the slowdown

Expected Results:
quick evaluation of simple line of code

Actual Results:
bogging down CPU, errors like:

6/18/14 12:43:50.982 PM com.apple.LLDB.framework[65768]: warning: (x86_64) /Applications/Xcode6-Beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/PlaygroundStub_OSX unable to load swift module 'PlaygroundStub_OSX' (failed to get module 'PlaygroundStub_OSX' from AST context:
missing required modules: 'DVTPlaygroundCommunication', 'PlaygroundLogger', 'XCPlayground')

6/18/14 12:48:38.000 PM kernel[0]: warning: debugserver(65815) performed out-of-band resume on PlaygroundStub_O(65814)


Version:
Version 6.0 (6A216f)

Notes:


Configuration:
Standard Macbook Air w Mavericks, 8 GB RAM

Comments


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!