Why is Lion crashing randomly
I have an iMac 20-inch Late 2006. I love this mac and I've never really have had any issues with it before but for the past couple of months, it's been crashing randomly. I tried using Disk Utility and TechTool Pro but neither reported any problems. I tried repairing disk permissions, reformatting the drive (twice), and reinstalling Lion (10.7.3 & 10.7.5), but the crashes continued. Some crashes restarted the computer automatically, some just lock the comupter and the only way to shut it down is by turning off the power. Other crash are proceeded by horizontal lines across the screen or the screen would would appear garbled before locking. The screen issues led me to think that the video was going bad but I had the Genius peeps check it out for me at the Apple store. Although my iMac is no longer supported, they were kind enough run a hardware diagnostics. To my surprise, there were no problems found with the hardware. The conclusion was that the crashes are related to the software. This appears likely as I'm running on Safe Mode right now and haven't had a crash yet. I've pasted the Hardware Overview information, a portion of the crash report, and the system log below. I can decipher some of it but I still have no idea what's causing the crashes. Maybe, it's time for a new iMac.
Model Name: iMac
Model Identifier: iMac5,1
Processor Name: Intel Core 2 Duo
Processor Speed: 2.16 GHz
Number of Processors: 1
Total Number of Cores: 2
L2 Cache: 4 MB
Memory: 3 GB
Bus Speed: 667 MHz
Boot ROM Version: IM51.0090.B09
SMC Version (system): 1.9f4
--------------------------------------------------------------------------
Process: opendirectoryd [18]
Path: /usr/libexec/opendirectoryd
Identifier: opendirectoryd
Version: ??? (???)
Code Type: X86-64 (Native)
Parent Process: launchd [1]
Date/Time: 2013-07-04 01:19:52.153 -0500
OS Version: Mac OS X 10.7.3 (11D50)
Report Version: 9
Crashed Thread: 8 Dispatch queue: com.apple.opendirectoryd.pidinfo.149.requests
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0xffffffffffffff91
VM Regions Near 0xffffffffffffff91:
--> shared memory 00007fffffe00000-00007fffffe02000 [ 8K] r-x/r-x SM=SHM
Thread 8 Crashed:: Dispatch queue: com.apple.opendirectoryd.pidinfo.149.requests
0 com.apple.HeimODAdmin 0x000000010bd7ddbf DYLD-STUB$$CFArrayCreateMutable + 1
1 com.apple.opendirectoryd.module.PlistFile 0x000000010bcd1899 _write_hashes + 2548
2 com.apple.opendirectoryd.module.PlistFile 0x000000010bcd56e8 _create_and_write_hashes + 2458
3 com.apple.opendirectoryd.module.PlistFile 0x000000010bcd5be1 odm_RecordChangePassword + 1231
4 opendirectoryd 0x000000010b1d9a1d 0x10b1b6000 + 145949
5 opendirectoryd 0x000000010b1dd163 0x10b1b6000 + 160099
6 opendirectoryd 0x000000010b1d95ea 0x10b1b6000 + 144874
7 opendirectoryd 0x000000010b1c5f34 0x10b1b6000 + 65332
8 libdispatch.dylib 0x00007fff891f78ba _dispatch_call_block_and_release + 18
9 libdispatch.dylib 0x00007fff891f8ebb _dispatch_async_f_redirect_invoke + 112
10 libdispatch.dylib 0x00007fff891f8799 _dispatch_worker_thread2 + 255
11 libsystem_c.dylib 0x00007fff880df3da _pthread_wqthread + 316
12 libsystem_c.dylib 0x00007fff880e0b85 start_wqthread + 13
--------------------------------------------------------------------
Jul 4 01:46:35 localhost bootlog[0]: BOOT_TIME 1372920395 0
Jul 4 01:46:40 localhost com.apple.launchd[1]: *** launchd[1] has started up. ***
Jul 4 01:46:48 localhost com.apple.launchd[1] (com.apple.sandboxd): Unknown value for key POSIXSpawnType: Interactive
Jul 4 01:46:52 localhost fseventsd[17]: event logs in /.fseventsd out of sync with volume. destroying old logs. (397 16 671)
Jul 4 01:46:52 localhost fseventsd[17]: log dir: /.fseventsd getting new uuid: 0328DE4B-0AE4-412E-A281-2F6744D3BA92
Jul 4 01:46:52 localhost UserEventAgent[11]: starting CaptiveNetworkSupport as SystemEventAgent built May 25 2011 12:27:35
Jul 4 01:46:52 localhost UserEventAgent[11]: WirelessAirPortDeviceNameCopy(): no BSD interface name found for object 12295
Jul 4 01:46:52 localhost UserEventAgent[11]: CaptiveNetworkSupport:CaptiveSCCopyWiFiDevices:388 WiFi Device Name == NULL
Jul 4 01:46:53 localhost com.apple.ucupdate.plist[25]: ucupdate: Checked 1 update, no match found.
Jul 4 01:46:53 localhost com.apple.pfctl[32]: No ALTQ support in kernel
Jul 4 01:46:53 localhost com.apple.pfctl[32]: ALTQ related functions disabled
Jul 4 01:46:54 localhost airportd[57]: _processDLILEvent: en1 attached (down)
Jul 4 01:46:54 localhost mDNSResponder[35]: mDNSResponder mDNSResponder-320.14.0 (Nov 16 2011 01:16:56) starting OSXVers 11
Jul 4 01:46:54 localhost com.apple.usbmuxd[24]: usbmuxd-263 on Aug 23 2011 at 00:44:06, running 64 bit
Jul 4 01:46:55 localhost UserEventAgent[11]: CaptiveNetworkSupport:CreateInterfaceWatchList:2788 WiFi Devices Found. 🙂
Jul 4 01:46:55 localhost UserEventAgent[11]: CaptiveNetworkSupport:CaptivePublishState:1211 en1 - PreProbe
Jul 4 01:46:55: --- last message repeated 2 times ---
Jul 4 01:46:55 localhost configd[14]: bootp_session_transmit: bpf_write(en1) failed: Network is down (50)
Jul 4 01:46:55 localhost configd[14]: DHCP en1: INIT transmit failed
Jul 4 01:46:55 Tommys-iMac configd[14]: setting hostname to "Tommys-iMac.local"
Jul 4 01:46:55 Tommys-iMac configd[14]: network configuration changed.
Jul 4 01:46:57 Tommys-iMac systemkeychain[60]: done file: /var/run/systemkeychaincheck.done
Jul 4 01:46:57 Tommys-iMac configd[14]: network configuration changed.
Jul 4 01:46:57 Tommys-iMac mDNSResponder[35]: D2D_IPC: Loaded
Jul 4 01:46:57 Tommys-iMac mDNSResponder[35]: D2DInitialize succeeded
Jul 4 01:46:57 Tommys-iMac configd[14]: network configuration changed.
Jul 4 01:46:57 Tommys-iMac loginwindow[37]: Login Window Application Started
Jul 4 01:46:57 Tommys-iMac UserEventAgent[11]: ServermgrdRegistration cannot load config data
Jul 4 01:46:57 Tommys-iMac UserEventAgent[11]: get_backup_share_points no AFP
Jul 4 01:46:57 Tommys-iMac rpcsvchost[90]: sandbox_init: com.apple.msrpc.netlogon.sb succeeded
Jul 4 01:46:57 Tommys-iMac com.apple.launchd[1] (com.apple.netbiosd[89]): Exited abnormally: Hangup: 1
Jul 4 01:46:57 Tommys-iMac com.apple.launchd[1] (com.apple.netbiosd): Throttling respawn: Will start in 10 seconds
Jul 4 01:46:57 Tommys-iMac mds[34]: (Normal) FMW: FMW 0 0
Jul 4 01:46:59 Tommys-iMac loginwindow[37]: **DMPROXY** Found `/System/Library/CoreServices/DMProxy'.
Jul 4 01:47:00 Tommys-iMac mds[34]: (/.Spotlight-V100/Store-V2/CA8B0643-C0D9-4941-9765-F9A3275C8536)(Error) IndexPath in openReverseStore:Successfully recovered from shadow with state d00d0dd0
Jul 4 01:47:00 Tommys-iMac com.apple.launchctl.LoginWindow[101]: com.apple.findmymacmessenger: Already loaded
Jul 4 01:47:00 Tommys-iMac loginwindow[37]: Login Window Started Security Agent
Jul 4 01:47:00 Tommys-iMac SecurityAgent[107]: Echo enabled
Jul 4 01:47:01 Tommys-iMac WindowServer[86]: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
Jul 4 01:47:02 Tommys-iMac configd[14]: network configuration changed.
Jul 4 01:47:02 tommys-imac configd[14]: setting hostname to "tommys-imac.att.net"
Jul 4 01:47:03 tommys-imac ntpd[21]: proto: precision = 1.000 usec
Jul 4 01:48:48 localhost bootlog[0]: BOOT_TIME 1372920528 0
Jul 4 01:49:07 localhost UserEventAgent[11]: starting CaptiveNetworkSupport as SystemEventAgent built May 25 2011 12:27:35
Jul 4 01:48:58 localhost com.apple.launchd[1]: *** launchd[1] has started up. ***
Jul 4 01:49:07 localhost com.apple.launchd[1] (com.apple.sandboxd): Unknown value for key POSIXSpawnType: Interactive
Jul 4 01:49:07 localhost UserEventAgent[11]: WirelessAirPortDeviceNameCopy(): no BSD interface name found for object 14083
Jul 4 01:49:07 localhost UserEventAgent[11]: CaptiveNetworkSupport:CaptiveSCCopyWiFiDevices:388 WiFi Device Name == NULL
Jul 4 01:49:11 localhost airportd[23]: _processDLILEvent: en1 attached (down)
Jul 4 01:49:11 localhost UserEventAgent[11]: CaptiveNetworkSupport:CreateInterfaceWatchList:2788 WiFi Devices Found. 🙂
Jul 4 01:49:11 localhost UserEventAgent[11]: CaptiveNetworkSupport:CaptivePublishState:1211 en1 - PreProbe
Jul 4 01:49:11 localhost UserEventAgent[11]: CaptiveNetworkSupport:CaptiveSCRebuildCache:81 Failed to get service order
Jul 4 01:49:11: --- last message repeated 1 time ---
Jul 4 01:49:11 localhost UserEventAgent[11]: CaptiveNetworkSupport:CaptivePublishState:1211 en1 - PreProbe
Jul 4 01:49:11 localhost UserEventAgent[11]: CaptiveNetworkSupport:CaptiveSCRebuildCache:81 Failed to get service order
Jul 4 01:49:11: --- last message repeated 1 time ---
Jul 4 01:49:11 localhost UserEventAgent[11]: CaptiveNetworkSupport:CaptivePublishState:1211 en1 - PreProbe
Jul 4 01:49:11 localhost configd[14]: bootp_session_transmit: bpf_write(en1) failed: Network is down (50)
Jul 4 01:49:11 localhost configd[14]: DHCP en1: INIT transmit failed
Jul 4 01:49:11 Tommys-iMac configd[14]: setting hostname to "Tommys-iMac.local"
Jul 4 01:49:11 Tommys-iMac configd[14]: network configuration changed.
Jul 4 01:49:12 Tommys-iMac com.apple.ucupdate.plist[35]: ucupdate: Checked 1 update, no match found.
Jul 4 01:49:12 Tommys-iMac com.apple.pfctl[41]: No ALTQ support in kernel
Jul 4 01:49:12 Tommys-iMac com.apple.pfctl[41]: ALTQ related functions disabled
Jul 4 01:49:12 Tommys-iMac mDNSResponder[44]: mDNSResponder mDNSResponder-320.14.0 (Nov 16 2011 01:16:56) starting OSXVers 11
Jul 4 01:49:12 Tommys-iMac com.apple.usbmuxd[34]: usbmuxd-263 on Aug 23 2011 at 00:44:06, running 64 bit
Jul 4 01:49:14 Tommys-iMac mds[43]: (Normal) FMW: FMW 0 0
Jul 4 01:49:15 Tommys-iMac systemkeychain[65]: done file: /var/run/systemkeychaincheck.done
Jul 4 01:49:15 Tommys-iMac mDNSResponder[44]: D2D_IPC: Loaded
Jul 4 01:49:15 Tommys-iMac mDNSResponder[44]: D2DInitialize succeeded
Jul 4 01:49:15 Tommys-iMac configd[14]: network configuration changed.
Jul 4 01:49:15: --- last message repeated 1 time ---
Jul 4 01:49:15 Tommys-iMac UserEventAgent[11]: ServermgrdRegistration cannot load config data
Jul 4 01:49:15 Tommys-iMac loginwindow[46]: Login Window Application Started
Jul 4 01:49:15 Tommys-iMac UserEventAgent[11]: get_backup_share_points no AFP
Jul 4 01:49:15 Tommys-iMac rpcsvchost[88]: sandbox_init: com.apple.msrpc.netlogon.sb succeeded
Jul 4 01:49:16 Tommys-iMac com.apple.launchd[1] (com.apple.netbiosd[71]): Exited abnormally: Hangup: 1
Jul 4 01:49:16 Tommys-iMac com.apple.launchd[1] (com.apple.netbiosd): Throttling respawn: Will start in 8 seconds
Jul 4 01:49:17 Tommys-iMac loginwindow[46]: **DMPROXY** Found `/System/Library/CoreServices/DMProxy'.
Jul 4 01:49:17 Tommys-iMac com.apple.launchctl.LoginWindow[98]: com.apple.findmymacmessenger: Already loaded
Jul 4 01:49:17 Tommys-iMac loginwindow[46]: Login Window Started Security Agent
Jul 4 01:49:17 Tommys-iMac SecurityAgent[104]: Echo enabled
Jul 4 01:49:18 Tommys-iMac WindowServer[86]: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
Jul 4 01:49:19 Tommys-iMac configd[14]: network configuration changed.
Jul 4 01:49:19 tommys-imac configd[14]: setting hostname to "tommys-imac.att.net"
Jul 4 01:49:20 tommys-imac ntpd[31]: proto: precision = 1.000 usec
Jul 4 01:49:24 tommys-imac SecurityAgent[104]: User info context values set for Tommy
Jul 4 01:49:24 tommys-imac SecurityAgent[104]: Login Window login proceeding
Jul 4 01:49:25 tommys-imac loginwindow[46]: Login Window - Returned from Security Agent
Jul 4 01:49:25 tommys-imac loginwindow[46]: USER_PROCESS: 46 console
Jul 4 01:49:25 tommys-imac com.apple.launchd.peruser.501[121] (com.apple.ReportCrash): Falling back to default Mach exception handler. Could not find: com.apple.ReportCrash.Self
Jul 4 01:49:25 tommys-imac com.apple.launchctl.Aqua[123]: load: option requires an argument -- D
Jul 4 01:49:25 tommys-imac com.apple.launchctl.Aqua[123]: usage: launchctl load [-wF] [-D <user|local|network|system|all>] paths...
Jul 4 01:49:25 tommys-imac com.apple.launchd.peruser.501[121] (com.apple.launchctl.Aqua[123]): Exited with code: 1
Jul 4 01:49:26 tommys-imac UserEventAgent[11]: CaptiveNetworkSupport:CNSServerRegisterUserAgent:187 new user agent port: 14599
Jul 4 01:49:28 tommys-imac Finder[134]: kCGErrorIllegalArgument: _CGSFindSharedWindow: WID 32
Jul 4 01:49:28 tommys-imac Finder[134]: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
Jul 4 01:49:28 tommys-imac Finder[134]: kCGErrorIllegalArgument: CGSRemoveSurface: Invalid window 0x20
Jul 4 01:49:28 tommys-imac talagent[132]: CGSConnectionRelinquishWindowRights(cid, newWindowNumber, reservedRights): CGError 1001 on line 619
Jul 4 01:49:29 tommys-imac com.apple.dock.extra[166]: Could not connect the action buttonPressed: to target of class NSApplication
Jul 4 01:49:29 tommys-imac com.apple.dock.extra[166]: 2013-07-04 01:49:29.348 com.apple.dock.extra[166:1707] Could not connect the action buttonPressed: to target of class NSApplication
Jul 4 01:49:29 tommys-imac com.apple.dock.extra[166]: Could not connect the action buttonPressed: to target of class NSApplication
Jul 4 01:49:29 tommys-imac com.apple.dock.extra[166]: 2013-07-04 01:49:29.350 com.apple.dock.extra[166:1707] Could not connect the action buttonPressed: to target of class NSApplication
Jul 4 01:49:29 tommys-imac com.apple.dock.extra[166]: Could not connect the action buttonPressed: to target of class NSApplication
Jul 4 01:49:29: --- last message repeated 1 time ---
Jul 4 01:49:29 tommys-imac com.apple.dock.extra[166]: 2013-07-04 01:49:29.351 com.apple.dock.extra[166:1707] Could not connect the action buttonPressed: to target of class NSApplication
Jul 4 01:49:29 tommys-imac com.apple.dock.extra[166]: 2013-07-04 01:49:29.353 com.apple.dock.extra[166:1707] Could not connect the action buttonPressed: to target of class NSApplication
Jul 4 01:49:30 tommys-imac com.apple.launchd.peruser.501[121] (com.apple.CSConfigDotMacCert-tlev@me.com-SharedServices[164]): Exited with code: 1
Jul 4 01:49:34 tommys-imac com.apple.coreservices.uiagent[174]: Jul 4 01:49:34 tommys-imac.att.net CoreServicesUIAgent[174] <Notice>: Application failed to launch (id = com.apple.installassistant, version = 23.1.1 reason = kLSIncompatibleApplicationVersionErr)
Jul 4 01:49:41 tommys-imac coreservicesd[24]: *** process 24 exceeded 500 log message per second limit - remaining messages this second discarded ***
Jul 4 01:50:25 Tommys-iMac configd[14]: setting hostname to "Tommys-iMac.local"
Jul 4 01:50:31 Tommys-iMac configd[14]: network configuration changed.
Jul 4 01:50:33: --- last message repeated 1 time ---
Jul 4 01:50:33 tommys-imac configd[14]: setting hostname to "tommys-imac.att.net"
Jul 4 01:50:39 tommys-imac mds[43]: (/.Spotlight-V100/Store-V2/CA8B0643-C0D9-4941-9765-F9A3275C8536)(Error) IndexStore in bool setLocalizedAttributesLocked(datastore_info*, db_obj**, const __CFString**, const __CFDictionary**, CFIndex, StoreOptions, const __CFDictionary*, bool, bool, const __CFArray*):Error:7 setting field:com_apple_system_prefs_keywords for oid:62554
Jul 4 01:50:45 tommys-imac configd[14]: network configuration changed.
Jul 4 01:50:45 Tommys-iMac configd[14]: setting hostname to "Tommys-iMac.local"
Jul 4 01:50:46 Tommys-iMac configd[14]: network configuration changed.
Jul 4 01:50:46 tommys-imac configd[14]: setting hostname to "tommys-imac.att.net"
Jul 4 01:51:51 tommys-imac Finder[134]: --ImageKit Error: updateGLTextureWithBitmapData: glPixelStorei returned an error : 506 (subSize=[51.000000,18.000000] offset [842.000000,0.000000] glID:3, context:0x7fe7c9ea6f50)
Jul 4 01:51:51 tommys-imac Finder[134]: --ImageKit Error: updateGLTextureWithBitmapData: glPixelStorei returned an error : 506 (subSize=[51.000000,18.000000] offset [893.000000,0.000000] glID:3, context:0x7fe7c9ea6f50)
Jul 4 01:51:51 tommys-imac Finder[134]: --ImageKit Error: error before reading pixels: 506
Jul 4 01:51:51 tommys-imac Finder[134]: --ImageKit Error: error after reading pixels: 506
iMac Intel Core 2 duo, Mac OS X (10.4.8), MacBook