I had a problem with the pthread library: I had a large program (source code), which I can't give, it linked the pthread library statically, and ran fine on some older version of RedHat Linux. After recompiling it on RedHat 6.1, it did not execute any line of code in the main() (same sources that worked before), Using a debugger, it seemed that the code was locked on a mutex at startup (I saw it on the stack, which contained none of the cpp or c files in our program). I was very astonishing. The solution was not to link statically the pthread library but do it dynamically (-lptread). And everything ran fine after that. So this is probably a bug in the static version of the ptread library. I posted a message on the comp.programming.threads newsgroup before we found the solution, look there for more information (on 1 feb 2000).
assign to jakub
Please check to see if this problem is still existant in the latest Red Hat release. Also check to see if the problem occurs with Red Hat's 8.0.93 beta product as it uses a new threading model and code.
Closing out due to bit-rot.