open62541-nodeset-loader
open62541-nodeset-loader copied to clipboard
Segmentation Fault when loading AMLLibraries companion specification
The issue appeared when loading the companion nodeset into the OPC UA server. The version of the UA-Nodeset tested:
- Repository: https://github.com/OPCFoundation/UA-Nodeset
- Branch: latest
- Commit: a2208e8
When testing with the latest version of the AMLLibraries companion nodeset with open62541 v1.3.2 I get a Segmentation Fault error:
Loading of the following nodes from the AMLLibraries results in termination of the whole program:
- ns=2;i=46
- ns=2;i=49
- ns=2;i=67
- ns=2;i=104
- ns=2;i=113
- ns=2;i=116
- ns=2;i=119
- ns=2;i=125
- ns=2;i=128
Here is the structure of one of the aforementioned nodes:
It is probably confusing for the actual XML parser when both the variable attribute (DataType="String") and the ExtensionObject DataType Identifier (<Identifier>String</Identifier>) define a type. After removing the attributes from the nodes with the following IDs, the nodes were loaded successfully.
But the Segmentation Fault error should definitely be resolved within the nodesetLoader implementation.