Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Bobbi Flekman

macrumors regular
Original poster
Jan 14, 2008
176
0
It used to be that shutdown was "instantaneous" (2, 3 seconds or so). So when all of a sudden my shutdown time became 20 seconds I got interested. Why the wait?

Questions: What is your shutdown time?

According to the system.log from yesterday's shutdown (other shutdowns are similar):

Apr 9 22:57:38 Fiona shutdown[431]: halt by ...:
Apr 9 22:57:38 Fiona shutdown[431]: SHUTDOWN_TIME: 1207774658 599340
Apr 9 22:57:38 Fiona com.apple.loginwindow[36]: Shutdown NOW!
Apr 9 22:57:38 Fiona com.apple.loginwindow[36]: System shutdown time has arrived^G^G
Apr 9 22:57:46 Fiona mds[35]: (Error) Import: importer:0x87dc00 Importer start failed for 501 (kr:268435459 (ipc/send) invalid destination port)
Apr 9 22:57:46 Fiona mds[35]: (Fatal) Server: Assertion failure in -[MDSServiceUtil machPortForBootstrapName:targetClassName:andUid:usingRosetta:] (/SourceCache/Spotlight/Spotlight-398.8/server/MDSWorkerProcess/MDSServiceUtil.m:98) -- Mach error 1105: unknown error code
Apr 9 22:57:46 Fiona com.apple.launchd[1] (com.apple.metadata.mds[35]): Exited abnormally: Illegal instruction

Apr 9 22:57:58 Fiona com.apple.launchd[1] (com.apple.SystemStarter[31]): Exit timeout elapsed (20 seconds). Killing.
Apr 9 22:57:58 Fiona com.apple.launchd[1] (com.apple.SystemStarter[31]): Exited: Killed
Interesting... Illegal instructions, Unknown error code. Why is Spotlight always working at the moment of shutdown? What is happening in the unshown 10 seconds?

Any clues out there?
 
Definitely: Malicious daemon process! Possibly: Buggy driver such as M-Audio USB MIDI

A precise investigation is hard, because launchd tells that the shutdown process was delayed, but not why!

Hence the troublemaker can be any software which gets started by launchd as a daemon process (permanent background application).

I had the problem, and my troublemaker was a malfunctioning USB MIDI Driver from M-Audio, which as a side effect even deactivated my boot manager rEFIt!

After deinstalling the flawed driver, everything worked fine again.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.