epics-modules / opcua

EPICS Device Support for OPC UA
Other
19 stars 13 forks source link

Crash when using "sub-Items" #154

Open dirk-zimoch opened 9 months ago

dirk-zimoch commented 9 months ago

Connecting an opcuaItem record to an element of another opcuaItem record crashes. Example (with UA demo server):

record(opcuaItem, "Dirk:WorkOder") {
  field(DTYP, "OPCUA")
  field(INP,  "@100ms ns=2;s=Demo.Static.Scalar.WorkOrder")
  field(SCAN, "I/O Intr")
  field(TPRO, "10")
  field(TSE,  "-2")
}
record(opcuaItem, "Dirk:StatusComments") {
  field(DTYP, "OPCUA")
  field(INP,  "@Dirk:WorkOrder element=StatusComments")
  field(SCAN, "I/O Intr")
  field(TPRO, "10")
  field(TSE,  "-2")
}

Seems to be a problem with the parser which does not intercept the "illegal" use of item records linking to other item records.