Hello EPICS Tech-Talk!
I have a question regarding a segmentation fault I am getting when exiting certain area detector IOCs. Thus far, I have noticed it on several detectors, including a prosilica IOC and a new driver I have developed for
USB Video Class cameras. In the IOC shell, the only information given is:
Segmentation Fault: line of st.cmd file that calls ioc binary.
Using the Visual Studio Code debugger I was able to trace the segmentation fault to the following function in the asynPortDriver.cpp file:
extern "C" {static asynStatus connect(void *drvPvt, asynUser *pasynUser)
{
asynPortDriver *pPvt = (asynPortDriver *)drvPvt;
asynStatus status;
pPvt->lock();
status = pPvt->connect(pasynUser);
pPvt->unlock();
return(status);
}}
and it occurs in the line pPvt->lock(), meaning that most likely pPvt is NULL. Is there anything I should check for that could be causing this?
Thank you all in advance,
Jakub Wlodek