SMJobSubmit sometimes does not return a valid error result in Yosemite

Originator:peter
Number:rdar://19512948 Date Originated:2015-01-19
Status:Closed Resolved:Fixed in 10.10.3
Product:OS X Product Version:10.10.0-10.10.2
Classification:Crash Reproducible:Sometimes
 
I am getting some crashes related to releasing the error result returned by SMJobSubmit.  Crashes began with 10.10, so this appears to be a regression.  Crashlog attached.  I have not seen this myself, but I have received about 70 crashlogs with this crash in it.

		CFErrorRef error;
		if ( SMJobSubmit( kSMDomainSystemLaunchd, CFBridgingToCFDictionary(plist), auth, &error) ) {
			…
		}
		if ( error ) CFRelease( error );

So either SMJobSubmit is returning success and not setting the error value to NULL, or is returning an invalid or already released error result on failure.

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!