in reply to panic: COND_DESTROY(6)

Is the application written in Perl? If yes, can you show how threads are handled in the code?