I'm not sure what you mean, maybe you have misunderstood my question.
I have some kind of server program which starts one sandboxed application in an extra thread with NaClCreateMainThread.
Now the untrusted software, which runs in the sandbox is not controlled by me and it is maybe malicious or has an error.
For an test I created an nacl-application which causes a divided by zero error.
When i load this application, the whole program crashes.
So do I have to write an exception handling around the NaClCreateMainThread? I don't think this would work in a threaded environment.
What kind of exception handling would you suggest to catch exception from other threads?
Or am I creating the thread on a completely wrong way?