At TotalView startup, the OS checks whether the Mach system call task_for_pid() is working properly. If the call returns an error, no debugging is possible, and TotalView outputs an error message that begins “The Mach system call task_for_pid() is not working properly.” TotalView cannot distinguish the circumstances that can lead to this error, which are varied and depend on the version of OS X. The following sections describe a series of steps to troubleshoot this problem.
Requirement: The TotalView executables must be installed
setgid procmod, and must be installed on a file system that is mounted
suid (that is, the file system must
not be mounted
nosuid). The TotalView installation procedure warns if these requirements are not met at installation time.
Remedies: Log in to the Mac host as
root. If the file system where TotalView is to be installed is mounted
nosuid, remove that attribute and re-mount the file system. Then (while still logged in as
root) re-install TotalView.
Remedies: It can be difficult to distinguish which of the Mountain Lion requirements are unmet, so several remedial steps are recommended. We suggest you follow them in the order given, which is from least to most intrusive.
If TotalView launches, the installation is OK, but note that if a user wishes to run TotalView at a different physical display, it is necessary to launch an xterm from the
same console login session. The
xterm can be displayed wherever is convenient, and it will inherit the validation of the console session, so TotalView will run successfully from that
xterm.
Check the TotalView user's group memberships by issuing the command id -Gn from a user session. If
_developer is among the group names displayed, this is not the problem, so move on to the next remedial step.
If _developer is not in the list, you must add the user to that group. Issue the following command from an Administrator or root session:
After adding the _developer group membership, verify that the user can now run TotalView from the Mac host's console (as in Step 1).