我之前认为是
数据库的
问题,现在感觉是不是libssl-1_1-x64相关的
文件不兼容。

感谢各位大哥给一些建议。
下面windbg的堆栈:
---------------------------
STACK_TEXT:
00000000`002db2b0 000007fe`e133fd5f : 00000000`035a8080 7fffffff`ffffffff 00000000`00000005 000007fe`e133d67f : libssl_1_1_x64!SSL_SESSION_set1_hostname+0xac1b
00000000`002db310 000007fe`e133c520 : 00000000`00000008 00000000`00000000 00000000`00000001 00000000`00000000 : libssl_1_1_x64!SSL_SESSION_set1_hostname+0xd7cf
00000000`002db440 000007fe`e1347a79 : 00000000`00000002 00000000`04317d60 00000000`002db5f8 000007fe`e1347e8a : libssl_1_1_x64!SSL_SESSION_set1_hostname+0x9f90
00000000`002db500 000007fe`e13479da : 00000000`035a8080 00000000`04317d60 00000000`00000004 00000000`002db658 : libssl_1_1_x64!SSL_SESSION_set1_hostname+0x154e9
00000000`002db550 000007fe`e135eabe : 00000000`03593dc0 000007fe`e135b849 00000000`00000073 00000000`04317d60 : libssl_1_1_x64!SSL_SESSION_set1_hostname+0x1544a
00000000`002db590 000007fe`e1359c79 : 00000000`00000004 00000000`04317d60 00000000`00000004 000007fe`d44ad072 : libssl_1_1_x64!SSL_SESSION_set1_hostname+0x2c52e
00000000`002db600 000007fe`d44e946a : 00000000`04317d60 000007fe`d44acfec 00000000`005aeef0 00000000`00000000 : libssl_1_1_x64!SSL_SESSION_set1_hostname+0x276e9
00000000`002db640 000007fe`d44ac8d2 : 00000000`043134c8 00000000`00000004 00000000`00000000 00000000`005aeef0 : libmysql!mysql_reset_server_public_key+0x3e09a
00000000`002db680 000007fe`d44ac47f : 00000000`005aeef0 00000000`00000000 00000000`005aeef0 00000000`002db750 : libmysql!mysql_reset_server_public_key+0x1502
00000000`002db6b0 000007fe`d44ac38b : 00000000`00000003 00000000`043134c8 00000000`00000001 00000000`00000000 : libmysql!mysql_reset_server_public_key+0x10af
00000000`002db6e0 000007fe`d44aca18 : 00000000`005aeef0 00000000`005aeef0 00000000`00000000 000007fe`e0bffcf1 : libmysql!mysql_reset_server_public_key+0xfbb
00000000`002db710 000007fe`d44abb89 : 00000000`00000000 00000000`005aeef0 00000000`00000000 000007fe`d44f2390 : libmysql!mysql_reset_server_public_key+0x1648
00000000`002db750 000007fe`d449ca31 : 00000000`00000007 00000000`00000000 00000000`005477d0 00000000`0000006c : libmysql!mysql_reset_server_public_key+0x7b9
00000000`002db780 000007fe`d4493e19 : 00000000`005aeef0 00000000`002db960 00000000`10e57d60 00000000`0000006c : libmysql!my_make_scrambled_password+0xa1e1
00000000`002db810 000007fe`d44a02e2 : 00000000`005aeef0 00000000`005aeef0 00000000`10e57d60 00000000`0418d490 : libmysql!my_make_scrambled_password+0x15c9
00000000`002db840 000007fe`e3ad64d4 : 00000000`0000006c 00000000`10e57d60 00000000`002db9b0 000007fe`e0ec9338 : libmysql!mysql_real_query+0x32
00000000`002db870 00000001`3f103f34 : 00000000`043134b0 00000001`3f103ee0 000007fe`e0ec9338 00000000`002db9c0 : qsqlmysql+0x64d4
00000000`002db8f0 00000001`3f0deeda : 00000000`00585590 00000000`002db9c0 00000000`002db9b0 000007fe`e0bf50aa : SX01+0x33f34
00000000`002db990 000007fe`e0dc1d49 : 00000000`055a0220 000007fe`e0c8b912 00000000`002dbbd0 00000000`00000000 : SX01+0xeeda
00000000`002db9e0 00000001`3f0e63f2 : 00000000`0557dcb0 00000000`00000007 00000000`002dbb70 00000000`07637601 : Qt5Core!QObject::qt_static_metacall+0x1409
00000000`002dbb30 00000001`3f0e44fb : 00000000`002dbd00 00000000`07b00920 00000000`00000001 00000000`00543b01 : SX01+0x163f2
00000000`002dbc90 000007fe`e0dc1d49 : 00000000`07b00920 00000000`07b009b0 00000000`08df6fd0 00000000`04313620 : SX01+0x144fb
00000000`002dbd00 000007fe`e16ae530 : 00000000`055a1320 00000000`00000003 00000000`04144f60 00000000`00000001 : Qt5Core!QObject::qt_static_metacall+0x1409
00000000`002dbe50 000007fe`e16bd1b7 : 00000000`005506e0 00000000`00551770 00000000`002dc4e0 00000000`00000000 : Qt5Network!QAbstractSocket::canReadLine+0x100
00000000`002dbe80 000007fe`dfb84990 : 00000000`005506e0 00000000`00551770 00000000`002dc4e0 00000000`055a3280 : Qt5Network!QLocalSocket::socketDescriptor+0x3dc7
00000000`002dbeb0 000007fe`dfb83a13 : 00000000`005506e0 00000000`002dbfe0 000007fe`dfb70000 000007fe`dfbbb00f : Qt5Widgets!QApplicationPrivate::notify_helper+0x110
00000000`002dbee0 000007fe`e0da2aca : 00000000`041b4700 00000000`774096a8 00000000`02e95be0 00000000`00543b20 : Qt5Widgets!QApplication::notify+0x18b3
00000000`002dc420 000007fe`e0dec606 : 00000000`041b4700 00000000`002dc549 00000000`041b4700 00000000`00000428 : Qt5Core!QCoreApplication::notifyInternal2+0xba
00000000`002dc490 00000000`77409bd1 : 00000000`00000000 00000000`00000038 00000000`002dc658 000007fe`e0d84726 : Qt5Core!QEventDispatcherWin32::processEvents+0xc16
00000000`002dc5b0 00000000`774098da : 00000000`002dc730 000007fe`e0dec180 00000000`00000024 00000000`0096d0b0 : user32!TranslateMessageEx+0x2a1
00000000`002dc670 000007fe`e0debf8c : 00000000`00000000 00000000`00000001 000007fe`e0dec180 00000000`00527e58 : user32!TranslateMessage+0x1ea
00000000`002dc6f0 000007fe`e1442dd9 : 00000000`00552470 00000000`00000000 00000000`05643fb0 00000000`00000001 : Qt5Core!QEventDispatcherWin32::processEvents+0x59c
00000000`002df820 000007fe`e0d9ef2c : 00000000`00000000 000007fe`00000014 00000000`00000000 00000000`00000000 : qwindows!qt_plugin_query_metadata+0x1f99
00000000`002df850 000007fe`e0da1a94 : 00000000`00551948 00000000`00000000 00000000`00000000 000007fe`e0ec1c90 : Qt5Core!QEventLoop::exec+0x1bc
00000000`002df8b0 00000001`3f107485 : 00000000`00552a90 00000000`0054ea60 00000000`0563f930 00000000`055a1ae0 : Qt5Core!QCoreApplication::exec+0x154
00000000`002df910 00000001`3f10f4f7 : 00000000`00000001 00000000`00000000 00000000`00554060 00000000`00582030 : SX01+0x37485
00000000`002dfa10 00000001`3f10e992 : 00000000`00000000 00000000`00000000 00000000`00000000 00000024`901d1991 : SX01+0x3f4f7
00000000`002dfaa0 00000000`772e570d : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : SX01+0x3e992
00000000`002dfae0 00000000`7768385d : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : kernel32!BaseThreadInitThunk+0xd
00000000`002dfb10 00000000`00000000 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : ntdll!RtlUserThreadStart+0x1d
-------------------------------
整个dump分析过程:
Microsoft (R)
Windows Debugger Version 6.12.0002.633 AMD64
Copyright (c) Microsoft Corporation. All rights reserved.
Loading Dump File [D:\singsun20240718_VS2022\SX01Release\crash20240718233405.DMP]
User Mini Dump File: Only registers, stack and portions of memory are available
Symbol search path is: D:\singsun20240711_VS2022
Executable search path is:
Windows 7 Version 7601 (Service Pack 1) MP (8 procs) Free x64
Product: WinNt, suite: SingleUserTS
Machine Name:
Debug session time: Thu Jul 18 23:34:06.000 2024 (UTC + 8:00)
System Uptime:
not available
Process Uptime: 0 days 3:46:35.000
................................................................
................................................................
..............
This dump file has an exception of interest stored in it.
The stored exception information can be accessed via .ecxr.
(266c.17e8): Access violation - code c0000005 (first/second chance not available)
*** ERROR: Symbol file could not be found. Defaulted to export symbols for ntdll.dll -
ntdll!ZwGetContextThread+0xa:
00000000`7769a55a c3 ret
0:000> !analyze -v
*******************************************************************************
* *
* Exception Analysis *
* *
*******************************************************************************
*** WARNING: Unable to verify checksum for libmysql.dll
*** ERROR: Symbol file could not be found. Defaulted to export symbols for libmysql.dll -
*** WARNING: Unable to verify checksum for qsqlmysql.dll
*** ERROR: Symbol file could not be found. Defaulted to export symbols for qsqlmysql.dll -
*** WARNING: Unable to verify checksum for SX01.exe
*** ERROR: Module
load completed but symbols could not be loaded for SX01.exe
*** ERROR: Symbol file could not be found. Defaulted to export symbols for Qt5Core.dll -
*** ERROR: Symbol file could not be found. Defaulted to export symbols for Qt5Network.dll -
*** ERROR: Symbol file could not be found. Defaulted to export symbols for Qt5Widgets.dll -
*** ERROR: Symbol file could not be found. Defaulted to export symbols for user32.dll -
*** ERROR: Symbol file could not be found. Defaulted to export symbols for qwindows.dll -
*** ERROR: Symbol file could not be found. Defaulted to export symbols for kernel32.dll -
***** OS symbols are WRONG. Please fix symbols to do analysis.
*************************************************************************
*** ***
*** ***
*** Your debugger is not using the correct symbols ***
*** ***
*** In order for this command to work properly, your symbol path ***
*** must point to .pdb files that have full type information. ***
*** ***
*** Certain .pdb files (such as the public OS symbols) do not ***
*** contain the required information. Contact the group that ***
*** provided you with these symbols if you need this command to ***
*** work. ***
*** ***
*** Type referenced: nt!IMAGE_NT_HEADERS32 ***
*** ***
*************************************************************************
*** ERROR: Symbol file could not be found. Defaulted to export symbols for MozartBreathCore.dll -
*** ERROR: Symbol file could not be found. Defaulted to export symbols for ole32.dll -
*** ERROR: Symbol file could not be found. Defaulted to export symbols for KERNELBASE.dll -
*** ERROR: Symbol file could not be found. Defaulted to export symbols for mswsock.dll -
*** ERROR: Symbol file could not be found. Defaulted to export symbols for winmm.dll -
Failed calling InternetOpenUrl, GLE=12007
FAULTING_IP:
libssl_1_1_x64!SSL_SESSION_set1_hostname+ac1b
000007fe`e133d1ab f6416008 test byte ptr [rcx+60h],8
EXCEPTION_RECORD: ffffffffffffffff -- (.exr 0xffffffffffffffff)
ExceptionAddress: 000007fee133d1ab (libssl_1_1_x64!SSL_SESSION_set1_hostname+0x000000000000ac1b)
ExceptionCode: c0000005 (Access violation)
ExceptionFlags: 00000000
NumberParameters: 2
Parameter[0]: 0000000000000000
Parameter[1]: ffffffffffffffff
Attempt to read from address ffffffffffffffff
PROCESS_NAME: SX01.exe
ADDITIONAL_DEBUG_TEXT:
Use '!findthebuild' command to search for the target build information.
If the build information is available, run '!findthebuild -s ; .reload' to set symbol path and load symbols.
FAULTING_MODULE: 0000000077630000 ntdll
DEBUG_FLR_IMAGE_TIMESTAMP: 635ba0f8
ERROR_CODE: (NTSTATUS) 0xc0000005 - 0x%08lx
EXCEPTION_CODE: (NTSTATUS) 0xc0000005 - 0x%08lx
EXCEPTION_PARAMETER1: 0000000000000000
EXCEPTION_PARAMETER2: ffffffffffffffff
READ_ADDRESS: ffffffffffffffff
FOLLOWUP_IP:
libssl_1_1_x64!SSL_SESSION_set1_hostname+ac1b
000007fe`e133d1ab f6416008 test byte ptr [rcx+60h],8
MOD_LIST: <ANALYSIS/>
FAULTING_THREAD: 00000000000017e8
BUGCHECK_STR: APPLICATION_FAULT_INVALID_POINTER_READ_WRONG_SYMBOLS
PRIMARY_PROBLEM_CLASS: INVALID_POINTER_READ
DEFAULT_BUCKET_ID: INVALID_POINTER_READ
LAST_CONTROL_TRANSFER: from 000007fee133fd5f to 000007fee133d1ab
STACK_TEXT:
00000000`002db2b0 000007fe`e133fd5f : 00000000`035a8080 7fffffff`ffffffff 00000000`00000005 000007fe`e133d67f : libssl_1_1_x64!SSL_SESSION_set1_hostname+0xac1b
00000000`002db310 000007fe`e133c520 : 00000000`00000008 00000000`00000000 00000000`00000001 00000000`00000000 : libssl_1_1_x64!SSL_SESSION_set1_hostname+0xd7cf
00000000`002db440 000007fe`e1347a79 : 00000000`00000002 00000000`04317d60 00000000`002db5f8 000007fe`e1347e8a : libssl_1_1_x64!SSL_SESSION_set1_hostname+0x9f90
00000000`002db500 000007fe`e13479da : 00000000`035a8080 00000000`04317d60 00000000`00000004 00000000`002db658 : libssl_1_1_x64!SSL_SESSION_set1_hostname+0x154e9
00000000`002db550 000007fe`e135eabe : 00000000`03593dc0 000007fe`e135b849 00000000`00000073 00000000`04317d60 : libssl_1_1_x64!SSL_SESSION_set1_hostname+0x1544a
00000000`002db590 000007fe`e1359c79 : 00000000`00000004 00000000`04317d60 00000000`00000004 000007fe`d44ad072 : libssl_1_1_x64!SSL_SESSION_set1_hostname+0x2c52e
00000000`002db600 000007fe`d44e946a : 00000000`04317d60 000007fe`d44acfec 00000000`005aeef0 00000000`00000000 : libssl_1_1_x64!SSL_SESSION_set1_hostname+0x276e9
00000000`002db640 000007fe`d44ac8d2 : 00000000`043134c8 00000000`00000004 00000000`00000000 00000000`005aeef0 : libmysql!mysql_reset_server_public_key+0x3e09a
00000000`002db680 000007fe`d44ac47f : 00000000`005aeef0 00000000`00000000 00000000`005aeef0 00000000`002db750 : libmysql!mysql_reset_server_public_key+0x1502
00000000`002db6b0 000007fe`d44ac38b : 00000000`00000003 00000000`043134c8 00000000`00000001 00000000`00000000 : libmysql!mysql_reset_server_public_key+0x10af
00000000`002db6e0 000007fe`d44aca18 : 00000000`005aeef0 00000000`005aeef0 00000000`00000000 000007fe`e0bffcf1 : libmysql!mysql_reset_server_public_key+0xfbb
00000000`002db710 000007fe`d44abb89 : 00000000`00000000 00000000`005aeef0 00000000`00000000 000007fe`d44f2390 : libmysql!mysql_reset_server_public_key+0x1648
00000000`002db750 000007fe`d449ca31 : 00000000`00000007 00000000`00000000 00000000`005477d0 00000000`0000006c : libmysql!mysql_reset_server_public_key+0x7b9
00000000`002db780 000007fe`d4493e19 : 00000000`005aeef0 00000000`002db960 00000000`10e57d60 00000000`0000006c : libmysql!my_make_scrambled_password+0xa1e1
00000000`002db810 000007fe`d44a02e2 : 00000000`005aeef0 00000000`005aeef0 00000000`10e57d60 00000000`0418d490 : libmysql!my_make_scrambled_password+0x15c9
00000000`002db840 000007fe`e3ad64d4 : 00000000`0000006c 00000000`10e57d60 00000000`002db9b0 000007fe`e0ec9338 : libmysql!mysql_real_query+0x32
00000000`002db870 00000001`3f103f34 : 00000000`043134b0 00000001`3f103ee0 000007fe`e0ec9338 00000000`002db9c0 : qsqlmysql+0x64d4
00000000`002db8f0 00000001`3f0deeda : 00000000`00585590 00000000`002db9c0 00000000`002db9b0 000007fe`e0bf50aa : SX01+0x33f34
00000000`002db990 000007fe`e0dc1d49 : 00000000`055a0220 000007fe`e0c8b912 00000000`002dbbd0 00000000`00000000 : SX01+0xeeda
00000000`002db9e0 00000001`3f0e63f2 : 00000000`0557dcb0 00000000`00000007 00000000`002dbb70 00000000`07637601 : Qt5Core!QObject::qt_static_metacall+0x1409
00000000`002dbb30 00000001`3f0e44fb : 00000000`002dbd00 00000000`07b00920 00000000`00000001 00000000`00543b01 : SX01+0x163f2
00000000`002dbc90 000007fe`e0dc1d49 : 00000000`07b00920 00000000`07b009b0 00000000`08df6fd0 00000000`04313620 : SX01+0x144fb
00000000`002dbd00 000007fe`e16ae530 : 00000000`055a1320 00000000`00000003 00000000`04144f60 00000000`00000001 : Qt5Core!QObject::qt_static_metacall+0x1409
00000000`002dbe50 000007fe`e16bd1b7 : 00000000`005506e0 00000000`00551770 00000000`002dc4e0 00000000`00000000 : Qt5Network!QAbstractSocket::canReadLine+0x100
00000000`002dbe80 000007fe`dfb84990 : 00000000`005506e0 00000000`00551770 00000000`002dc4e0 00000000`055a3280 : Qt5Network!QLocalSocket::socketDescriptor+0x3dc7
00000000`002dbeb0 000007fe`dfb83a13 : 00000000`005506e0 00000000`002dbfe0 000007fe`dfb70000 000007fe`dfbbb00f : Qt5Widgets!QApplicationPrivate::notify_helper+0x110
00000000`002dbee0 000007fe`e0da2aca : 00000000`041b4700 00000000`774096a8 00000000`02e95be0 00000000`00543b20 : Qt5Widgets!QApplication::notify+0x18b3
00000000`002dc420 000007fe`e0dec606 : 00000000`041b4700 00000000`002dc549 00000000`041b4700 00000000`00000428 : Qt5Core!QCoreApplication::notifyInternal2+0xba
00000000`002dc490 00000000`77409bd1 : 00000000`00000000 00000000`00000038 00000000`002dc658 000007fe`e0d84726 : Qt5Core!QEventDispatcherWin32::processEvents+0xc16
00000000`002dc5b0 00000000`774098da : 00000000`002dc730 000007fe`e0dec180 00000000`00000024 00000000`0096d0b0 : user32!TranslateMessageEx+0x2a1
00000000`002dc670 000007fe`e0debf8c : 00000000`00000000 00000000`00000001 000007fe`e0dec180 00000000`00527e58 : user32!TranslateMessage+0x1ea
00000000`002dc6f0 000007fe`e1442dd9 : 00000000`00552470 00000000`00000000 00000000`05643fb0 00000000`00000001 : Qt5Core!QEventDispatcherWin32::processEvents+0x59c
00000000`002df820 000007fe`e0d9ef2c : 00000000`00000000 000007fe`00000014 00000000`00000000 00000000`00000000 : qwindows!qt_plugin_query_metadata+0x1f99
00000000`002df850 000007fe`e0da1a94 : 00000000`00551948 00000000`00000000 00000000`00000000 000007fe`e0ec1c90 : Qt5Core!QEventLoop::exec+0x1bc
00000000`002df8b0 00000001`3f107485 : 00000000`00552a90 00000000`0054ea60 00000000`0563f930 00000000`055a1ae0 : Qt5Core!QCoreApplication::exec+0x154
00000000`002df910 00000001`3f10f4f7 : 00000000`00000001 00000000`00000000 00000000`00554060 00000000`00582030 : SX01+0x37485
00000000`002dfa10 00000001`3f10e992 : 00000000`00000000 00000000`00000000 00000000`00000000 00000024`901d1991 : SX01+0x3f4f7
00000000`002dfaa0 00000000`772e570d : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : SX01+0x3e992
00000000`002dfae0 00000000`7768385d : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : kernel32!BaseThreadInitThunk+0xd
00000000`002dfb10 00000000`00000000 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : ntdll!RtlUserThreadStart+0x1d
STACK_COMMAND: ~0s; .ecxr ; kb
SYMBOL_STACK_INDEX: 0
SYMBOL_NAME: libssl_1_1_x64!SSL_SESSION_set1_hostname+ac1b
FOLLOWUP_NAME: MachineOwner
MODULE_NAME: libssl_1_1_x64
IMAGE_NAME: libssl-1_1-x64.dll
BUCKET_ID: WRONG_SYMBOLS
FAILURE_BUCKET_ID: INVALID_POINTER_READ_c0000005_libssl-1_1-x64.dll!SSL_SESSION_set1_hostname
WATSON_STAGEONE_URL:
http://watson.microsoft.com/StageOne/SX01_exe/0_0_0_0/66990092/libssl-1_1-x64_dll/1_1_1_17/635ba0f8/c0000005/0000d1ab.htm?Retriage=1Followup: MachineOwner
---------

感谢各位大哥帮忙。