C++ libpthread program segfaults for unknown reason
问题 I have a libpthread linked application. The core of the application are two FIFOs shared by four threads ( two threads per one FIFO that is ;). The FIFO class is synchronized using pthread mutexes and it stores pointers to big classes ( containing buffers of about 4kb size ) allocated inside static memory using overloaded new and delete operators ( no dynamic allocation here ). The program itself usually works fine, but from time to time it segfaults for no visible reason. The problem is,