drmemory icon indicating copy to clipboard operation
drmemory copied to clipboard

Warnings with QSSL

Open mwallnoefer opened this issue 9 years ago • 2 comments

I get the following warnings by using this code: https://github.com/emqtt/qmqtt/blob/master/src/qmqtt_ssl_socket.cpp https://github.com/emqtt/qmqtt/blob/master/src/qmqtt_ssl_socket.h

I guess that they are all just false positives and may be added to the ignore list?

Error #1: INVALID HEAP ARGUMENT to Windows API routine: invalid heap HANDLE 0x00000000
#0 replace_RtlQueryHeapInformation               [d:\drmemory_package\common\alloc_replace.c:4010]
#1 ntdll.dll!RtlQueryProcessHeapInformation     +0x2bd    (0x772774be <ntdll.dll+0xb74be>)
#2 ntdll.dll!RtlQueryProcessDebugInformation    +0x3a3    (0x772771a4 <ntdll.dll+0xb71a4>)
#3 KERNEL32.dll!Heap32First                     +0x52     (0x76529163 <KERNEL32.dll+0x49163>)
#4 LIBEAY32.dll!RAND_poll                       +0x543    (0x647844e4 <LIBEAY32.dll+0x444e4>)
#5 LIBEAY32.dll!RAND_SSLeay                     +0x94c    (0x6478363d <LIBEAY32.dll+0x4363d>)
#6 Qt5Networkd.dll!QSslKey::isNull              +0x10eec0 (0x64cc9494 <Qt5Networkd.dll+0x119494>)
#7 Qt5Networkd.dll!QSslKey::isNull              +0x10292e (0x64cbcf02 <Qt5Networkd.dll+0x10cf02>)
#8 Qt5Networkd.dll!QSslKey::isNull              +0x102334 (0x64cbc908 <Qt5Networkd.dll+0x10c908>)
#9 Qt5Networkd.dll!QSslKey::isNull              +0x1023f4 (0x64cbc9c8 <Qt5Networkd.dll+0x10c9c8>)
#10 Qt5Networkd.dll!QSslKey::isNull              +0xea0ab  (0x64ca467f <Qt5Networkd.dll+0xf467f>)
#11 Qt5Networkd.dll!QSslKey::isNull              +0xe8a10  (0x64ca2fe4 <Qt5Networkd.dll+0xf2fe4>)
#12 Qt5Networkd.dll!QSslKey::isNull              +0xecb75  (0x64ca7149 <Qt5Networkd.dll+0xf7149>)
#13 Qt5Networkd.dll!QSslKey::isNull              +0xf44c6  (0x64caea9a <Qt5Networkd.dll+0xfea9a>)
#14 Qt5Networkd.dll!QSslKey::isNull              +0x102b5b (0x64cbd12f <Qt5Networkd.dll+0x10d12f>)
#15 Qt5Networkd.dll!QSslKey::isNull              +0xf1e23  (0x64cac3f7 <Qt5Networkd.dll+0xfc3f7>)
#16 qmqtt.dll!QMQTT::SslSocket::SslSocket         [h:\qt\qmqtt\src\qmqtt_ssl_socket.cpp:40]
#17 qmqtt.dll!QMQTT::SslNetwork::SslNetwork       [h:\qt\qmqtt\src\qmqtt_ssl_network.cpp:52]
#18 qmqtt.dll!QMQTT::ClientPrivate::init          [h:\qt\qmqtt\src\qmqtt_client_p.cpp:99]
#19 qmqtt.dll!QMQTT::Client::Client               [h:\qt\qmqtt\src\qmqtt_client.cpp:55]
Note: @0:00:04.778 in thread 9132

Error #3: UNINITIALIZED READ: reading 0x03015077-0x03015093 28 byte(s) within 0x03015068-0x03015145
#0 system call NtDeviceIoControlFile AFD_SEND_INFO.BufferArray[i].buf
#1 MSWSOCK.dll!Tcpip4_WSHGetWildcardSockaddr                                 +0x48e    (0x7237b19f <MSWSOCK.dll+0xb19f>)
#2 WS2_32.dll!WSASend                                                        +0xf9     (0x7618102a <WS2_32.dll+0x1102a>)
#3 Qt5Networkd.dll!QSslKey::isNull                                           +0xdccf1  (0x64c972c5 <Qt5Networkd.dll+0xe72c5>)
#4 Qt5Networkd.dll!QSslKey::isNull                                           +0xd8787  (0x64c92d5b <Qt5Networkd.dll+0xe2d5b>)
#5 Qt5Networkd.dll!QSslKey::isNull                                           +0xcec85  (0x64c89259 <Qt5Networkd.dll+0xd9259>)
#6 Qt5Networkd.dll!QSslKey::isNull                                           +0xcdf7e  (0x64c88552 <Qt5Networkd.dll+0xd8552>)
#7 Qt5Networkd.dll!QSslKey::isNull                                           +0xcc578  (0x64c86b4c <Qt5Networkd.dll+0xd6b4c>)
#8 Qt5Networkd.dll!QSslKey::isNull                                           +0xf3745  (0x64cadd19 <Qt5Networkd.dll+0xfdd19>)
#9 qmqtt.dll!QMQTT::SslSocket::connectToHost                                  [h:\qt\qmqtt\src\qmqtt_ssl_socket.cpp:71]
#10 qmqtt.dll!QMQTT::SslNetwork::connectToHost                                 [h:\qt\qmqtt\src\qmqtt_ssl_network.cpp:114]
#11 qmqtt.dll!QMQTT::SslNetwork::connectToHost                                 [h:\qt\qmqtt\src\qmqtt_ssl_network.cpp:108]
#12 qmqtt.dll!QMQTT::ClientPrivate::connectToHost                              [h:\qt\qmqtt\src\qmqtt_client_p.cpp:154]
#13 qmqtt.dll!QMQTT::Client::connectToHost                                     [h:\qt\qmqtt\src\qmqtt_client.cpp:256]
#14 Microgate::HandleBtSerial                                                  [h:\qt\bluetoothmqtt_bridge\src\btserial.cpp:77]
#15 <lambda_efb17bd4e2a914bf2487c82d8f5c1bfb>::operator()                      [h:\qt\bluetoothmqtt_bridge\src\main.cpp:130]
#16 QtPrivate::FunctorCall<>::call                                             [c:\qt\5.6\msvc2013\include\qtcore\qobjectdefs_impl.h:495]
#17 QtPrivate::Functor<>::call<>                                               [c:\qt\5.6\msvc2013\include\qtcore\qobjectdefs_impl.h:552]
#18 QtPrivate::QFunctorSlotObject<>::impl                                      [c:\qt\5.6\msvc2013\include\qtcore\qobject_impl.h:192]
#19 Qt5Cored.dll!uppercasebase                                                +0x3227d7 (0x63f2faaf <Qt5Cored.dll+0x33faaf>)
Note: @0:00:11.689 in thread 9132

Error #4: UNINITIALIZED READ: reading 0x00dab8dc-0x00dab8e0 4 byte(s)
#0 LIBEAY32.dll!RSA_sign   +0x348    (0x647637a8 <LIBEAY32.dll+0x237a8>)
#1 LIBEAY32.dll!RSA_verify +0x3c     (0x647639cd <LIBEAY32.dll+0x239cd>)
Note: @0:00:12.020 in thread 9132
Note: instruction: cmp    %esi (%eax)

Error #5: UNINITIALIZED READ: reading register esi
#0 LIBEAY32.dll!AES_cbc_encrypt      +0x840    (0x647ff3b0 <LIBEAY32.dll+0xbf3b0>)
#1 LIBEAY32.dll!AES_set_encrypt_key  +0x4      (0x647ff475 <LIBEAY32.dll+0xbf475>)
#2 LIBEAY32.dll!EVP_aes_256_cfb8     +0x61     (0x6478b512 <LIBEAY32.dll+0x4b512>)
#3 LIBEAY32.dll!EVP_CipherInit_ex    +0x235    (0x64789846 <LIBEAY32.dll+0x49846>)
#4 SSLEAY32.dll!TLSv1_client_method  +0x294b   (0x648f6c5c <SSLEAY32.dll+0x16c5c>)
#5 SSLEAY32.dll!SSLv3_server_method  +0x3722   (0x648ec393 <SSLEAY32.dll+0xc393>)
#6 SSLEAY32.dll!SSL_connect          +0x1c     (0x64902a0d <SSLEAY32.dll+0x22a0d>)
#7 SSLEAY32.dll!SSLv23_server_method +0x866    (0x648f3cb7 <SSLEAY32.dll+0x13cb7>)
#8 SSLEAY32.dll!SSLv23_server_method +0xaa8    (0x648f3ef9 <SSLEAY32.dll+0x13ef9>)
#9 SSLEAY32.dll!SSL_connect          +0x1c     (0x64902a0d <SSLEAY32.dll+0x22a0d>)
#10 Qt5Networkd.dll!QSslKey::isNull   +0x10f144 (0x64cc9718 <Qt5Networkd.dll+0x119718>)
#11 Qt5Networkd.dll!QSslKey::isNull   +0x103b0b (0x64cbe0df <Qt5Networkd.dll+0x10e0df>)
#12 Qt5Networkd.dll!QSslKey::isNull   +0x1037ae (0x64cbdd82 <Qt5Networkd.dll+0x10dd82>)
#13 Qt5Networkd.dll!QSslKey::isNull   +0xf572c  (0x64cafd00 <Qt5Networkd.dll+0xffd00>)
#14 Qt5Networkd.dll!QSslKey::isNull   +0xf1aab  (0x64cac07f <Qt5Networkd.dll+0xfc07f>)
#15 Qt5Cored.dll!uppercasebase        +0x3153c1 (0x63f22699 <Qt5Cored.dll+0x332699>)
#16 Qt5Cored.dll!uppercasebase        +0x314e09 (0x63f220e1 <Qt5Cored.dll+0x3320e1>)
#17 Qt5Cored.dll!uppercasebase        +0x3ed2b1 (0x63ffa589 <Qt5Cored.dll+0x40a589>)
#18 Qt5Networkd.dll!QSslKey::isNull   +0xcddb3  (0x64c88387 <Qt5Networkd.dll+0xd8387>)
#19 Qt5Networkd.dll!QSslKey::isNull   +0xcc55d  (0x64c86b31 <Qt5Networkd.dll+0xd6b31>)
Note: @0:00:12.127 in thread 9132
Note: instruction: movzx  0xffffff80(%ebp,%esi) -> %ebx

Error #21: UNINITIALIZED READ: reading register dl
#0 SSLEAY32.dll!SSLv3_client_method             +0x5852   (0x648f2022 <SSLEAY32.dll+0x12022>)
#1 SSLEAY32.dll!TLSv1_client_method             +0x2d77   (0x648f7088 <SSLEAY32.dll+0x17088>)
#2 SSLEAY32.dll!SSLv3_client_method             +0x32d0   (0x648efaa1 <SSLEAY32.dll+0xfaa1>)
#3 SSLEAY32.dll!SSLv3_client_method             +0x3abb   (0x648f028c <SSLEAY32.dll+0x1028c>)
#4 SSLEAY32.dll!SSLv3_client_method             +0x5067   (0x648f1838 <SSLEAY32.dll+0x11838>)
#5 SSLEAY32.dll!SSLv3_client_method             +0x4b00   (0x648f12d1 <SSLEAY32.dll+0x112d1>)
#6 SSLEAY32.dll!SSLv3_server_method             +0x3814   (0x648ec485 <SSLEAY32.dll+0xc485>)
#7 SSLEAY32.dll!SSL_connect                     +0x1c     (0x64902a0d <SSLEAY32.dll+0x22a0d>)
#8 Qt5Networkd.dll!QSslKey::isNull              +0x10f144 (0x64cc9718 <Qt5Networkd.dll+0x119718>)
#9 Qt5Networkd.dll!QSslKey::isNull              +0x103b0b (0x64cbe0df <Qt5Networkd.dll+0x10e0df>)
#10 Qt5Networkd.dll!QSslKey::isNull              +0x1037ae (0x64cbdd82 <Qt5Networkd.dll+0x10dd82>)
#11 Qt5Networkd.dll!QSslKey::isNull              +0xf572c  (0x64cafd00 <Qt5Networkd.dll+0xffd00>)
#12 Qt5Networkd.dll!QSslKey::isNull              +0xf1aab  (0x64cac07f <Qt5Networkd.dll+0xfc07f>)
#13 Qt5Cored.dll!uppercasebase                   +0x3153c1 (0x63f22699 <Qt5Cored.dll+0x332699>)
#14 Qt5Cored.dll!uppercasebase                   +0x314e09 (0x63f220e1 <Qt5Cored.dll+0x3320e1>)
#15 Qt5Cored.dll!uppercasebase                   +0x3ed2b1 (0x63ffa589 <Qt5Cored.dll+0x40a589>)
#16 Qt5Networkd.dll!QSslKey::isNull              +0xcddb3  (0x64c88387 <Qt5Networkd.dll+0xd8387>)
#17 Qt5Networkd.dll!QSslKey::isNull              +0xcc55d  (0x64c86b31 <Qt5Networkd.dll+0xd6b31>)
#18 Qt5Networkd.dll!QSslKey::isNull              +0xf3745  (0x64cadd19 <Qt5Networkd.dll+0xfdd19>)
#19 qmqtt.dll!QMQTT::SslSocket::connectToHost     [h:\qt\qmqtt\src\qmqtt_ssl_socket.cpp:71]
Note: @0:00:12.307 in thread 9132
Note: instruction: test   %dl $0x01

Error #43: UNINITIALIZED READ: reading register ecx
#0 KERNELBASE.dll!FreeResource                                        +0x43     (0x76dc28c3 <KERNELBASE.dll+0x428c3>)
#1 KERNELBASE.dll!FileTimeToLocalFileTime                             +0xb3     (0x76d9e654 <KERNELBASE.dll+0x1e654>)
#2 Qt5Cored.dll!uppercasebase                                         +0x38119d (0x63f8e475 <Qt5Cored.dll+0x39e475>)
#3 Qt5Cored.dll!uppercasebase                                         +0x134dc5 (0x63d4209d <Qt5Cored.dll+0x15209d>)
#4 Qt5Cored.dll!uppercasebase                                         +0x120c29 (0x63d2df01 <Qt5Cored.dll+0x13df01>)
#5 Qt5Cored.dll!uppercasebase                                         +0x107a3  (0x63c1da7b <Qt5Cored.dll+0x2da7b>)
#6 Qt5Cored.dll!uppercasebase                                         +0x5e62a  (0x63c6b902 <Qt5Cored.dll+0x7b902>)
#7 Qt5Cored.dll!uppercasebase                                         +0x5c9de  (0x63c69cb6 <Qt5Cored.dll+0x79cb6>)
#8 Qt5Cored.dll!uppercasebase                                         +0x5bc7c  (0x63c68f54 <Qt5Cored.dll+0x78f54>)
#9 Qt5Cored.dll!uppercasebase                                         +0x1ac94b (0x63db9c23 <Qt5Cored.dll+0x1c9c23>)
#10 <lambda_df36281dd8e9ddf2e16f59e718f43051>::operator()               [h:\qt\bluetoothmqtt_bridge\src\btserial.cpp:73]
#11 QtPrivate::FunctorCall<>::call                                      [c:\qt\5.6\msvc2013\include\qtcore\qobjectdefs_impl.h:495]
#12 QtPrivate::Functor<>::call<>                                        [c:\qt\5.6\msvc2013\include\qtcore\qobjectdefs_impl.h:552]
#13 QtPrivate::QFunctorSlotObject<>::impl                               [c:\qt\5.6\msvc2013\include\qtcore\qobject_impl.h:192]
#14 Qt5Cored.dll!uppercasebase                                         +0x3227d7 (0x63f2faaf <Qt5Cored.dll+0x33faaf>)
#15 Qt5Cored.dll!uppercasebase                                         +0x315308 (0x63f225e0 <Qt5Cored.dll+0x3325e0>)
#16 Qt5Cored.dll!uppercasebase                                         +0x314e09 (0x63f220e1 <Qt5Cored.dll+0x3320e1>)
#17 qmqtt.dll!QMQTT::Client::received                                   [h:\qt\build-qmqtt-desktop_qt_5_6_0_msvc2013_32bit-debug\src\debug

\moc_qmqtt_client.cpp:494]
#18 qmqtt.dll!QMQTT::ClientPrivate::handlePublish                       [h:\qt\qmqtt\src\qmqtt_client_p.cpp:419]
#19 qmqtt.dll!QMQTT::ClientPrivate::onNetworkReceived                   [h:\qt\qmqtt\src\qmqtt_client_p.cpp:376]
Note: @0:00:40.800 in thread 9132
Note: instruction: mov    (%ecx,%edx) -> %cl

mwallnoefer avatar May 13 '16 14:05 mwallnoefer

Any news on this?

mwallnoefer avatar May 06 '17 09:05 mwallnoefer

Unfortunately Dr. Memory has been seriously understaffed for years now, but unless the error no longer occurs on the latest Dr. Memory version (is that the case?), we would prefer to keep it open on the off chance that resources are available to expand Dr. Memory support and address known false positives in the future.

derekbruening avatar Jan 31 '21 15:01 derekbruening