same problem here with a recently bought (2nd hand) 27 inch 2TB, 16 Gb ram imac
try to figure out what the cause is of the sudden shutdown by taking a look at the console diagnostics but it's not clear to me;
this is part of the diagnostics (it's even taling about a suspect file?!?!):
i have read all the posts in this discussion and to me it's clear that the cause is not clearly one issue/culprit; overheating keeps coming back in the discussion so yesterday i installed Mac Fan Control which is now humming at a 1900 RPM for the cpu...
Process: mdworker32 [741]
Path: /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadat a.framework/Versions/A/Support/mdworker32
Identifier: mdworker32
Version: 800.29
Code Type: X86 (Native)
Parent Process: launchd [278]
Responsible: mdworker32 [741]
User ID: 502
Date/Time: 2015-06-16 16:17:15.958 +0200
OS Version: Mac OS X 10.9.5 (13F1077)
Report Version: 11
Anonymous UUID: 62496410-AFDA-E872-6A06-62B1B23384AB
Crashed Thread: 4
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x000000000880c020
VM Regions Near 0x880c020:
mapped file 000000000878e000-00000000087e4000 [ 344K] r--/r-x SM=PRV /Users/USER/Documents/*/*.qxd
-->
mapped file 000000000883b000-0000000008ca8000 [ 4532K] rw-/rwx SM=COW /private/var/folders/*/*.csstore
Application Specific Information:
import fstype:hfs fsflag:480D000 flags:40000007E diag:0 isXCode:0 uti:com.quark.xpress.doc plugin:/Library/Spotlight/QuarkXPress.mdimporter - find suspect file using: sudo mdutil -t 1517026
Application Specific Signatures:
import uti:com.quark.xpress.doc plugin:/Library/Spotlight/QuarkXPress.mdimporter uuid:BCF14709-BA7D-4B2E-84AD-2B1EBDC71A46 2.0
Thread 0:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x02d30f7a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x02d3016c mach_msg + 68
2 com.apple.CoreFoundation 0x00ea8bf9 __CFRunLoopServiceMachPort + 169
3 com.apple.CoreFoundation 0x00ea81d1 __CFRunLoopRun + 1393
4 com.apple.CoreFoundation 0x00ea79ea CFRunLoopRunSpecific + 394
5 com.apple.CoreFoundation 0x00f6a221 CFRunLoopRun + 129
6 mdworker32 0x0005282f 0x48000 + 43055
7 libdyld.dylib 0x02ba4701 start + 1
Thread 1:: Dispatch queue: com.apple.libdispatch-manager
0 libsystem_kernel.dylib 0x02d36992 kevent64 + 10
1 libdispatch.dylib 0x02b77899 _dispatch_mgr_invoke + 238
2 libdispatch.dylib 0x02b77532 _dispatch_mgr_thread + 52
Thread 2:
0 libsystem_kernel.dylib 0x02d36046 __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x02e2edcf _pthread_wqthread + 372
2 libsystem_pthread.dylib 0x02e32cce start_wqthread + 30
Thread 3:
0 libsystem_kernel.dylib 0x02d36046 __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x02e2edcf _pthread_wqthread + 372
2 libsystem_pthread.dylib 0x02e32cce start_wqthread + 30
Thread 4 Crashed:
0 com.apple.LaunchServices 0x037c1988 CSStoreGetGeneration + 9
1 com.apple.LaunchServices 0x037c659f _LSDatabaseNeedsUpdate(LSDatabase*) + 53
2 com.apple.LaunchServices 0x037c0398 _LSContextInit + 128
3 com.apple.LaunchServices 0x037d071c _LSCopyInfoForNode + 134
4 com.apple.LaunchServices 0x037d2819 _LSCopyItemInfoForRefInfo + 131
5 com.apple.LaunchServices 0x037d26ee prepareBasicFlags(__CFURL const*, __FileCache*, __CFError**) + 162
6 com.apple.LaunchServices 0x037bfc6d LSPropertyProviderPrepareValues(__CFURL const*, __FileCache*, __CFString const* const*, void const**, long, void const*, __CFError**) + 47
7 com.apple.CoreServicesInternal 0x082e8498 prepareValuesForBitmap(__CFURL const*, __FileCache*, _FilePropertyBitmap*, __CFError**) + 291
8 com.apple.CoreServicesInternal 0x082e651e _FSURLCopyResourcePropertiesForKeysInternal(__CFURL const*, __CFArray const*, void*, __CFError**, unsigned char) + 899
9 com.apple.CoreServicesInternal 0x082e6196 _FSURLCopyResourcePropertiesForKeys + 38
10 com.apple.CoreFoundation 0x00eb917c CFURLCopyResourcePropertiesForKeys + 108
11 com.apple.desktopservices 0x0098eff8 TCFURLInfo::FetchProperties(bool) + 90
12 com.apple.desktopservices 0x0098ef3f TCFURLInfo::Initialize(__CFURL const*, bool, bool) + 145
13 com.apple.desktopservices 0x00a0d5bf _CopyPropertyStoreWithURL + 104
14 mdworker32 0x00058394 0x48000 + 66452
15 mdworker32 0x00054f49 0x48000 + 53065
16 libsystem_pthread.dylib 0x02e2d5fb _pthread_body + 144
17 libsystem_pthread.dylib 0x02e2d485 _pthread_start + 130
18 libsystem_pthread.dylib 0x02e32cf2 thread_start + 34
Thread 4 crashed with X86 Thread State (32-bit):
eax: 0x0880c000 ebx: 0xb0193f00 ecx: 0x01174000 edx: 0xb0193920
edi: 0x037c0329 esi: 0x0000089f ebp: 0xb0193908 esp: 0xb0193908
ss: 0x00000023 efl: 0x00010246 eip: 0x037c1988 cs: 0x0000001b
ds: 0x00000023 es: 0x00000023 fs: 0x00000023 gs: 0x0000000f
cr2: 0x0880c020
Logical CPU: 2
Error Code: 0x00000004
Trap Number: 14