Uderc programming article aggregator sites

How do I fix: DirectoryServices: Job appears to have crashed: Bus error

Tags:
Answers: Have 6 answers
Advertisement
Can anyone help with this problem? The only solution I have found is to erase and reinstall the OS. A reinstall alone will not fix it.
I have experienced this problem on 3 Macs now, and Apple Care has virtually rebuilt my mini attempting to fix it. However to date, I haven't been able to find anyone at Apple who will look at the data. Here is what appears endlessly in /var/log/system.log:
Apr 1 08:55:43 Peters-MacBook-Air com.apple.launchd[1] (com.apple.DirectoryServices[161]): Job appears to have crashed: Bus error
Apr 1 08:55:43 Peters-MacBook-Air com.apple.launchd[1] (com.apple.DirectoryServices): Throttling respawn: Will start in 8 seconds
Apr 1 08:55:43 Peters-MacBook-Air com.apple.ReportCrash.Root[156]: 2011-04-01 08:55:43.390 ReportCrash[156:140b] Saved crash report for DirectoryService[161] version ??? (???) to /Library/Logs/DiagnosticReports/DirectoryService2011-04-01-085543localhost.crash
Apr 1 08:55:51 Peters-MacBook-Air DirectoryService[162]: Improper shutdown detected
Apr 1 08:55:53 Peters-MacBook-Air com.apple.launchd[1] (com.apple.DirectoryServices[162]): Job appears to have crashed: Bus error
Apr 1 08:55:53 Peters-MacBook-Air com.apple.launchd[1] (com.apple.DirectoryServices): Throttling respawn: Will start in 8 seconds
Apr 1 08:55:53 Peters-MacBook-Air com.apple.ReportCrash.Root[156]: 2011-04-01 08:55:53.788 ReportCrash[156:380b] Saved crash report for DirectoryService[162] version ??? (???) to /Library/Logs/DiagnosticReports/DirectoryService2011-04-01-085553localhost.crash
Apr 1 08:56:01 Peters-MacBook-Air DirectoryService[163]: Improper shutdown detected
Apr 1 08:56:04 Peters-MacBook-Air com.apple.launchd[1] (com.apple.DirectoryServices[163]): Job appears to have crashed: Bus error
Apr 1 08:56:04 Peters-MacBook-Air com.apple.launchd[1] (com.apple.DirectoryServices): Throttling respawn: Will start in 8 seconds
Apr 1 08:56:04 Peters-MacBook-Air com.apple.ReportCrash.Root[156]: 2011-04-01 08:56:04.237 ReportCrash[156:472f] Saved crash report for DirectoryService[163] version ??? (???) to /Library/Logs/DiagnosticReports/DirectoryService2011-04-01-085604localhost.crash
Apr 1 08:56:12 Peters-MacBook-Air DirectoryService[165]: Improper shutdown detected
Here is one of the crash logs.
Process: DirectoryService [226]
Path: /usr/sbin/DirectoryService
Identifier: DirectoryService
Version: ??? (???)
Code Type: X86-64 (Native)
Parent Process: launchd [1]
Date/Time: 2011-04-04 10:30:15.232 -0600
OS Version: Mac OS X 10.6.6 (10J567)
Report Version: 6
Exception Type: EXCBADACCESS (SIGBUS)
Exception Codes: 0x000000000000000a, 0x0000000100385000
Crashed Thread: 1 Dispatch queue: com.apple.root.default-priority
Thread 0: Dispatch queue: com.apple.main-thread
0 libSystem.B.dylib 0x00007fff8503f2da machmsgtrap + 10
1 libSystem.B.dylib 0x00007fff8503f94d mach_msg + 59
2 com.apple.CoreFoundation 0x00007fff83955932 __CFRunLoopRun + 1698
3 com.apple.CoreFoundation 0x00007fff83954dbf CFRunLoopRunSpecific + 575
4 com.apple.CoreFoundation 0x00007fff83954b46 CFRunLoopRun + 70
5 DirectoryService 0x000000010000dbe9 main + 3061
6 DirectoryService 0x000000010000cfec start + 52
Thread 1 Crashed: Dispatch queue: com.apple.root.default-priority
0 libSystem.B.dylib 0x00007fff8509a33d strtok_r + 19
1 DirectoryService 0x00000001000a9d04 FlatFileNode::FetchMatchingRecords(sBDPISearchRecordsContext*, void*, unsigned int*) + 1976
2 DirectoryService 0x00000001000acad7 FlatFileNode::InternalSearchRecords(sBDPISearchRecordsContext*, void*, unsigned int*) + 681
3 DirectoryService 0x00000001000acd5b FlatFileNode::SearchRecords(sBDPISearchRecordsContext*, void*, unsigned int*) + 237
4 DirectoryService 0x00000001000a5a5b BaseDirectoryPlugin::GetRecordList(sGetRecordList*) + 309
5 DirectoryService 0x00000001000a68a0 BaseDirectoryPlugin::ProcessRequest(void*) + 584
6 DirectoryService 0x00000001000017fb CRequestHandler::HandlePluginCall(sComData**) + 715
7 DirectoryService 0x00000001000024bc CRequestHandler::HandleRequest(sComData**) + 222
8 DirectoryService 0x000000010002e42a CMessaging::SendInlineMessage(unsigned int) + 148
9 DirectoryService 0x000000010000562b dsGetRecordList + 1113
10 DirectoryService 0x0000000100082929 CCachePlugin::GetRecordListLibInfo(unsigned int, char const*, char const*, unsigned int, tDataList*, sCacheValidation* (*)(unsigned int, unsigned int, kvbuf_t*, tDataBuffer*, tRecordEntry*, unsigned int, void*, CCache*, char const**), kvbuf_t*, void*, CCache*, char const**, sCacheValidation**) + 221
11 DirectoryService 0x000000010008933e CCachePlugin::DSgethostbyname_int(char*, char const*, char const*, int, bool, void**, int*) + 960
12 DirectoryService 0x0000000100089ae2 CCachePlugin::DSgethostbynameservice(kvbuft*, int) + 336
13 DirectoryService 0x000000010008f7e7 CCachePlugin::ProcessLookupRequest(int, char*, int, int) + 811
14 DirectoryService 0x000000010002a0fd libinfoDSmigdoQuery + 559
15 DirectoryService 0x000000010009325a _XQuery + 262
16 DirectoryService 0x0000000100092fea DSlibinfoMIG_server + 106
17 DirectoryService 0x00000001000282a1 dsmigdemux_internaldispatch(mach_msg_headert*, machmsg_headert*) + 65
18 libSystem.B.dylib 0x00007fff850bbe24 machmsgserver + 357
19 libSystem.B.dylib 0x00007fff8507b2c4 dispatch_call_block_andrelease + 15
20 libSystem.B.dylib 0x00007fff85059810 dispatch_workerthread2 + 206
21 libSystem.B.dylib 0x00007fff85059168 pthreadwqthread + 353
22 libSystem.B.dylib 0x00007fff85059005 start_wqthread + 13
Thread 2:
0 libSystem.B.dylib 0x00007fff8503f2da machmsgtrap + 10
1 libSystem.B.dylib 0x00007fff8503f94d mach_msg + 59
2 com.apple.CoreFoundation 0x00007fff83955932 __CFRunLoopRun + 1698
3 com.apple.CoreFoundation 0x00007fff83954dbf CFRunLoopRunSpecific + 575
4 com.apple.CoreFoundation 0x00007fff83954b46 CFRunLoopRun + 70
5 DirectoryService 0x000000010001c784 CPluginRunLoopThread::ThreadMain() + 150
6 ...ectoryServiceCore.Framework 0x00000001001790ac DSCThread::Run() + 36
7 ...ectoryServiceCore.Framework 0x000000010017934b DSLThread::_RunWrapper(void*) + 67
8 libSystem.B.dylib 0x00007fff85078536 pthreadstart + 331
9 libSystem.B.dylib 0x00007fff850783e9 thread_start + 13
Thread 3: Dispatch queue: com.apple.root.high-priority
0 libSystem.B.dylib 0x00007fff8503f316 semaphorewaittrap + 10
1 libSystem.B.dylib 0x00007fff8507b669 dispatch_semaphore_waitslow + 211
2 DirectoryService 0x00000001000286bd ___StartKernelListener_block_invoke8 + 33
3 libSystem.B.dylib 0x00007fff8507b2c4 dispatch_call_block_andrelease + 15
4 libSystem.B.dylib 0x00007fff85059831 dispatch_workerthread2 + 239
5 libSystem.B.dylib 0x00007fff85059168 pthreadwqthread + 353
6 libSystem.B.dylib 0x00007fff85059005 start_wqthread + 13
Thread 4: Dispatch queue: com.apple.libdispatch-manager
0 libSystem.B.dylib 0x00007fff8505816a kevent + 10
1 libSystem.B.dylib 0x00007fff8505a03d dispatch_mgrinvoke + 154
2 libSystem.B.dylib 0x00007fff85059d14 dispatch_queueinvoke + 185
3 libSystem.B.dylib 0x00007fff8505983e dispatch_workerthread2 + 252
4 libSystem.B.dylib 0x00007fff85059168 pthreadwqthread + 353
5 libSystem.B.dylib 0x00007fff85059005 start_wqthread + 13
Thread 5:
0 libSystem.B.dylib 0x00007fff8503f2da machmsgtrap + 10
1 libSystem.B.dylib 0x00007fff8503f94d mach_msg + 59
2 libSystem.B.dylib 0x00007fff8504ac4e vprocmig_lookup2 + 182
3 libSystem.B.dylib 0x00007fff8504aaa5 bootstraplookup2 + 268
4 libSystem.B.dylib 0x00007fff85053ec4 dsrunning + 52
5 libSystem.B.dylib 0x00007fff85053ce1 searchgetmodule + 86
6 libSystem.B.dylib 0x00007fff85053c68 searchitembynumber + 196
7 libSystem.B.dylib 0x00007fff85073a56 getpwuid + 26
8 com.apple.CoreFoundation 0x00007fff8393cf49 _CFUpdateUserInfo + 105
9 com.apple.CoreFoundation 0x00007fff8393ce96 _CFUserName + 22
10 com.apple.CoreFoundation 0x00007fff8393b119 __CFXPreferencesGetManagedSourceForBundleIDAndUser + 537
11 com.apple.CoreFoundation 0x00007fff8393aae7 __CFXPreferencesGetSearchListForBundleID + 119
12 com.apple.CoreFoundation 0x00007fff8393a9fb CFPreferencesCopyAppValue + 43
13 com.apple.CoreFoundation 0x00007fff8393a999 _CFBundleCopyUserLanguages + 665
14 com.apple.CoreFoundation 0x00007fff8393a1b4 _CFBundleAddPreferredLprojNamesInDirectory + 404
15 com.apple.CoreFoundation 0x00007fff83939c8a _CFBundleGetLanguageSearchList + 170
16 com.apple.CoreFoundation 0x00007fff8393a4ba _CFBundleAddPreferredLprojNamesInDirectory + 1178
17 com.apple.CoreFoundation 0x00007fff83993e97 _CFBundleCopyLanguageSearchListInDirectory + 167
18 com.apple.CoreFoundation 0x00007fff839990d9 CFBundleCopyResourceURLsOfTypeInDirectory + 249
19 DirectoryService 0x000000010001eb92 CPluginHandler::LoadPlugins(unsigned int) + 388
20 DirectoryService 0x000000010000e9c9 CPluginHandler::ThreadMain() + 491
21 ...ectoryServiceCore.Framework 0x00000001001790ac DSCThread::Run() + 36
22 ...ectoryServiceCore.Framework 0x000000010017934b DSLThread::_RunWrapper(void*) + 67
23 libSystem.B.dylib 0x00007fff85078536 pthreadstart + 331
24 libSystem.B.dylib 0x00007fff850783e9 thread_start + 13
Thread 6: Dispatch queue: com.apple.root.default-priority
0 libSystem.B.dylib 0x00007fff8503f2da machmsgtrap + 10
1 libSystem.B.dylib 0x00007fff8503f94d mach_msg + 59
2 libSystem.B.dylib 0x00007fff850bbe93 machmsgserver + 468
3 libSystem.B.dylib 0x00007fff8507b2c4 dispatch_call_block_andrelease + 15
4 libSystem.B.dylib 0x00007fff85059810 dispatch_workerthread2 + 206
5 libSystem.B.dylib 0x00007fff85059168 pthreadwqthread + 353
6 libSystem.B.dylib 0x00007fff85059005 start_wqthread + 13
Thread 7: Dispatch queue: com.apple.root.high-priority
0 libSystem.B.dylib 0x00007fff8507b8c2 syscall + 10
1 DirectoryService 0x00000001000284ca ___StartKernelListener_block_invoke9 + 72
2 libSystem.B.dylib 0x00007fff8507b2c4 dispatch_call_block_andrelease + 15
3 libSystem.B.dylib 0x00007fff85059831 dispatch_workerthread2 + 239
4 libSystem.B.dylib 0x00007fff85059168 pthreadwqthread + 353
5 libSystem.B.dylib 0x00007fff85059005 start_wqthread + 13
Thread 1 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x000000010040c300 rcx: 0x00007fff70996630 rdx: 0x000000010040bab0
rdi: 0x0000000100385000 rsi: 0x00000001000eebea rbp: 0x000000010037fd70 rsp: 0x000000010037fd70
r8: 0x0000000000000000 r9: 0x000000010040c1e0 r10: 0x0000000000000001 r11: 0x0000000000000011
r12: 0x0000000000000000 r13: 0x0000000000000001 r14: 0x000000010040c380 r15: 0x000000010037fea0
rip: 0x00007fff8509a33d rfl: 0x0000000000010206 cr2: 0x0000000100385000
Binary Images:
0x100000000 - 0x100120ff7 +DirectoryService ??? (???) <910DBBCD-D741-1530-210F-9A3944045A5B> /usr/sbin/DirectoryService
0x100171000 - 0x100182fff com.apple.DirectoryServiceCore.Framework 3.6 (621.9) <16FCF0D0-89B6-6BD2-F8CA-443E1A89307C> /System/Library/PrivateFrameworks/DirectoryServiceCore.framework/Versions/A/Dir ectoryServiceCore
0x7fff5fc00000 - 0x7fff5fc3bdef dyld 132.1 (???) <DB8B8AB0-0C97-B51C-BE8B-B79895735A33> /usr/lib/dyld
0x7fff80a41000 - 0x7fff80b58fef libxml2.2.dylib 10.3.0 (compatibility 10.0.0) <AFE91118-DBF3-6313-37B8-8A2002C6A46B> /usr/lib/libxml2.2.dylib
0x7fff80bc6000 - 0x7fff80c7cfff libobjc.A.dylib 227.0.0 (compatibility 1.0.0) <1960E662-D35C-5D98-EB16-D43166AE6A22> /usr/lib/libobjc.A.dylib
0x7fff813f6000 - 0x7fff81445ff7 com.apple.DirectoryService.PasswordServerFramework 6.0 (6.0) <F5B744D7-AEAF-6B66-43CF-6E31CDA18EAB> /System/Library/PrivateFrameworks/PasswordServer.framework/Versions/A/PasswordS erver
0x7fff81446000 - 0x7fff8144aff7 libmathCommon.A.dylib 315.0.0 (compatibility 1.0.0) <95718673-FEEE-B6ED-B127-BCDBDB60D4E5> /usr/lib/system/libmathCommon.A.dylib
0x7fff8144b000 - 0x7fff814ebfff com.apple.LaunchServices 362.2 (362.2) <A8EDC37C-1D40-5ED0-49BE-90EF110A6B3A> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchS ervices.framework/Versions/A/LaunchServices
0x7fff814ec000 - 0x7fff81569fef libstdc++.6.dylib 7.9.0 (compatibility 7.0.0) <35ECA411-2C08-FD7D-11B1-1B7A04921A5C> /usr/lib/libstdc++.6.dylib
0x7fff817a6000 - 0x7fff817d1ff7 libxslt.1.dylib 3.24.0 (compatibility 3.0.0) <6589F0FC-41DB-8494-CA8B-487F4E328EB9> /usr/lib/libxslt.1.dylib
0x7fff821e1000 - 0x7fff82467fff com.apple.security 6.1.1 (37594) <1B4E1ABD-1BB3-DA49-F574-0EEB23E73C6A> /System/Library/Frameworks/Security.framework/Versions/A/Security
0x7fff824fd000 - 0x7fff82525fff com.apple.DictionaryServices 1.1.2 (1.1.2) <E9269069-93FA-2B71-F9BA-FDDD23C4A65E> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Diction aryServices.framework/Versions/A/DictionaryServices
0x7fff828c2000 - 0x7fff82922fe7 com.apple.framework.IOKit 2.0 (???) <D107CB8A-5182-3AC4-35D0-07068A695C05> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x7fff82968000 - 0x7fff8297afe7 libsasl2.2.dylib 3.15.0 (compatibility 3.0.0) <30FE378B-99FE-8C7C-06D0-A3AA0A0A70D4> /usr/lib/libsasl2.2.dylib
0x7fff829ff000 - 0x7fff82a20fff libresolv.9.dylib 41.0.0 (compatibility 1.0.0) <9B7AEE96-D18E-5ECF-9837-BD5CFD397831> /usr/lib/libresolv.9.dylib
0x7fff83909000 - 0x7fff83a80fe7 com.apple.CoreFoundation 6.6.4 (550.42) <770C572A-CF70-168F-F43C-242B9114FCB5> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x7fff84e33000 - 0x7fff84e44ff7 libz.1.dylib 1.2.3 (compatibility 1.0.0) <5BAFAE5C-2307-C27B-464D-582A10A6990B> /usr/lib/libz.1.dylib
0x7fff84ee3000 - 0x7fff84f2ffff libauto.dylib ??? (???) <F7221B46-DC4F-3153-CE61-7F52C8C293CF> /usr/lib/libauto.dylib
0x7fff84f7b000 - 0x7fff84fb8fff com.apple.LDAPFramework 2.0 (120.1) <A890D6E1-2721-1C1B-3B3C-13ACE5EF6B3D> /System/Library/Frameworks/LDAP.framework/Versions/A/LDAP
0x7fff84ff3000 - 0x7fff8503dff7 com.apple.Metadata 10.6.3 (507.15) <5170FCE0-ED6C-2E3E-AB28-1DDE3F628FC5> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadat a.framework/Versions/A/Metadata
0x7fff8503e000 - 0x7fff851fffff libSystem.B.dylib 125.2.1 (compatibility 1.0.0) <71E6D4C9-F945-6EC2-998C-D61AD590DAB6> /usr/lib/libSystem.B.dylib
0x7fff857a0000 - 0x7fff857a1ff7 com.apple.TrustEvaluationAgent 1.1 (1) <A91CE5B9-3C63-5F8C-5052-95CCAB866F72> /System/Library/PrivateFrameworks/TrustEvaluationAgent.framework/Versions/A/Tru stEvaluationAgent
0x7fff857c5000 - 0x7fff85882ff7 com.apple.CoreServices.OSServices 357 (357) <ABB9A264-05D8-DFF1-35DB-C4B19C4E0B71> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServi ces.framework/Versions/A/OSServices
0x7fff85883000 - 0x7fff85a41fff libicucore.A.dylib 40.0.0 (compatibility 1.0.0) <781E7B63-2AD0-E9BA-927C-4521DB616D02> /usr/lib/libicucore.A.dylib
0x7fff85b42000 - 0x7fff85b83fff com.apple.SystemConfiguration 1.10.5 (1.10.2) <FB39F09C-57BB-D8CC-348D-93E00C602F7D> /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfi guration
0x7fff85fab000 - 0x7fff8605afff edu.mit.Kerberos 6.5.10 (6.5.10) <05AEA348-2288-E1C0-8F10-0D8880AE7530> /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos
0x7fff861c2000 - 0x7fff8627bfff libsqlite3.dylib 9.6.0 (compatibility 9.0.0) <2C5ED312-E646-9ADE-73A9-6199A2A43150> /usr/lib/libsqlite3.dylib
0x7fff8627c000 - 0x7fff86292fef libbsm.0.dylib ??? (???) <0321D32C-9FE1-3919-E03E-2530A0C1191B> /usr/lib/libbsm.0.dylib
0x7fff86958000 - 0x7fff86a79fe7 libcrypto.0.9.8.dylib 0.9.8 (compatibility 0.9.8) <48AEAFE1-21F4-B3C8-4199-35AD5E8D0613> /usr/lib/libcrypto.0.9.8.dylib
0x7fff86c7c000 - 0x7fff86cb6fff libssl.0.9.8.dylib 0.9.8 (compatibility 0.9.8) <C7153747-50E3-32DA-426F-CC4C505D1D6C> /usr/lib/libssl.0.9.8.dylib
0x7fff8740e000 - 0x7fff8741cff7 libkxld.dylib ??? (???) <4016E9E6-0645-5384-A697-2775B5228113> /usr/lib/system/libkxld.dylib
0x7fff87454000 - 0x7fff87788fff com.apple.CoreServices.CarbonCore 861.23 (861.23) <08F360FA-1771-4F0B-F356-BEF68BB9D421> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonC ore.framework/Versions/A/CarbonCore
0x7fff878b9000 - 0x7fff878b9ff7 com.apple.CoreServices 44 (44) <DC7400FB-851E-7B8A-5BF6-6F50094302FB> /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
0x7fff8864d000 - 0x7fff88688fff com.apple.AE 496.4 (496.4) <CB905496-4D6B-F26A-399D-840D26DBEE5B> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.fram ework/Versions/A/AE
0x7fff88878000 - 0x7fff8894afe7 com.apple.CFNetwork 454.11.5 (454.11.5) <B3E2BE12-D7AA-5940-632A-1E5E7BF8E6E3> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwo rk.framework/Versions/A/CFNetwork
0x7fff8894b000 - 0x7fff88bceff7 com.apple.Foundation 6.6.4 (751.42) <9A99D378-E97A-8C0F-3857-D0FAA30FCDD5> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
0x7fff88e7f000 - 0x7fff88f0ffff com.apple.SearchKit 1.3.0 (1.3.0) <45BA1053-9196-3C2F-2421-AFF5E09627CC> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchK it.framework/Versions/A/SearchKit
0x7fff89120000 - 0x7fff8912ffff com.apple.NetFS 3.2.1 (3.2.1) <4396CAD7-FDAF-8C63-97FA-74E7124DFF2A> /System/Library/Frameworks/NetFS.framework/Versions/A/NetFS
0x7fff8913e000 - 0x7fff89144fff com.apple.DiskArbitration 2.3.1 (2.3.1) <D5D3AE5F-83AC-0CEB-2DC3-755F0CC20A4E> /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
0x7fffffe00000 - 0x7fffffe01fff libSystem.B.dylib ??? (???) <71E6D4C9-F945-6EC2-998C-D61AD590DAB6> /usr/lib/libSystem.B.dylib
Advertisement
The best answer: Any fix for this yet?
com.apple.DirectoryServices crashes and attempts to restart every 10 seconds on my system:
10/10/11 4:05:29 PM    com.apple.launchd[1]    (com.apple.DirectoryServices[1791]) Job appears to have crashed: Bus error
10/10/11 4:05:29 PM    com.apple.launchd[1]    (com.apple.DirectoryServices) Throttling respawn: Will start in 7 seconds
10/10/11 4:05:29 PM    com.apple.ReportCrash.Root[1789]    2011-10-10 16:05:29.978 ReportCrash[1789:4543] Saved crash report for DirectoryService[1791] version ??? (???) to /Library/Logs/DiagnosticReports/DirectoryService_2011-10-10-160529_localhost.cr ash