locationd keeps crashing every 3 seconds
I tried:
- rebooting in recovery mode and repair disk permissions
- disabling location services
And I keep getting the following error messages in the console (eating up a lot of CPU cycles):
14/12/12 5:42:08.405 PM locationd[511]: NOTICE,Location icon should now be in state 0
14/12/12 5:42:08.405 PM locationd[511]: locationd was started after an unclean shutdown
14/12/12 5:42:08.920 PM locationd[511]: Could not prepare statement pragma auto_vacuum;, error code = 11, error message = database disk image is malformed
14/12/12 5:42:08.920 PM locationd[511]: database false error 11; deleting and exiting
14/12/12 5:42:08.920 PM locationd[511]: NOTICE,Killing locationd to resolve corrupted database.
14/12/12 5:42:09.374 PM ReportCrash[501]: failed looking up LS service ( scCreateSystemService returned MACH_PORT_NULL, called from SetupCoreApplicationServicesCommunicationPort, so using client-side NULL calls.
14/12/12 5:42:09.374 PM ReportCrash[501]: LaunchServices/5123589: Unable to lookup coreservices session port for session 0x186a0 uid=0 euid=0
14/12/12 5:42:09.374 PM ReportCrash[501]: failed looking up LS service ( scCreateSystemService returned MACH_PORT_NULL, called from SetupCoreApplicationServicesCommunicationPort, so using client-side NULL calls.
14/12/12 5:42:09.374 PM ReportCrash[501]: LaunchServices/5123589: Unable to lookup coreservices session port for session 0x186a0 uid=0 euid=0
14/12/12 5:42:09.374 PM ReportCrash[501]: failed looking up LS service ( scCreateSystemService returned MACH_PORT_NULL, called from SetupCoreApplicationServicesCommunicationPort, so using client-side NULL calls.
14/12/12 5:42:09.374 PM ReportCrash[501]: LaunchServices/5123589: Unable to lookup coreservices session port for session 0x186a0 uid=0 euid=0
14/12/12 5:42:09.374 PM ReportCrash[501]: failed looking up LS service ( scCreateSystemService returned MACH_PORT_NULL, called from SetupCoreApplicationServicesCommunicationPort, so using client-side NULL calls.
14/12/12 5:42:09.375 PM ReportCrash[501]: LaunchServices/5123589: Unable to lookup coreservices session port for session 0x186a0 uid=0 euid=0
14/12/12 5:42:09.375 PM ReportCrash[501]: failed looking up LS service ( scCreateSystemService returned MACH_PORT_NULL, called from SetupCoreApplicationServicesCommunicationPort, so using client-side NULL calls.
14/12/12 5:42:09.375 PM ReportCrash[501]: LaunchServices/5123589: Unable to lookup coreservices session port for session 0x186a0 uid=0 euid=0
14/12/12 5:42:09.425 PM com.apple.launchd[1]: (com.apple.locationd[511]) Job appears to have crashed: Illegal instruction: 4
14/12/12 5:42:09.425 PM com.apple.launchd[1]: (com.apple.locationd) Throttling respawn: Will start in 2 seconds
14/12/12 5:42:09.527 PM ReportCrash[501]: Saved crash report for locationd[511] version 1239.39 to /Library/Logs/DiagnosticReports/locationd_2012-12-14-174209_Jeromes-MacBook-Air.crash
The only way to stop it is to disable locationd in the terminal:
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.locationd.plist
Is there a fix to this, instead of this workaround?