Thread 2 “ThreadPool.out“ received signal SIGSEGV, Segmentation fault.关于空指针解引用引起的段错误异常
问题背景:最近在学习Linux的多线程和线程池,在调试用C写的一段线程池代码的过程中,出现了一个错误(只截了关键部分):Thread2"ThreadPool.out"receivedsignalSIGSEGV,Segmentationfault.[SwitchingtoThread0x7ffff77c2700(LWP4298)]0x00005555555555fainmanager(arg=0x0