You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SR-2462 Compiler is sometimes overreleasing CF objects
Issue Description:
All,
I'm experiencing a run time crash when trying to use Date, and NSDate. The bug was discovered while playing with the Kitura, and Vapor frameworks. Here is the original issue posted to the Vapor Projects GitHub for additional details:
All,
While playing with the Hello tutorial, I added a couple of routs. The first returns the "Hello World" string, and the second returns a current time stamp. When executing the route that calls NSDate(), it works as expected the fist time, then crashes the server. Here is the code:
import Vapor
import Foundation
let drop = Droplet()
drop.get("hello") { request in
return "Hello, world!"
}
drop.get("thedate") { request in
var the_date = NSDate()
return "The Date is: (the_date)"
}
drop.get { req in
let lang = req.headers["Accept-Language"]?.string ?? "en"
return try drop.view.make("welcome", [
"message": Node.string(drop.localization[lang, "welcome", "title"])
])
}
drop.resource("posts", PostController())
drop.run()
I'm developing on Ubuntu 16.04, and Swift 3.0 release.
Thanks!
--Nick
The text was updated successfully, but these errors were encountered:
Environment
Ubuntu 16.04(x64), and Swift 3.0 Release
Additional Detail from JIRA
md5: c48182972ecdfad62f62d8f31242a9ac
relates to:
Issue Description:
All,
I'm experiencing a run time crash when trying to use Date, and NSDate. The bug was discovered while playing with the Kitura, and Vapor frameworks. Here is the original issue posted to the Vapor Projects GitHub for additional details:
vapor/vapor#615
All,
While playing with the Hello tutorial, I added a couple of routs. The first returns the "Hello World" string, and the second returns a current time stamp. When executing the route that calls NSDate(), it works as expected the fist time, then crashes the server. Here is the code:
import Vapor
import Foundation
let drop = Droplet()
drop.get("hello") { request in
return "Hello, world!"
}
drop.get("thedate") { request in
var the_date = NSDate()
return "The Date is: (the_date)"
}
drop.get { req in
let lang = req.headers["Accept-Language"]?.string ?? "en"
return try drop.view.make("welcome", [
"message": Node.string(drop.localization[lang, "welcome", "title"])
])
}
drop.resource("posts", PostController())
drop.run()
I'm developing on Ubuntu 16.04, and Swift 3.0 release.
Thanks!
--Nick
The text was updated successfully, but these errors were encountered: