Hello,

I have a nultithreaded NSS server app that core dumps on a Solaris 8, 64-bit
machine:

This server initializes NSS and NSPR, then listens on a port for client
connections. Once a client connection request is accepted, it creates an
NSPR thread (PR_CreateThread) to handle the client connection. The NSS
server doesn't do anything else with the thread once created (it just waits,
creates a thread, then waits again).  In turn, each client thread:
1. opens an NSS socket with another server app
2. does  polling (PR_Poll) on the client and server sockets
3. creates another thread which also also does (1.) and (2.) above

Questions:
1. What things should I be watching out for when nesting NSPR threads in
this way?
1. Is there a good example of a multithreaded NSS server app on Mozilla or
elsewhere?
3. Whats' the best way to analyze the resulting core dump?

-- POC



Reply via email to