阅读背景:

使用指向pthread_create的函数指针会导致段错误

来源:互联网 

I am attempting to stub out pthread_create to be able to fully unit test a module. When the function pointer is called from within the test framework a segmentation fault occurs. If I debug the program using 'gdb' I am able to directly call the function pointer and it works correctly. I am attempting to stub out pthread_create to b




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: