mds and mdsworker hogging my system - help needed

Discussion in 'macOS' started by PDE, Mar 25, 2010.

  1. PDE macrumors 68020

    Joined:
    Nov 16, 2005
    #1
    I installed a new hard drive on my MBP the other day and used migration assistant to transfer from my old drive. Spotlight started indexing and eventually finished, at least I thought it had since I could access the spotlight menu.

    For the past two days, however, mds and mdsworker have been hogging my CPU, often taking as much as 90% as shown in the activity monitor. Does this mean that spotlight is still indexing or are these processes somehow stuck? and if they're stuck, how can I fix that? I've rebooted, reset the pram, reset permissions, reset spotlight and even re-imported my files and it just continues and the fan is on a lot despite no activity.

    I just opened the console but couldn't find anything related to mds.

    Any suggestions....I don't want to just turn off spotlight since I use it all the time.

    Thanks!

    Pete

    I just found this in the console:


    25/03/2010 15:27:44 com.apple.launchd[1] (0x1001203f0.mach_init.mdworker[1898]) Exited with exit code: 75

    25/03/2010 20:54:25 mdworker[340] Found source of class (null), but no such class was found.
    25/03/2010 20:54:25 mdworker[340] Could not initialize source from /Users/pete/Library/Application Support/AddressBook/Sources/12A3382B-AE79-4216-9412-55372B58AC1B

    does this help?
     
  2. Hal Itosis macrumors 6502a

    Hal Itosis

    Joined:
    Feb 20, 2010
    #2
    There seem to be several similar threads over in Apple Discussions, all of which are marked 'unanswered'.

    Is "AE79-4216-9412-55372B58AC1B" a file or a folder? Either way, one option might be to move that particular "AE79-4216-9412-55372B58AC1B" item to your desktop (or perhaps the trash), then launch Address Book to verify all looks normal... and see if maybe something new gets created inside the Sources folder. (idunno really).

    If that fixes things, then "AE79-4216-9412-55372B58AC1B" could eventually be erased (better wait a few days). If it borks Address Book immediately, then put it back.
     
  3. Furrybeagle macrumors 6502

    Furrybeagle

    Joined:
    Sep 13, 2004
    #3
    Try disabling spotlight, and then reenabling it again. This should force it to reindex your computer, which will probably fix it. One way to do this is to just add your system volume to Spotlight’s Privacy list, and then remove it. I also believe there are more “thorough” ways to disable/reset spotlight, including disabling the service, and manually deleting the index. Googling “disable Spotlight” should help.
     
  4. PDE thread starter macrumors 68020

    Joined:
    Nov 16, 2005
    #4
    Thanks. I put the whole Library/Application Support/AddressBook in the privacy section of spotlight, checked addressbook and then deleted those numbered folders (which were empty). Then I reset spotlight by putting my main drive under private and letting the re-indexing process start and finish.


    Unfortunately, it didn't help.I'm going to have to disable spotlight to get through my flight later today, and then I'll try manually deleting the spotlight index too.

    thanks,
    P
     
  5. PDE thread starter macrumors 68020

    Joined:
    Nov 16, 2005
    #5
    This is really frustrating and the first time I've had a OS problem in years that I haven't been able to find a solution for.

    I did an archive and install, but because it's snow leopard it doesn't actually seem to clean out the system. It merely installs on top of the old system. So that obviously didn't work. I tried using Onyx to delete the spotlight index and I also removed it manually, but that didn't work either.

    The fans are going and battery life is awful because mds and mdworker are constantly hogging system resources. Can anybody help me with this console information? I don't understand this but it seems like MDS crashed this evening while indexing...

    Process: mds [27]
    Path: /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Support/mds
    Identifier: mds
    Version: ??? (???)
    Code Type: X86-64 (Native)
    Parent Process: launchd [1]

    Date/Time: 2010-03-27 21:25:57.708 +0100
    OS Version: Mac OS X 10.6 (10A432)
    Report Version: 6

    Exception Type: EXC_BAD_ACCESS (SIGSEGV)
    Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
    Crashed Thread: 7 Dispatch queue: Index Flush Scheduler for spindle 1

    Application Specific Information:
    /SourceCache/Spotlight/Spotlight-507.1/index/ContentIndex/CIPositions.c:80: failed assertion 'info' /.Spotlight-V100/Store-V1/Stores/C2485472-E8D1-4355-A8B7-6E6C5D4185E8 (hfs, t: 0x11, st: 0x1, f: 0x480d000)



    Thread 0: Dispatch queue: com.apple.main-thread
    0 libSystem.B.dylib 0x00007fff87887efa mach_msg_trap + 10
    1 libSystem.B.dylib 0x00007fff8788856d mach_msg + 59
    2 com.apple.CoreFoundation 0x00007fff80ee4ce2 __CFRunLoopRun + 2002
    3 com.apple.CoreFoundation 0x00007fff80ee403f CFRunLoopRunSpecific + 575
    4 mds 0x000000010000bd4e 0x100000000 + 48462
    5 mds 0x0000000100004124 0x100000000 + 16676

    Thread 1: Dispatch queue: com.apple.libdispatch-manager
    0 libSystem.B.dylib 0x00007fff878a0c7e kevent + 10
    1 libSystem.B.dylib 0x00007fff878a2b55 _dispatch_mgr_invoke + 154
    2 libSystem.B.dylib 0x00007fff878a2824 _dispatch_queue_invoke + 185
    3 libSystem.B.dylib 0x00007fff878a234e _dispatch_worker_thread2 + 244
    4 libSystem.B.dylib 0x00007fff878a1c80 _pthread_wqthread + 353
    5 libSystem.B.dylib 0x00007fff878a1b1d start_wqthread + 13

    Thread 2:
    0 libSystem.B.dylib 0x00007fff878a1aa2 __workq_kernreturn + 10
    1 libSystem.B.dylib 0x00007fff878a1eb4 _pthread_wqthread + 917
    2 libSystem.B.dylib 0x00007fff878a1b1d start_wqthread + 13

    Thread 3:
    0 libSystem.B.dylib 0x00007fff878a1aa2 __workq_kernreturn + 10
    1 libSystem.B.dylib 0x00007fff878a1eb4 _pthread_wqthread + 917
    2 libSystem.B.dylib 0x00007fff878a1b1d start_wqthread + 13

    Thread 4: Dispatch queue: Main compaction scheduler
    0 com.apple.spotlight.index 0x00000001001836f4 PositionReorderAppend + 1268
    1 com.apple.spotlight.index 0x000000010018a43b PayloadPulsesReorder + 6299
    2 com.apple.spotlight.index 0x000000010018c22e compactPayloads + 894
    3 com.apple.spotlight.index 0x000000010016aa98 index_compact + 2456
    4 com.apple.spotlight.index 0x0000000100154f9e ContentIndexCompact + 505
    5 com.apple.spotlight.index 0x00000001001239cb _swapIndex2(flush_index_ctx*, unsigned char) + 966
    6 com.apple.spotlight.index 0x0000000100130bbd runLoop + 54
    7 com.apple.spotlight.index 0x000000010013feea work_fun + 623
    8 libSystem.B.dylib 0x00007fff878a2943 _dispatch_queue_drain + 251
    9 libSystem.B.dylib 0x00007fff878a27a4 _dispatch_queue_invoke + 57
    10 libSystem.B.dylib 0x00007fff878a234e _dispatch_worker_thread2 + 244
    11 libSystem.B.dylib 0x00007fff878a1c80 _pthread_wqthread + 353
    12 libSystem.B.dylib 0x00007fff878a1b1d start_wqthread + 13

    Thread 5:
    0 libSystem.B.dylib 0x00007fff878a1aa2 __workq_kernreturn + 10
    1 libSystem.B.dylib 0x00007fff878a1eb4 _pthread_wqthread + 917
    2 libSystem.B.dylib 0x00007fff878a1b1d start_wqthread + 13

    Thread 6: Dispatch queue: Main SetAttr scheduler
    0 libSystem.B.dylib 0x00007fff878c2ace __semwait_signal + 10
    1 libSystem.B.dylib 0x00007fff878c68c1 _pthread_cond_wait + 1286
    2 libSystem.B.dylib 0x00007fff878e8865 pthread_rwlock_wrlock + 281
    3 com.apple.spotlight.index 0x00000001001d6019 poslock + 9
    4 com.apple.spotlight.index 0x000000010019bc0b TermUpdateSetAddDocumentInfo + 59
    5 com.apple.spotlight.index 0x00000001001691a0 setDocumentAttributes + 848
    6 com.apple.spotlight.index 0x0000000100153cf4 ContentIndexUpdateContent + 419
    7 com.apple.spotlight.index 0x0000000100124df5 si_writeBackAndIndex + 1166
    8 com.apple.spotlight.index 0x00000001001355a4 setAttributes + 4439
    9 com.apple.spotlight.index 0x0000000100130bbd runLoop + 54
    10 com.apple.spotlight.index 0x000000010013feea work_fun + 623
    11 libSystem.B.dylib 0x00007fff878a2943 _dispatch_queue_drain + 251
    12 libSystem.B.dylib 0x00007fff878a27a4 _dispatch_queue_invoke + 57
    13 libSystem.B.dylib 0x00007fff878a234e _dispatch_worker_thread2 + 244
    14 libSystem.B.dylib 0x00007fff878a1c80 _pthread_wqthread + 353
    15 libSystem.B.dylib 0x00007fff878a1b1d start_wqthread + 13

    Thread 7 Crashed: Dispatch queue: Index Flush Scheduler for spindle 1
    0 com.apple.spotlight.index 0x00000001001df45b _dead_beef + 4
    1 com.apple.spotlight.index 0x00000001001d6627 PositionNodeFinalizeDocument + 1287
    2 com.apple.spotlight.index 0x00000001001d67be build_position_run + 190
    3 com.apple.spotlight.index 0x00000001001a2892 TermUpdateSetFlushPositionUpdates + 898
    4 com.apple.spotlight.index 0x000000010016dbc2 index_FlushCache + 1266
    5 com.apple.spotlight.index 0x0000000100155aa3 ContentIndexFlushCache + 250
    6 com.apple.spotlight.index 0x0000000100122e9c _flushCache + 1113
    7 com.apple.spotlight.index 0x0000000100130bbd runLoop + 54
    8 com.apple.spotlight.index 0x000000010013feea work_fun + 623
    9 libSystem.B.dylib 0x00007fff878a2943 _dispatch_queue_drain + 251
    10 libSystem.B.dylib 0x00007fff878a27a4 _dispatch_queue_invoke + 57
    11 libSystem.B.dylib 0x00007fff878a234e _dispatch_worker_thread2 + 244
    12 libSystem.B.dylib 0x00007fff878a1c80 _pthread_wqthread + 353
    13 libSystem.B.dylib 0x00007fff878a1b1d start_wqthread + 13

    Thread 7 crashed with X86 Thread State (64-bit):
    rax: 0x0000000000000000 rbx: 0x0000000000000000 rcx: 0x00007fff70f565d0 rdx: 0x00007fff70f56560
    rdi: 0x0000000100273400 rsi: 0x0000000100500000 rbp: 0x000000010329d0d0 rsp: 0x000000010329d0d0
    r8: 0x0000000000000001 r9: 0x000000010052fcd0 r10: 0x00000001005655f0 r11: 0x0000000000000011
    r12: 0x0000000000000000 r13: 0x0000000116b45000 r14: 0x00000001032ad210 r15: 0x000000000009925b
    rip: 0x00000001001df45b rfl: 0x0000000000010246 cr2: 0x0000000000000000

    Binary Images:
    0x100000000 - 0x1000ccfef mds ??? (???) <A39CF0D3-C64E-0660-5BDE-ADC62793EF8E> /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Support/mds
    0x100101000 - 0x100226ff7 com.apple.spotlight.index 10.6.0 (507.1) <100CA045-F323-9A58-FA85-146AC23CEF23> /System/Library/PrivateFrameworks/SpotlightIndex.framework/Versions/A/SpotlightIndex
    0x100267000 - 0x100269fff com.apple.MDSChannel 1.0.1 (1.0.1) <63195212-0EBF-2FE2-AEFC-739040DFAB30> /System/Library/PrivateFrameworks/MDSChannel.framework/Versions/A/MDSChannel
    0x100600000 - 0x100606fff libgermantok.dylib ??? (???) <A87630B4-D01C-8724-54D2-5E8CC85FC07B> /usr/lib/libgermantok.dylib
    0x10a449000 - 0x10a559fef libmecab.1.0.0.dylib ??? (???) <E321EA43-4F4C-6561-3E87-4081904D53F3> /usr/lib/libmecab.1.0.0.dylib
    0x7fff5fc00000 - 0x7fff5fc3bdef dyld 132.1 (???) <B633F790-4DDB-53CD-7ACF-2A3682BCEA9F> /usr/lib/dyld
    0x7fff80003000 - 0x7fff80007ff7 libmathCommon.A.dylib ??? (???) <95718673-FEEE-B6ED-B127-BCDBDB60D4E5> /usr/lib/system/libmathCommon.A.dylib
    0x7fff8050e000 - 0x7fff80840fef com.apple.CoreServices.CarbonCore 859.1 (859.1) <5712C4C1-B18B-88EE-221F-DA04A8EDA029> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
    0x7fff809af000 - 0x7fff809b5ff7 com.apple.DiskArbitration 2.3 (2.3) <857F6E43-1EF4-7D53-351B-10DE0A8F992A> /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
    0x7fff80b5a000 - 0x7fff80c71fef libxml2.2.dylib ??? (???) <6D4C196C-B061-CBCD-AAFD-A21736A8425C> /usr/lib/libxml2.2.dylib
    0x7fff80de8000 - 0x7fff80e88fff com.apple.LaunchServices 360.3 (360.3) <02FFE657-CC7A-5266-F06E-8732E28F70A9> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
    0x7fff80e99000 - 0x7fff8100cfef com.apple.CoreFoundation 6.6 (550) <04EC0CC2-6CE4-4EE0-03B9-6C5109398CB1> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x7fff814f6000 - 0x7fff8151efff com.apple.DictionaryServices 1.1 (1.1) <D57BA55A-4CC5-5C17-8077-AEEA27A01C7A> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices
    0x7fff81ff5000 - 0x7fff820aefff libsqlite3.dylib ??? (???) <5A15E12A-AE8F-1A36-BBC7-564E7D7AD0FB> /usr/lib/libsqlite3.dylib
    0x7fff822aa000 - 0x7fff823a2fe7 libiconv.2.dylib ??? (???) <ECEE3D93-B5E3-F0E0-803E-CA3DC3B33D57> /usr/lib/libiconv.2.dylib
    0x7fff823e1000 - 0x7fff823e2fff liblangid.dylib ??? (???) <EA4D1607-2BD5-2EE2-2A3B-632EEE5A444D> /usr/lib/liblangid.dylib
    0x7fff823eb000 - 0x7fff823fcfef libz.1.dylib ??? (???) <3A7A4C48-A4C8-A78A-8B87-C0DDF6601AC8> /usr/lib/libz.1.dylib
    0x7fff8245d000 - 0x7fff82488ff7 libxslt.1.dylib ??? (???) <87A0B228-B24A-C426-C3FB-B40D7258DD49> /usr/lib/libxslt.1.dylib
    0x7fff82eff000 - 0x7fff830bcfff libicucore.A.dylib ??? (???) <224721C0-EC21-94D0-6484-66C603C34CBE> /usr/lib/libicucore.A.dylib
    0x7fff83afc000 - 0x7fff83b46ff7 com.apple.Metadata 10.6.0 (507.1) <AA0DF8E0-9B5B-2377-9B20-884919E28994> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
    0x7fff83b50000 - 0x7fff83c0cff7 com.apple.CoreServices.OSServices 352 (352) <CD933BBD-B260-552F-E64E-291D6ED3091A> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
    0x7fff8427e000 - 0x7fff8428bff7 com.apple.AppleFSCompression 1.0 (1.0) <597C8E16-90C0-A7AA-7236-5D1281F20AD0> /System/Library/PrivateFrameworks/AppleFSCompression.framework/Versions/A/AppleFSCompression
    0x7fff8428c000 - 0x7fff842c7fef com.apple.AE 496 (496) <6AFD62E0-DD92-4F04-A73A-90224D80593D> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
    0x7fff84313000 - 0x7fff84324fff com.apple.DSObjCWrappers.Framework 10.6 (134) <3C08225D-517E-2822-6152-F6EB13A4ADF9> /System/Library/PrivateFrameworks/DSObjCWrappers.framework/Versions/A/DSObjCWrappers
    0x7fff84489000 - 0x7fff84498fff com.apple.NetFS 3.2 (3.2) <61E3D8BE-A529-20BF-1A11-026EC774820D> /System/Library/Frameworks/NetFS.framework/Versions/A/NetFS
    0x7fff8475a000 - 0x7fff84826fff com.apple.CFNetwork 454.4 (454.4) <E7721AD8-3177-8749-60F7-5EF323E6492B> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
    0x7fff84b03000 - 0x7fff84d84fe7 com.apple.Foundation 6.6 (751) <CCE98C5C-DFEA-6C80-A014-A5985437072E> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
    0x7fff84d85000 - 0x7fff84dc6ff7 com.apple.SystemConfiguration 1.10 (1.10) <E3FF1FC8-C760-2047-F954-0D283DD0F714> /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
    0x7fff84f30000 - 0x7fff84f46fef libbsm.0.dylib ??? (???) <42D3023A-A1F7-4121-6417-FCC6B51B3E90> /usr/lib/libbsm.0.dylib
    0x7fff850a8000 - 0x7fff8515efe7 libobjc.A.dylib ??? (???) <261D97A3-225B-8A00-56AA-F9F27973063F> /usr/lib/libobjc.A.dylib
    0x7fff85267000 - 0x7fff85275ff7 libkxld.dylib ??? (???) <823B6BE6-E952-3B3C-3633-8F4D6C4606A8> /usr/lib/system/libkxld.dylib
    0x7fff853f0000 - 0x7fff853fcfef libbz2.1.0.dylib ??? (???) <4AA81AA7-DF37-6430-07D1-F59F37AEC357> /usr/lib/libbz2.1.0.dylib
    0x7fff8548f000 - 0x7fff854ecfef com.apple.framework.IOKit 2.0 (???) <65AA6170-12E3-BFB5-F982-E0C433610A1F> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
    0x7fff854ef000 - 0x7fff85529fff com.apple.bom 10.0 (164) <E5C9AFBD-68C1-197E-72B0-B43295DC87DC> /System/Library/PrivateFrameworks/Bom.framework/Versions/A/Bom
    0x7fff859f6000 - 0x7fff859f6ff7 com.apple.CoreServices 44 (44) <210A4C56-BECB-E3E4-B6EE-7EC53E02265D> /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
    0x7fff85f19000 - 0x7fff85f66ff7 libauto.dylib ??? (???) <8658DB85-C611-1212-44E5-5B2539018FA0> /usr/lib/libauto.dylib
    0x7fff86b36000 - 0x7fff86bb3fef libstdc++.6.dylib ??? (???) <35ECA411-2C08-FD7D-11B1-1B7A04921A5C> /usr/lib/libstdc++.6.dylib
    0x7fff875a1000 - 0x7fff87825fff com.apple.security 6.0 (36910) <F7431448-BC2E-835D-E7A2-E47E0A5CB984> /System/Library/Frameworks/Security.framework/Versions/A/Security
    0x7fff87887000 - 0x7fff87a46fe7 libSystem.B.dylib ??? (???) <1AABDC4B-CBAE-F40C-405C-DAE785959F57> /usr/lib/libSystem.B.dylib
    0x7fff88b12000 - 0x7fff88b32fef com.apple.DirectoryService.Framework 3.6 (621) <925EE208-03B2-B24A-3686-57EAFBDA5ADF> /System/Library/Frameworks/DirectoryService.framework/Versions/A/DirectoryService
    0x7fff88bd0000 - 0x7fff88c60fff com.apple.SearchKit 1.3.0 (1.3.0) <4175DC31-1506-228A-08FD-C704AC9DF642> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
    0x7fffffe00000 - 0x7fffffe01fff libSystem.B.dylib ??? (???) <1AABDC4B-CBAE-F40C-405C-DAE785959F57> /usr/lib/libSystem.B.dylib
     
  6. Hal Itosis macrumors 6502a

    Hal Itosis

    Joined:
    Feb 20, 2010
    #6
    Need to boot from a system DVD and repair the disk with Disk Utility (or via fsck -fy in single-user mode) first, to eliminate directory/catalog problems as being the potential cause of all this.
     
  7. PDE thread starter macrumors 68020

    Joined:
    Nov 16, 2005
    #7
    Sorry, forgot to mention, but I did that the other day. I'm going to do it again now given that I've been messing around since...

    cheers,
    pete


    Update: Just ran disk utility off snow leopard disk and everything was fine....checked permissions too.
     
  8. Hal Itosis macrumors 6502a

    Hal Itosis

    Joined:
    Feb 20, 2010
    #8
    Well, then chances are some file is corrupt (or maybe a wonky 3rd-party .mdimporter bundle?).

    If i were to buy a new HD however, i'd opt to install a clean OS on it and then use Migration Assistant to import all user accounts only (at the very first boot, when no accounts exist as yet). Not as "convenient" perhaps, but (apparently) less prone to issues.

    [yes, software updates will need to be run... and some apps will need to be re-installed, though perhaps they too could be included in the initial migration.]
     
  9. PDE thread starter macrumors 68020

    Joined:
    Nov 16, 2005
    #9
    since I'm traveling, I've just turned off spotlight and am using quicksilver for now. Annoying, but QS is pretty good and will be fine until I have the time to try to fix this again..

    Thanks for suggestions!
     
  10. DoFoT9 macrumors P6

    DoFoT9

    Joined:
    Jun 11, 2007
    Location:
    Singapore
    #10
    is there a solution for this? i am basically having the exact same problem with a server in our business. cannot afford to have downtime rebooting, reinstalling the OS etc.

    have reindexed the system many times (about 10 times all up), and this does not resolve. the drives spotlight index files have been completely erased.

    any ideas>
     
  11. Animalk macrumors 6502

    Joined:
    May 27, 2007
    Location:
    Montreal Canada
    #11
    I've encountered this problem before.

    I had to open activity monitor and see which files the process currently has opened and go through them all to find the corrupted culprit.

    Good luck.
     

Share This Page