dbpf before iocInit crashes IOC
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
EPICS Base |
Fix Released
|
Low
|
Andrew Johnson |
Bug Description
When calling dbpf before iocInit, the IOC crashes in dbScanLock while accessing an uninitialized semaphore.
Tested with R3.14.12, R3.15.4 and R3.16.1
Here is the relevant stack trace:
#2 0x00007f1a8c020098 in epicsThreadSusp
#3 0x00007f1a8c01edeb in epicsAssert () from /usr/local/
#4 0x00007f1a8c8d6a5a in dbScanLock () from /usr/local/
#5 0x00007f1a8c8d8faf in dbPutField () from /usr/local/
#6 0x00007f1a8c8e883a in dbpf () from /usr/local/
Either calling dbpf before iocInit should fail gracefully or dbPutField should not try to lock the database before iocInit.
Changed in epics-base: | |
assignee: | nobody → Andrew Johnson (anj) |
milestone: | none → 3.15.6 |
Changed in epics-base: | |
status: | Fix Committed → Fix Released |
dbgf shows the same behavior.