Can someone shed some light on this misterious crash? I have some very trivial code which causes the following crash on `_CFStringCreateWithFormatAndArgumentsAux2`. Any ideas how to investigate this further? My only assumption is corrupted memory that manifests like that.
Code
NSString *formatedString = nil;
NSInteger seconds = x;
NSInteger hours = y;
NSInteger minutes = z;
if (hours > 0) {
return [NSString stringWithFormat:@"%zd:%02zd:%02zd", hours, minutes, seconds];
} else {
return [NSString stringWithFormat:@"%zd:%02zd", minutes, seconds];
}Stacktrace
0 libsystem_malloc.dylib 0x1994f3be8 szone_free + 2944
1 libsystem_malloc.dylib 0x1994f3734 szone_free + 1740
2 CoreFoundation 0x183f590e0 CFRelease + 1084
3 CoreFoundation 0x184041980 _CFStringCreateWithFormatAndArgumentsAux2 + 264
4 Foundation 0x184ec5e0c -[NSPlaceholderString initWithFormat:locale:arguments:] + 164
5 Foundation 0x184ec5cdc +[NSString stringWithFormat:] + 64