Jul 112012
 

One of my computers starting having a segmentation fault whenever I would try to run VirtualBox.  Looking into this further I found this error message when running virtualbox with strace command:

write(2, "VirtualBox: Error -10 in SUPR3Ha"..., 44VirtualBox: Error -10 in SUPR3HardenedMain!
) = 44
write(2, "VirtualBox: ", 12VirtualBox: )            = 12
write(2, "Effective UID is not root (euid="..., 65Effective UID is not root (euid=1001 egid=1001 uid=1001 gid=1001)) = 65
write(2, "\n", 1
)                       = 1
write(2, "\nVirtualBox: Tip! It may help to"..., 55
VirtualBox: Tip! It may help to reinstall VirtualBox.
) = 55
setresgid(1001, 1001, 1001)             = 0
setresuid(1001, 1001, 1001)             = 0
getresuid([1001], [1001], [1001])       = 0
getresgid([1001], [1001], [1001])       = 0
capset(0x19980330, 0, {CAP_NET_RAW, CAP_NET_RAW, 0}) = -1 EPERM (Operation not permitted)
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7fd9d6a9c9f0) = 4340
exit_group(1)                           = ?
user@HOST:~$ <html><b>Effective UID is not root (euid=1001 egid=1001 uid=1001 gid=1001) (rc=-10)</b><br/><br/>Please try reinstalling VirtualBox.</html>

What I found the problem had ended up being was:

$ ls -ld /usr
drwxrwxr-x 14 501 501 4096 2011-10-31 21:56 /usr

so the fix was simply:

$ sudo chown root:root /usr