Details
-
Bug
-
Resolution: Cannot Reproduce
-
P1: Critical
-
None
-
6.1.0 FF
-
None
Description
Steps to reproduce:
- Run the viewer example under valgrind --tool=memcheck --leak-check=full --track-origins=yes
opcuaviewer 2>log - Click find servers (no running servers required)
- Observe valgrind error (see log)
Causes a crash when used with the Qt for Python bindings.
iscovering servers on "opc.tcp://localhost:48010" open62541LogHandlermsg="AcceptAll Certificate Verification. Any remote certificate will be accepted." qt.opcua.plugins.open62541.sdk.userland: "AcceptAll Certificate Verification. Any remote certificate will be accepted." open62541LogHandlermsg="Connection to %.*s failed with error: %s" ==16033== Thread 4 QOpen62541Client: ==16033== Invalid read of size 1 ==16033== at 0x668F822: std::char_traits<char>::length(char const*) (char_traits.h:335) ==16033== by 0x669075E: long long QByteArrayView::lengthHelperPointer<char>(char const*) (qbytearrayview.h:144) ==16033== by 0x6690790: QByteArrayView::QByteArrayView<char const*, true>(char const* const&) (qbytearrayview.h:188) ==16033== by 0x68D10F6: QString::vasprintf(char const*, __va_list_tag*) (qstring.cpp:6773) ==16033== by 0xFF01096: Open62541AsyncBackend::open62541LogHandler(void*, UA_LogLevel, UA_LogCategory, char const*, __va_list_tag*) (qopen62541backend.cpp:406) ==16033== by 0xFF7D1D5: UA_LOG_WARNING (open62541.h:24257) ==16033== by 0xFFF9DEF: UA_ClientConnectionTCP_poll (open62541.c:64438) ==16033== by 0xFFB44FD: connectIterate (open62541.c:42193) ==16033== by 0xFFB14C2: UA_Client_run_iterate (open62541.c:41215) ==16033== by 0xFFB4D89: connectSync (open62541.c:42378) ==16033== by 0xFFB4E07: UA_Client_connectSecureChannel (open62541.c:42393) ==16033== by 0xFFB55C9: UA_Client_findServers (open62541.c:42596)
Attachments
Issue Links
- relates to
-
PYSIDE-2635 Official OpcUa Viewer Example does not run out-of-the-box
-
- Closed
-