Pthread mutex assertion error

前端 未结 7 921
渐次进展
渐次进展 2020-12-24 05:50

I\'m encountering the following error at unpredictable times in a linux-based (arm) communications application:

pthread_mutex_lock.c:82: __pthread_mutex_lock         


        
7条回答
  •  借酒劲吻你
    2020-12-24 06:06

    The quick bit of Googling I've done often blames this on a compiler mis-optimization. A decent summation is here. It might be worth looking at the assembly output to see if gcc is producing the right code.

    Either that or you are managing to stomp on the memory used by the pthread library... those sort of problems are rather tricky to find.

提交回复
热议问题