Comment 1 for bug 1694966

Revision history for this message
mdavidsaver (mdavidsaver) wrote :

From a quick look, the issue is that casStatsFetch() can't be called until/unless the CA server (RSRV) has successfully initialized. iocstats is starting it's 1Hz scan timer from a device support init() function, this happens before RSRV is started. So this would also crash if the initialization between these two points takes longer than 1 second.

At a minimum, iocStats should not start this timer until after RSRV has started, if not later. I'd suggest an initHook with initHookAfterCaServerRunning or initHookAfterIocRunning.

https://github.com/epics-modules/iocStats/blob/0cec4fc67a4d4419c21161d889862766a7690daa/devIocStats/devIocStatsAnalog.c#L405