pthread_cond_wait: random segmentation fault

后端 未结 3 874
[愿得一人]
[愿得一人] 2021-01-25 03:07

Update 3

recently, I noticed that my code randomly causes Segmentation Fault errors. But I think that my code is pretty simple so far and I cant figure out wh

3条回答
  •  逝去的感伤
    2021-01-25 03:58

    This is quite late, but I forgot to post it for future references. This is how I fixed it:

    I upgraded my GCC compiler from version to 4.5.X to version 4.7.X as well as my kernel from 2.6.X to 3.2.X and fixed some errors regarding the global instanciating of a class and a static member variable by providing an explicit constructor in order to allow a global declaration without initialization. But I think that upgrading the GCC compiler is all what was needed.

    Looks like the implementation of the function was not proper. Or there were some errors in the kernel code?

提交回复
热议问题