Radar

Apple Bug Reporting has previously been referred to as Radar, which is the name of the bug tracking tool. Recently, I’ve been sending bug reports for the new version of Swift. Version 1.2 had this issue that crashed the compiler with a SegFault:

let search = searchTerm.lowercaseString //EXC_BAD_ACCESS
let search = (searchTerm as NSString).lowercaseString //Works as expected

But what’s this? Swift String is supposed to be bridged to NSString. I should be able to use lowercaseString for either type. And what’s this bad access? A built-in function is accessing an invalid portion of memory? Since this doesn’t raise a compiler warning, most likely it’s not intended behavior.

So, I filed a bug – number 19848611 – Swift String.lowercaseString causes BAD_ACCESS, which eventually was found to be a duplicate of 19801253.

And today, reading through the iOS 8.3 Beta 2 change log:

Fixed a use after free crash in lowercaseString and uppercaseString. (19801253)

Some object in there was being released and then accessed, causing the bad access. But it’s fixed! File your Radars!