SEGFAULT: OPCUA Server

Hi Support,
Apologies to add another question to the mix, we’re getting a SEGFAULT (separate to other ones we’ve had) which appears to be connected to the OPCUA server running on the PLC (AXCF 3152, 2023.0). The logs show the following:
16.10.23 12:54:30.806 Arp.Services.OpcUAServer.Internal.InformationModel.Common.SampleGroup ERROR - Variable not found 16.10.23 12:54:30.808 Arp.Services.OpcUAServer.Internal.InformationModel.Common.SampleGroup ERROR - Variable not found _16.10.23 12:54:30.820 Arp.System.Commons.Runtime.SignalHandler FATAL - Signal SIGSEGV occured.Stacktrace:at: VectoredHandler_SIGSEGV(int, siginfo_t, void)at: /lib/libc.so.6(+0x41920) [0x7f643a632920]at: void std::vector <Arp::Plc::Gds::Services::VariableInfo, std::allocatorArp::Plc::Gds::Services::VariableInfo >::_M_realloc_insert<Arp::Plc::Gds::Services::VariableInfo const&>(__gnu_cxx::__normal_iterator<Arp::Plc::Gds::Services::VariableInfo, std::vector<Arp::Plc::Gds::Services::VariableInfo, std::allocatorArp::Plc::Gds::Services::VariableInfo > >, Arp::Plc::Gds::Services::VariableInfo const&)at: /usr/lib//libArp.Services.OpcUAServer.so(+0x20cdee) [0x7f6407612dee]at: Arp::Plc::Gds::Services::Internal::SubscriptionService2Impl::GetTimeStampedVariableInfos(unsigned int, bool, Arp::delegate <void (Arp::System::Rsc::Services::IRscReadEnumeratorArp::Plc::Gds::Services::VariableInfo&)>)at: Arp::Plc::Gds::Services::SubscriptionServiceImpl::GetTimeStampedVariableInfos(unsigned int, Arp::delegate <void (Arp::System::Rsc::Services::IRscReadEnumeratorArp::Plc::Gds::Services::VariableInfo&)>)at: Arp::Plc::Gds::Services::SubscriptionServiceSecurityStub::GetTimeStampedVariableInfos(unsigned int, Arp::delegate <void (Arp::System::Rsc::Services::IRscReadEnumeratorArp::Plc::Gds::Services::VariableInfo&)>)at: Arp::Services::OpcUAServer::Internal::InformationModel::Common::SampleGroup::GetVariableInfoDelegate(unsigned int, std::vector <Arp::Plc::Gds::Services::VariableInfo, std::allocatorArp::Plc::Gds::Services::VariableInfo >&)at: Arp::Services::OpcUAServer::Internal::InformationModel::Common::SampleGroup::RemoveInvalidVariablesFromSubscription()__at: Arp::Services::OpcUAServer::Internal::InformationModel::Gds::ValueIOManager::finishTransaction(void)at: UaTransactionManager::beginWrite(UaWriteContext)*at: UaServer::Write(void, void, _OpcUa_WriteRequest*, OpcUa_EncodeableType*)**at: /usr/lib/libOpc.uamodule.so(UaStub_BeginWrite+0x65) [0x7f64072e9115]at: /usr/lib/libOpc.uastack.so(OpcUa_Endpoint_OnNotify+0x417) [0x7f640636e7b7]at: /usr/lib/libOpc.uastack.so(OpcUa_SecureListener_ProcessSessionCallRequest+0x3bb) [0x7f6406357f2b]at: /usr/lib/libOpc.uastack.so(+0x11e431) [0x7f6406358431]at: /usr/lib/libOpc.uastack.so(+0x11e837) [0x7f6406358837]at: /usr/lib/libOpc.uastack.so(OpcUa_TcpListener_ProcessRequest+0xcb) [0x7f640634a3fb]at: /usr/lib/libOpc.uastack.so(OpcUa_TcpListener_ReadEventHandler+0x18a) [0x7f640634b53a]at: /usr/lib/libOpc.uastack.so(OpcUa_TcpListener_EventCallback+0x103) [0x7f6406348db3]at: /usr/lib/libOpc.uastack.so(OpcUa_Socket_HandleEvent+0x320) [0x7f64062bf320]at: /usr/lib/libOpc.uastack.so(OpcUa_P_Socket_HandleFdSet+0x179) [0x7f64062bf6b9]at: /usr/lib/libOpc.uastack.so(OpcUa_P_SocketManager_ServeLoopInternal+0x462) [0x7f64062bfbb2]at: /usr/lib/libOpc.uastack.so(OpcUa_P_SocketManager_ServerLoopThread+0x54) [0x7f64062bd344]at: /usr/lib/libOpc.uastack.so(pthread_main+0x13) [0x7f64062c1323]at: /lib/libc.so.6(+0x8aa42) [0x7f643a67ba42]__at: /lib/libc.so.6(+0x10c6f0) [0x7f643a6fd6f0]

16.10.23 12:54:31.236 Arp.System.Commons.Runtime.SignalHandler FATAL - Signal SIGSEGV occured.Stacktrace:at: VectoredHandler_SIGSEGV(int, siginfo_t, void)*at: /lib/libc.so.6(+0x41920) [0x7f643a632920]at: Arp::Services::OpcUAServer::Internal::InformationModel::Common::SampleGroup::ResortCopyListOfSubscribedItems()at: Arp::Services::OpcUAServer::Internal::InformationModel::Common::SampleGroup::RemoveInvalidVariablesFromSubscription()at: Arp::Services::OpcUAServer::Internal::InformationModel::Gds::ValueIOManager::finishTransaction(void)at: UaSubscription::close(unsigned char, unsigned char, unsigned char)at: UaSubscriptionManager::run()at: /usr/lib/libOpc.uastack.so(InternalThreadMain+0x10) [0x7f64062b3960]at: /usr/lib/libOpc.uastack.so(pthread_main+0x13) [0x7f64062c1323]at: /lib/libc.so.6(+0x8aa42) [0x7f643a67ba42]at: /lib/libc.so.6(+0x10c6f0) [0x7f643a6fd6f0]
This doesn’t appear to be anything we’ve created with our C++ programs, rather the internal workings of the OPCUA server. Can you suggest why this might be happening and how to resolve?
Kind Regards,
Joshua

And as a second example (this is slightly different):
_16.10.23 14:34:05.602 Arp.System.Commons.Runtime.SignalHandler FATAL - Signal SIGSEGV occured.Stacktrace:at: VectoredHandler_SIGSEGV(int, siginfo_t, void)at: /lib/libc.so.6(+0x41920) [0x7f8fb8032920]at: void std::vector <Arp::Plc::Gds::Services::VariableInfo, std::allocatorArp::Plc::Gds::Services::VariableInfo >::_M_realloc_insert<Arp::Plc::Gds::Services::VariableInfo const&>(__gnu_cxx::__normal_iterator<Arp::Plc::Gds::Services::VariableInfo, std::vector<Arp::Plc::Gds::Services::VariableInfo, std::allocatorArp::Plc::Gds::Services::VariableInfo > >, Arp::Plc::Gds::Services::VariableInfo const&)at: /usr/lib//libArp.Services.OpcUAServer.so(+0x20cdee) [0x7f8f850b3dee]at: Arp::Plc::Gds::Services::Internal::SubscriptionService2Impl::GetTimeStampedVariableInfos(unsigned int, bool, Arp::delegate <void (Arp::System::Rsc::Services::IRscReadEnumeratorArp::Plc::Gds::Services::VariableInfo&)>)at: Arp::Plc::Gds::Services::SubscriptionServiceImpl::GetTimeStampedVariableInfos(unsigned int, Arp::delegate <void (Arp::System::Rsc::Services::IRscReadEnumeratorArp::Plc::Gds::Services::VariableInfo&)>)at: Arp::Plc::Gds::Services::SubscriptionServiceSecurityStub::GetTimeStampedVariableInfos(unsigned int, Arp::delegate <void (Arp::System::Rsc::Services::IRscReadEnumeratorArp::Plc::Gds::Services::VariableInfo&)>)at: Arp::Services::OpcUAServer::Internal::InformationModel::Common::SampleGroup::GetVariableInfoDelegate(unsigned int, std::vector <Arp::Plc::Gds::Services::VariableInfo, std::allocatorArp::Plc::Gds::Services::VariableInfo >&)at: Arp::Services::OpcUAServer::Internal::InformationModel::Common::SampleGroup::ResortCopyListOfSubscribedItems()at: Arp::Services::OpcUAServer::Internal::InformationModel::Common::SampleGroup::RemoveInvalidVariablesFromSubscription()at: Arp::Services::OpcUAServer::Internal::InformationModel::Gds::ValueIOManager::finishTransaction(void)at: UaTransactionManager::beginWrite(UaWriteContext)*at: UaServer::Write(void, void, _OpcUa_WriteRequest*, OpcUa_EncodeableType*)**at: /usr/lib/libOpc.uamodule.so(UaStub_BeginWrite+0x65) [0x7f8f84d8a115]at: /usr/lib/libOpc.uastack.so(OpcUa_Endpoint_OnNotify+0x417) [0x7f8f842927b7]at: /usr/lib/libOpc.uastack.so(OpcUa_SecureListener_ProcessSessionCallRequest+0x3bb) [0x7f8f8427bf2b]at: /usr/lib/libOpc.uastack.so(+0x11e431) [0x7f8f8427c431]at: /usr/lib/libOpc.uastack.so(+0x11e837) [0x7f8f8427c837]at: /usr/lib/libOpc.uastack.so(OpcUa_TcpListener_ProcessRequest+0xcb) [0x7f8f8426e3fb]at: /usr/lib/libOpc.uastack.so(OpcUa_TcpListener_ReadEventHandler+0x18a) [0x7f8f8426f53a]at: /usr/lib/libOpc.uastack.so(OpcUa_TcpListener_EventCallback+0x103) [0x7f8f8426cdb3]at: /usr/lib/libOpc.uastack.so(OpcUa_Socket_HandleEvent+0x320) [0x7f8f841e3320]at: /usr/lib/libOpc.uastack.so(OpcUa_P_Socket_HandleFdSet+0x179) [0x7f8f841e36b9]at: /usr/lib/libOpc.uastack.so(OpcUa_P_SocketManager_ServeLoopInternal+0x462) [0x7f8f841e3bb2]at: /usr/lib/libOpc.uastack.so(OpcUa_P_SocketManager_ServerLoopThread+0x54) [0x7f8f841e1344]at: /usr/lib/libOpc.uastack.so(pthread_main+0x13) [0x7f8f841e5323]at: /lib/libc.so.6(+0x8aa42) [0x7f8fb807ba42]__at: /lib/libc.so.6(+0x10c6f0) [0x7f8fb80fd6f0]

16.10.23 14:34:05.602 Arp.System.Commons.Runtime.SignalHandler FATAL - Signal SIGSEGV occured.Stacktrace:at: VectoredHandler_SIGSEGV(int, siginfo_t, void)*at: /lib/libc.so.6(+0x41920) [0x7f8fb8032920]at: /usr/lib//libArp.Services.OpcUAServer.so(+0x20cdbf) [0x7f8f850b3dbf]at: Arp::Plc::Gds::Services::Internal::SubscriptionService2Impl::GetTimeStampedVariableInfos(unsigned int, bool, Arp::delegate <void (Arp::System::Rsc::Services::IRscReadEnumeratorArp::Plc::Gds::Services::VariableInfo&)>)at: Arp::Plc::Gds::Services::SubscriptionServiceImpl::GetTimeStampedVariableInfos(unsigned int, Arp::delegate <void (Arp::System::Rsc::Services::IRscReadEnumeratorArp::Plc::Gds::Services::VariableInfo&)>)at: Arp::Plc::Gds::Services::SubscriptionServiceSecurityStub::GetTimeStampedVariableInfos(unsigned int, Arp::delegate <void (Arp::System::Rsc::Services::IRscReadEnumeratorArp::Plc::Gds::Services::VariableInfo&)>)at: Arp::Services::OpcUAServer::Internal::InformationModel::Common::SampleGroup::GetVariableInfoDelegate(unsigned int, std::vector <Arp::Plc::Gds::Services::VariableInfo, std::allocatorArp::Plc::Gds::Services::VariableInfo >&)at: Arp::Services::OpcUAServer::Internal::InformationModel::Common::SampleGroup::ResortCopyListOfSubscribedItems()at: Arp::Services::OpcUAServer::Internal::InformationModel::Common::SampleGroup::RemoveInvalidVariablesFromSubscription()__at: Arp::Services::OpcUAServer::Internal::InformationModel::Gds::ValueIOManager::finishTransaction(void)at: UaSubscription::close(unsigned char, unsigned char, unsigned char)at: UaSubscriptionManager::run()at: /usr/lib/libOpc.uastack.so(InternalThreadMain+0x10) [0x7f8f841d7960]at: /usr/lib/libOpc.uastack.so(pthread_main+0x13) [0x7f8f841e5323]at: /lib/libc.so.6(+0x8aa42) [0x7f8fb807ba42]at: /lib/libc.so.6(+0x10c6f0) [0x7f8fb80fd6f0]