Constant high CPU after Security Update today

I installed the Security Update that was made available today. Now, I have constant high CPU from a process called 'MRT'. In the Console Log, I see the following:

5/31/11 8:28:26 PM com.apple.launchd[1] (com.apple.mrt) Throttling respawn: Will start in 1 seconds

5/31/11 8:28:36 PM com.apple.launchd[1] (com.apple.mrt[57302]) Exited with exit code: 4

5/31/11 8:28:36 PM com.apple.launchd[1] (com.apple.mrt) Throttling respawn: Will start in 1 seconds

5/31/11 8:28:46 PM com.apple.launchd[1] (com.apple.mrt[57306]) Exited with exit code: 4

5/31/11 8:28:46 PM com.apple.launchd[1] (com.apple.mrt) Throttling respawn: Will start in 2 seconds

5/31/11 8:28:56 PM com.apple.launchd[1] (com.apple.mrt[57308]) Exited with exit code: 4

5/31/11 8:28:56 PM com.apple.launchd[1] (com.apple.mrt) Throttling respawn: Will start in 3 seconds

5/31/11 8:29:06 PM com.apple.launchd[1] (com.apple.mrt[57314]) Exited with exit code: 4

5/31/11 8:29:06 PM com.apple.launchd[1] (com.apple.mrt) Throttling respawn: Will start in 3 seconds

5/31/11 8:29:19 PM com.apple.launchd[1] (com.apple.mrt[57315]) Exited with exit code: 4

5/31/11 8:29:19 PM com.apple.launchd[1] (com.apple.mrt) Throttling respawn: Will start in 1 seconds

5/31/11 8:29:28 PM com.apple.launchd[1] (com.apple.mrt[57323]) Exited with exit code: 4

5/31/11 8:29:28 PM com.apple.launchd[1] (com.apple.mrt) Throttling respawn: Will start in 3 seconds

5/31/11 8:29:38 PM com.apple.launchd[1] (com.apple.mrt[57327]) Exited with exit code: 4

5/31/11 8:29:38 PM com.apple.launchd[1] (com.apple.mrt) Throttling respawn: Will start in 3 seconds

5/31/11 8:29:50 PM com.apple.launchd[1] (com.apple.mrt[57329]) Exited with exit code: 4

5/31/11 8:29:50 PM com.apple.launchd[1] (com.apple.mrt) Throttling respawn: Will start in 2 seconds


For the good portion of this afternoon into this evening, I've been running at about 80%+ CPU utilization with MRT being the offender based on watching 'top' and Activity Monitor. Anyone else seeing something similar?

MacBook Pro, Mac OS X (10.6.7)

Posted on May 31, 2011 5:35 PM

Reply
105 replies

Jun 1, 2011 9:33 AM in response to ds store

I also did not have MRTAgent (which should be installed in /System/Library/CoreServices/), and was trying to work out what the discrepancy was. I applied the update through Software Update. I just now installed the manual download from support article DL1387, and now I have MRTAgent.app installed. So there appears to be a discrepancy between the Software Update version and the manual download.

Jun 1, 2011 9:55 AM in response to thomas_r.

FWIW, I also used Software Update & don't have MRTAgent in /System/Library/CoreServices/ (or anywhere else I can find).


However there are references to MRT in private/var/log/install log shown in Console. One is to "Begin script: loadMRT" & it shows to errors, "Error unloading: com.apple.mrt.uiagent," & "Error unloading: com.apple.mrt." That is followed by "End script: loadMRT."


Note that errors like the above don't necessarily mean anything is wrong; logs often report as errors events that are expected in some cases & used to alter program flow, for instance by exiting a routine that isn't needed. Only the programmer really can tell if such errors indicate problems, so that isn't much help.


The only other reference I can find is to "PackageKit: Registered bundle" for the file /System/Library/CoreServices/MRTAgent.app/. I assume this is for permissions repairs, & is added to the database whether or not the app is installed.

Jun 1, 2011 10:01 AM in response to thomas_r.

Thomas A Reed wrote:

So there appears to be a discrepancy between the Software Update version and the manual download.

That isn't all that unusual, since Software Update may select a 'smaller installer' package that isn't available from the manual download site. However, I have no idea if that is relevant to the issue here.


One thing that seems like it might be is if only MacBook Pro owners are affected, & if so only if they choose the manual download method. It may also be that only certain MBP models are involved, so it might be useful for those affected to post that info.

Jun 1, 2011 10:15 AM in response to R C-R

Good point. Since I'm affected, here are my system details:


Model Name: MacBook Pro

Model Identifier: MacBookPro5,3

Processor Name: Intel Core 2 Duo

Processor Speed: 2.66 GHz

System Version: Mac OS X 10.6.7 (10J869)

Kernel Version: Darwin 10.7.0



From what I've seen in the thread, deleting the .plist files gets rid of the symptom because it prevents launchd from being able to run these 2 processes. That's not a good long term solution as it appears to disable MRT. If you do this and you reboot and notice that CPU utilization is normal and don't see any MRT or MRTAgent.app processes running, you will need to re-install the manual download. I did this and as soon as I did, I had MRT running again and failing every couple of seconds with high CPU utilization to go along with it.


Now, at one point, I tried to figure out what is causing these 'Error: SMJobRemove: The operation couldn’t be completed. (kSMErrorDomainFramework error 4 - There was an error in the Authorization subsystem.)' messages. I ran /usr/libexec/MRT by hand and it complained that it couldn't move it to /var/tmp due to permissions...which made sense, so I ran it by hand via 'sudo' and it seemed to work successfully and I noticed that MRT was no longer trying to run over and over again. I rebooted and MRT wasn't trying to run nor failing to run. I decided to see if this was reproducible so I re-installed the update, got back into the state where MRT was failing over and over again and manually ran /usr/libexec/MRT by hand again and it gives me the 'Error: SMJobRemove' message again.

Jun 1, 2011 10:19 AM in response to thomas_r.

On two differnt MBP's (a 2008 and a 2010), installed Security Update 2011-003 via SU and do not see the MRT in the path provided.

My question is "should" it have been regardless, or is this something that only should have been installed if the installer determined that the trojan was present on the machine during this installation process, then installed the MRT app to deal with it. If the installer did not find the trojan, it did not install. Is this maybe why some are seeing it and some not? Or maybe something prevented it from clearing itself after the initial run.


If it should have been installed regardless, and the standalone version differed from the software update version (but should have been the same), then we will most likely see a version 1.1 of Security Update 2011-003.

Jun 1, 2011 10:19 AM in response to R C-R

R C-R wrote:


there are references to MRT in private/var/log/install log shown in Console. One is to "Begin script: loadMRT" & it shows to errors, "Error unloading: com.apple.mrt.uiagent," & "Error unloading: com.apple.mrt." That is followed by "End script: loadMRT."


Note that errors like the above don't necessarily mean anything is wrong...

Yes, there is a postinstall action script called loadMRT that simply unloads and then loads the LaunchAgent com.apple.mrt.uiagent and does the same thing for LaunchDaemon com.apple.mrt. The unloads will always fail the first time as they were never launched. That comes in to play when you update any of these components.


Also note that there should be a unix executable "MRT" in /usr/libexec/ that is part of this system.

Jun 1, 2011 10:53 AM in response to ryanmoffett1

Okay, here's what I've learned from an associate who took a closer look. Apparently, it will always be installed and launched at the time of the installation. It will run for several minutes, and may use a fair portion of the CPU, but will then delete itself. (I can now verify that, although I had MRTAgent earlier, it's gone again.)


So, if you're having problems with it running for an extended period, and you are 100% certain that you don't have a MacDefender trojan variant installed, then you've got something wrong somewhere. You may want to try reinstalling the update manually.

Jun 1, 2011 11:15 AM in response to thomas_r.

I was able to reproduce what looks like a 'fix/kludge'. I'll let the collective body here decide :-)


As I was saying earlier, I had tried to run MRT by hand via Terminal and when I did that via 'sudo' I thought the problem had gone away but I had no explanation as to why. I tried to reproduce it and couldn't.


However, I remembered when I was trying to determine why MRT was running for high CPU for a few seconds and abruptly terminating, I took a process sample from Activity Monitor. When I did this again, then subsequently tried to run MRT by hand, I get:


rymoffet-mac:~ rymoffet$ /usr/libexec/MRT

2011-06-01 14:00:56.018 MRT[2710:903] Error: Couldn't move /usr/libexec/MRT to /var/folders/Kr/KrssdC05GGmgfZmTpqcGtE+++TI/-Tmp-/MRT: Permission denied

rymoffet-mac:~ rymoffet$ sudo /usr/libexec/MRT

2011-06-01 14:02:44.113 MRT[2730:e07] Error: SMJobRemove: The operation couldn’t be completed. (kSMErrorDomainLaunchd error 6 - The specified job could not be found.)

2011-06-01 14:02:44.119 MRT[2730:e07] Error: SMJobRemove: The operation couldn’t be completed. (kSMErrorDomainLaunchd error 6 - The specified job could not be found.)

rymoffet-mac:~ rymoffet$ sudo /usr/libexec/MRT

Password:

sudo: /usr/libexec/MRT: command not found


So, it looks like it didn't successfully run to completion, but it fails in a different way here on SMJobRemove (which I have no way of knowing would be expected or not), but it also then removed /usr/libexec/MRT, /System/Library/CoreServices/MRTAgent.app and the associated .plist files for these under /System/Library/LaunchDaemons and /System/Library/LaunchAgents as was indicated would happen when it runs to completion.


Again, the step to get to this state was to catch MRT as it was briefly running in Activity Monitor and perform a 'Sample Process' while it was running. Then running the MRT command by hand. I have no clue whatsoever as to why this does this, but it does and I've now reproduced this 3 times.



Jun 1, 2011 11:31 AM in response to thomas_r.

Thomas A Reed wrote:

You may want to try reinstalling the update manually.

Before doing that, it might be a good idea to run Disk Utility's two checks (disk & permissions, in that order) to make sure the file system & permissions settings are OK. Permissions issues are unlikely to be the problem -- the installer usually stops with a report of a problem if they are -- but it can't hurt to run that as long as Disk Utility is already open.


Reported problems from a Verify Disk check are more serious. Even if running the Disk Repair step (which must be done from another volume like your installer DVD) fixes any discovered problems, it does not repair any damage already done to existing files. (It fixes the file system to prevent new damage from occurring, but that is all it can do.)


Depending on what is damaged, it may be necessary to reinstall the OS, or if the damage is confined to files the Combo update replaces then downloading & installing that may be enough.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Constant high CPU after Security Update today

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.