搞了个windbg上去远程调试了下,抓到调用栈。
程序已经是极简了,见附件dapp。
qt是我自己编译的:
..\qt5\configure.bat -opensource -confirm-license -platform win32-msvc2017 -developer-build -target xp -mp -nomake examples -nomake tests -no-icu -no-openssl -no-iconv -no-angle -no-opengl -no-qml-debug -skip qtactiveqt -skip qtconnectivity -skip qtdeclarative -skip qtdoc -skip qtgraphicaleffects -skip qtimageformats -skip qtlocation -skip qtmultimedia -skip qtquickcontrols -skip qtscript -skip qtsensors -skip qtsvg -skip qttools -skip qttranslations -skip qtwebchannel -skip qtwebengine -skip qtwebsockets -skip qtwebview -skip qtxmlpatterns -skip qtwayland -skip qtpurchasing -skip qtx11extras -skip qtandroidextras -prefix C:\Qt-build\5.6.3-xp
0:000> !uniqstack
Processing 1 threads, please wait
*** ERROR: Symbol file could not be found. Defaulted to export symbols for C:\tests\bin-5.6.3-xp\ucrtbased.dll -
*** WARNING: Unable to verify checksum for C:\tests\bin-5.6.3-xp\platforms\qwindowsd.dll
*** WARNING: Unable to verify checksum for C:\tests\bin-5.6.3-xp\Qt5Guid.dll
*** WARNING: Unable to verify checksum for C:\tests\bin-5.6.3-xp\Qt5Widgetsd.dll
. 0 Id: 4bc.4dc Suspend: 0 Teb: 7ffdf000 Unfrozen
Start: dapp!ILT+2615(_WinMainCRTStartup) (00401a3c)
Priority: 0 Priority class: 32 Affinity: 1
ChildEBP RetAddr
WARNING: Stack unwind information not available. Following frames may be wrong.
0012f644 7c81cb0e ntdll!KiFastSystemCallRet
0012f658 005956e8 kernel32!ExitProcess+0x14
0012f664 0059569c ucrtbased!wassert+0x478
0012f680 00595972 ucrtbased!wassert+0x42c
0012f694 6708b44a ucrtbased!exit+0x12
0012f8ac 6708a0d8 Qt5Cored!qt_message_fatal+0xaa [d:\qt5\qtbase\src\corelib\global\qlogging.cpp @ 1653]
0012f8dc 67080bb3 Qt5Cored!QMessageLogger::fatal+0x78 [d:\qt5\qtbase\src\corelib\global\qlogging.cpp @ 790]
0012f91c 00deb02a Qt5Cored!qt_assert+0x53 [d:\qt5\qtbase\src\corelib\global\qglobal.cpp @ 3018]
0012f938 00de9cba qwindowsd!QStaticByteArrayData<19>::data_ptr+0x2a [d:\qt5\qtbase\src\corelib\tools\qbytearray.h @ 120]
0012f94c 00de6192 qwindowsd!<lambda_b51ff93d9ba880e6ce7bd396838ddd86>::operator()+0xba [d:\qt5\qtbase\src\plugins\platforms\windows\qwindowscontext.cpp @ 301]
0012f980 00de42be qwindowsd!QWindowsContextPrivate::QWindowsContextPrivate+0xa2 [d:\qt5\qtbase\src\plugins\platforms\windows\qwindowscontext.cpp @ 302]
0012f9cc 00de1ced qwindowsd!QWindowsContext::QWindowsContext+0x2e [d:\qt5\qtbase\src\plugins\platforms\windows\qwindowscontext.cpp @ 326]
0012f9fc 00de118a qwindowsd!QWindowsIntegrationPrivate::QWindowsIntegrationPrivate+0x1d [d:\qt5\qtbase\src\plugins\platforms\windows\qwindowsintegration.cpp @ 209]
0012fa14 00e5ba75 qwindowsd!QWindowsIntegration::QWindowsIntegration+0x3a [d:\qt5\qtbase\src\plugins\platforms\windows\qwindowsintegration.cpp @ 243]
0012fa2c 00e59ccf qwindowsd!QWindowsGdiIntegration::QWindowsGdiIntegration+0x15 [d:\qt5\qtbase\src\plugins\platforms\windows\qwindowsgdiintegration.cpp @ 53]
0012fa4c 10096cb8 qwindowsd!QWindowsIntegrationPlugin::create+0x4f [d:\qt5\qtbase\src\plugins\platforms\windows\main.cpp @ 108]
0012fa70 10096c44 Qt5Guid!loadIntegration+0x58 [d:\qt5\qtbase\src\gui\kernel\qplatformintegrationfactory.cpp @ 56]
0012fa94 100af9b4 Qt5Guid!QPlatformIntegrationFactory::create+0x74 [d:\qt5\qtbase\src\gui\kernel\qplatformintegrationfactory.cpp @ 73]
0012fbec 100aa407 Qt5Guid!init_platform+0xf4 [d:\qt5\qtbase\src\gui\kernel\qguiapplication.cpp @ 1068]
0012fca4 100aa561 Qt5Guid!QGuiApplicationPrivate::createPlatformIntegration+0x4f7 [d:\qt5\qtbase\src\gui\kernel\qguiapplication.cpp @ 1237]
0012fcb8 650662a0 Qt5Guid!QGuiApplicationPrivate::createEventDispatcher+0x51 [d:\qt5\qtbase\src\gui\kernel\qguiapplication.cpp @ 1257]
0012fcc4 673050f8 Qt5Widgetsd!QApplicationPrivate::createEventDispatcher+0x10 [d:\qt5\qtbase\src\widgets\kernel\qapplication.cpp @ 197]
0012fd34 100a9670 Qt5Cored!QCoreApplicationPrivate::init+0x2d8 [d:\qt5\qtbase\src\corelib\kernel\qcoreapplication.cpp @ 815]
0012fe8c 650671d2 Qt5Guid!QGuiApplicationPrivate::init+0x20 [d:\qt5\qtbase\src\gui\kernel\qguiapplication.cpp @ 1279]
0012fe9c 650610f8 Qt5Widgetsd!QApplicationPrivate::init+0x12 [d:\qt5\qtbase\src\widgets\kernel\qapplication.cpp @ 580]
0012feb4 00408b2b Qt5Widgetsd!QApplication::QApplication+0x68 [d:\qt5\qtbase\src\widgets\kernel\qapplication.cpp @ 571]
0012ff08 0041a60d dapp!main+0x3b [d:\tests\dapp\main.cpp @ 9]
0012ff3c 0041912e dapp!WinMain+0xad [d:\qt5\qtbase\src\winmain\qtmain_win.cpp @ 123]
0012ff54 00418fc7 dapp!invoke_main+0x1e [d:\agent\_work\3\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 107]
0012ffb0 00418e5d dapp!__scrt_common_main_seh+0x157 [d:\agent\_work\3\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 288]
0012ffb8 004191a8 dapp!__scrt_common_main+0xd [d:\agent\_work\3\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 331]
0012ffc0 7c817067 dapp!WinMainCRTStartup+0x8 [d:\agent\_work\3\s\src\vctools\crt\vcstartup\src\startup\exe_winmain.cpp @ 17]
0012fff0 00000000 kernel32!RegisterWaitForInputIdle+0x49
Total threads: 1
【 在 hgoldfish 的大作中提到: 】
: 有代码和堆栈信息吗?在 win7 和 linux 下正常吗?
:
附件(31.3KB) dapp.zip[upload=2][/upload][upload=1][/upload]
--
FROM 175.42.42.*