Okay I'm running into the same problem here. In my case Mail is the 'frozen' app. I tried running ps, top and Process Viewer but they become frozen as well and don't show any output. Next I tried to attach to the Mail process using gdb and get the following message:
<font face = "courier">
Unable to attach to process-id 11824: Operation not permitted (1).
This request requires that the target process be neither setuid nor setgid and have the same real userid as the debugger, or that the debugger be running with adminstrator privileges.
</font>
When I run the command again as superuser, gdb freezes. The Sample application also freezes when I select the "Attach..." command. So basically Mail has caused some sort of deadlock in the kernel and is slowly killing my computer.
I few diagnostic commands still work, however. I am able to peek at Mail's open file descriptors using fstat. The TCP socket appears is an established connection to mail.mac.com.143 according to netstat.
<font face = "courier">
CMD PID FD INUM MODE SZ|DV R/W MOUNT
Mail 11824 wd 2 drwxrwxr-t 1078 r /
Mail 11824 0 25363076 ?rw-rw-rw- null r /dev
Mail 11824 1 25363844 ?rw------- console w /dev
Mail 11824 2 25363844 ?rw------- console w /dev
Mail 11824 3 173462 -rw-r--r-- 2918400 r /
Mail 11824 4 173449 -rw-r--r-- 488706 r /
Mail 11824 5 173463 -rw-r--r-- 3573700 r /
Mail 11824 6 173463 -rw-r--r-- 3573700 r /
Mail 11824 7 33271 -rw-r--r-- 740 r /
Mail 11824 8 132752 -rw-r--r-- 958464 rw /
Mail 11824 9 3612 -r--r--r-- 417 r /
Mail 11824 10 207213 -rw-r--r-- 25320 r /
Mail 11824 12* internet stream tcp 196ddb4
Mail 11824 13* unix dgram 1759c78 <-> 17598c0
Mail 11824 14* unix dgram 17598c0 <-> 1759c78
</font>
Any ideas? I'd like to figure out why Mail is frozen. And I'd rather not reboot.
