EventManager Crash

Questions regarding the use of the C++ SDK for Server or Client development or integration into customer products ...

Moderator: uasdkcpp

Post Reply
toni.kalajainen
Sr. Member
Sr. Member
Posts: 11
Joined: 02 Jan 2017, 12:34

EventManager Crash

Post by toni.kalajainen »

Hi,

I'm not sure if this has already been reported or if you are aware, in case you're not, here goes.

There is an issue with the default Event Manager in the SDK. When a monitored item with Where-Clause "Severity=5 && Severity=6" is placed in a subscription, the EventManager leaves two of FilterOperands uninitialized (NULL). Then when an event is fired the SDK tries to evaluate it against NULL operands, and thus crashes the server.

The problem can be replicated with the cpp demo-server and CTT from Foundation's website. Run test 'Base Eventing/Monitor Events/007.js'. It causes the server to crash. The testcase itself is not implemented fully, but it reveals the problem. Alternatively "IsAuditActivated" can be set to "true" in ServerConfig.xml to force event from within sdk (SessionOpenEvent).

SDK Version = vs2012sp4-v1.5.6-361
CTT Version = v1.3.340.380

User avatar
Support Team
Hero Member
Hero Member
Posts: 3064
Joined: 18 Mar 2011, 15:09

Re: EventManager Crash

Post by Support Team »

Hello Toni,

thank you for the hint. We were able to replicate the error and passed the issue on to the development.
Best regards
Unified Automation Support Team

Post Reply