OPC UA SDK version 1.3.3 throwing Null pointer exception

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

Moderator: uasdkcpp

Post Reply
atulmshr
Jr. Member
Jr. Member
Posts: 1
Joined: 12 Dec 2018, 08:30

OPC UA SDK version 1.3.3 throwing Null pointer exception

Post by atulmshr »

Hi Team,

am using the OPC UA SDk 1.3.3 in my multithreaded application and it is crashing. once i took the dump and analyzed, the exception thrown is a access violation due to NUll Pointer exception in the uastack.dll. kindly find the dump results below,

FAULTING_IP:
uastack!OpcUa_EndpointConfiguration_Encode+2f24
62bb6558 8b481c mov ecx,dword ptr [eax+1Ch]

EXCEPTION_RECORD: ffffffff -- (.exr 0xffffffffffffffff)
ExceptionAddress: 62bb6558 (uastack!OpcUa_EndpointConfiguration_Encode+0x00002f24)
ExceptionCode: c0000005 (Access violation)
ExceptionFlags: 00000000
NumberParameters: 2
Parameter[0]: 00000000
Parameter[1]: 0000001c
Attempt to read from address 0000001c

CONTEXT: 00000000 -- (.cxr 0x0;r)
eax=00000000 ebx=04c06938 ecx=75a9189f edx=046eff20 esi=00000000 edi=00000000
eip=62bb6558 esp=046efee4 ebp=046efee4 iopl=0 nv up ei pl nz ac po nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00010212
uastack!OpcUa_EndpointConfiguration_Encode+0x2f24:
62bb6558 8b481c mov ecx,dword ptr [eax+1Ch] ds:0023:0000001c=????????

PROCESS_NAME: Siemens.Energy.PowerQuality.Collector.exe

ERROR_CODE: (NTSTATUS) 0xc0000005 - The instruction at 0x%p referenced memory at 0x%p. The memory could not be %s.

EXCEPTION_CODE: (NTSTATUS) 0xc0000005 - The instruction at 0x%p referenced memory at 0x%p. The memory could not be %s.

EXCEPTION_PARAMETER1: 00000000

EXCEPTION_PARAMETER2: 0000001c

READ_ADDRESS: 0000001c

FOLLOWUP_IP:
uastack!OpcUa_EndpointConfiguration_Encode+2f24
62bb6558 8b481c mov ecx,dword ptr [eax+1Ch]

NTGLOBALFLAG: 0

APPLICATION_VERIFIER_FLAGS: 0

APP: siemens.energy.powerquality.collector.exe

ANALYSIS_VERSION: 6.3.9600.16384 (debuggers(dbg).130821-1623) x86fre

FAULTING_THREAD: 0000271c

BUGCHECK_STR: APPLICATION_FAULT_NULL_CLASS_PTR_READ_NULL_POINTER_READ_CALL

PRIMARY_PROBLEM_CLASS: NULL_CLASS_PTR_READ_CALL

DEFAULT_BUCKET_ID: NULL_CLASS_PTR_READ_CALL

LAST_CONTROL_TRANSFER: from 624b04f2 to 62bb6558

STACK_TEXT:
WARNING: Stack unwind information not available. Following frames may be wrong.
046efee4 624b04f2 046efef8 6250343c 00000000 uastack!OpcUa_EndpointConfiguration_Encode+0x2f24
046efef8 624eca3f 046eff20 de10662e 00000000 SARADataProviderCpp!UaDateTime::now+0x12
046eff50 62503484 002eee58 046eff64 6250349b SARADataProviderCpp!UaClientSdk::UaSessionPrivate::run+0x7f
046eff5c 6250349b 046eff74 62bbabf1 002eee58 SARADataProviderCpp!UaThread::ThreadMain+0x14
046eff64 62bbabf1 002eee58 03897120 046eff88 SARADataProviderCpp!UaThread::startT+0xb
046eff74 62bc37f9 03897120 03897120 04c06938 uastack!OpcUa_EndpointConfiguration_Encode+0x75bd
046eff88 7610ef8c 04c06938 046effd4 77a2367a uastack!OpcUa_EndpointConfiguration_Encode+0x101c5
046eff94 77a2367a 04c06938 73c66b3a 00000000 kernel32!BaseThreadInitThunk+0xe
046effd4 77a2364d 62bb11d1 04c06938 00000000 ntdll!__RtlUserThreadStart+0x70
046effec 00000000 62bb11d1 04c06938 00000000 ntdll!_RtlUserThreadStart+0x1b


SYMBOL_STACK_INDEX: 0

SYMBOL_NAME: uastack!OpcUa_EndpointConfiguration_Encode+2f24

FOLLOWUP_NAME: MachineOwner

MODULE_NAME: uastack

IMAGE_NAME: uastack.dll

DEBUG_FLR_IMAGE_TIMESTAMP: 576a2e53

STACK_COMMAND: ~13s; .ecxr ; kb

FAILURE_BUCKET_ID: NULL_CLASS_PTR_READ_CALL_c0000005_uastack.dll!OpcUa_EndpointConfiguration_Encode

BUCKET_ID: APPLICATION_FAULT_NULL_CLASS_PTR_READ_NULL_POINTER_READ_CALL_uastack!OpcUa_EndpointConfiguration_Encode+2f24

ANALYSIS_SOURCE: UM

FAILURE_ID_HASH_STRING: um:null_class_ptr_read_call_c0000005_uastack.dll!opcua_endpointconfiguration_encode

FAILURE_ID_HASH: {e5e87dac-d92d-5612-31b3-b5fa1ad8ff86}

Followup: MachineOwner

I have attached the entire dump file for your reference. this dump file is created using procdump -ma -e

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

Re: OPC UA SDK version 1.3.3 throwing Null pointer exception

Post by Support Team »

Hello atulmshr,

SDK V1.3.3 has reached End Of Life (EOL) and is no longer supported.
see:
https://www.unified-automation.com/prod ... etime.html
Best regards
Unified Automation Support Team

Post Reply