mds repeatedly crashes, can't build Spotlight index
I upgraded to Snow Leopard a few days ago and since then my machine is locked in an attempt to build the Spotlight index. First I thought this would just take a while and that I should be patient. But then I had a closer look at Console and found that mds repeatedly crashes and then starts all over again.
Below is an excerpt from the Console (I deleted some reoccurring messages to keep it short).
I started to notice the mds activity after I installed XCode 3.2.1 but that might be just a coincidence.
Also, out of curiousity, why is there an mdworker and an mdworker32 process?
Thanks much in advance for any insight,
schnapp
...
Feb 19 16:13:18 preon com.apple.launchd[1] (com.apple.metadata.mds[973]): Job appears to have crashed: Segmentation fault
Feb 19 16:13:18 preon mds[987]: (/)(Error) IndexGeneral in SIOpenIndex:check crashstate: 1 for /.Spotlight-V100/Store-V1/Stores/D599D2A2-79F2-4E04-90CC-1B203B60771D
Feb 19 16:13:18 preon mds[987]: (Normal) DiskStore: Rebuilding index for /
Feb 19 16:13:18 preon mds[987]: (Normal) DiskStore: Creating index for /
...
Feb 19 16:21:14 preon mdworker32[1014]: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
Feb 19 16:27:46 preon /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework /Versions/A/Support/mdworker[1002]: zip importer encountered an error (2) scanning "/Users/glui/Library/Mail Downloads/Beschreibung doc.zip".
...
Feb 19 16:31:28 preon [0x0-0xa60a6].com.apple.ActivityMonitor[1032]: Activity Monitor: OpenScripting.framework - scripting addition "/Library/ScriptingAdditions/QXPScriptingAdditions.osax" declares no loadable handlers.
...
Feb 19 16:33:16 preon mdworker32[1027]: NSDataMessageStore: couldn't find body
Feb 19 16:33:37: --- last message repeated 565 times ---
Feb 19 16:33:37 preon mdworker32[1027]: * process 1027 exceeded 500 log message per second limit - remaining messages this second discarded *
...
Feb 19 16:45:49 preon Safari[268]: Periodic CFURLCache Insert stats (iters: 362) - Tx time:0.008139, # of Inserts: 5, # of bytes written: 34679, Did shrink: NO, Size of cache-file: 182648832, Num of Failures: 0
Feb 19 16:49:22 preon Safari[268]: INSERT-HANG-DETECTED: Tx time:8.096443, # of Inserts: 0, # of bytes written: 0, Did shrink: YES
...
Feb 19 16:50:38 preon mdworker32[1027]: Unable to parse date ( )
Feb 19 16:53:29 preon mdworker32[1027]: * Failed to decode data, treating as binary
Feb 19 16:54:00 preon mdworker32[1027]: NSDataMessageStore: couldn't find body
Feb 19 16:54:30: --- last message repeated 41 times ---
Feb 19 16:55:09 preon mds[987]: /SourceCache/Spotlight/Spotlight-507.4/index/ContentIndex/CIPositions.h:215: failed assertion 'len == 0 || bytes[len-1]==0' /.Spotlight-V100/Store-V1/Stores/D599D2A2-79F2-4E04-90CC-1B203B60771D (hfs, t: 0x11, st: 0x1, f: 0x480d000)
Feb 19 16:55:11 preon com.apple.ReportCrash.Root[1255]: 2010-02-19 16:55:11.248 ReportCrash[1255:2903] Saved crash report for mds[987] version ??? (???) to /Library/Logs/DiagnosticReports/mds 2010-02-19-165511localhost.crash
Feb 19 16:55:11 preon com.apple.launchd[1] (com.apple.metadata.mds[987]): Job appears to have crashed: Segmentation fault
(and here the cycle starts again)
MBP (early 2008), Mac OS X (10.6.2)