繁体   English   中英

CDB在Qt项目中崩溃

[英]CDB crashes in Qt project

我要给你呈现的谜语只是让我惊讶。 有一个用Qt 4.8.2编写的项目,由MSVC 2010编译器(32位应用程序)编译。 它使用lapack线性代数库以及一些网络来下载Google地图并将其呈现给用户。 我不是代码的作者:作者为我提供了源代码以及已编译的应用程序,我的任务是使代码适应我的目的。

该应用程序无法在我的Windows 7 Ultimate x64系统上运行。 更具体地说,它可以运行,但是随后挂起却没有显示GUI,消耗了25%的CPU(即一个内核),而我唯一可以杀死它的方法是通过任务管理器。

当我使用MSVC2010编译器在Qt Creator中对其进行编译并在CDB下运行时,它会崩溃; 调试器的清单如下所示。

更重要的是,该应用程序可以在同事的计算机以及“虚拟”框中的同一Win7系统中正常运行。 在客户端系统中,该应用程序运行,但在主机系统中,它挂断了! 重新安装Win7系统无济于事:在全新的系统上,情况反复发生。

简单的测试应用程序(什么都不做-仅显示一个简单的窗口)正在编译并运行平稳。 问题仅在于该“问题”应用程序。

sStarting debugger 'CdbEngine' for ABI 'x86-windows-msvc2010-pe-32bit'...
dStart parameters: 'ZModel' mode: 1
dABI: x86-windows-msvc2010-pe-32bit
dExecutable: D:\trunk\build-Debug\ZModel.exe
dDirectory: D:\trunk\build-Debug
dDebugger: D:\Tools\WinDDK\Debuggers\cdb.exe
dProject: D:\trunk\src (built: D:\trunk\src)
dQt: d:\Tools\QtSDK\Desktop\Qt\4.8.1\msvc2010
dQML server: 127.0.0.1:3768
dSysroot:
dDebug Source Loaction:
dSymbol file:
dDumper libraries:  d:\Tools\QtSDK\Desktop\Qt\4.8.1\msvc2010\\qtc-debugging-helper\ D:\Tools\QtSDK\QtCreator\qtc-debugging-helper\258168559\ C:\Users\DAN\AppData\Local\Nokia\QtCreator\qtc-debugging-helper\258168559\
d
dDebugger settings:
dUseAlternatingRowColours: false  (default: false)
dFontSizeFollowsEditor: false  (default: false)
dUseMessageBoxForSignals: true  (default: true)
dAutoQuit: false  (default: false)
dLogTimeStamps: false  (default: false)
dVerboseLog: false  (default: false)
dCloseBuffersOnExit: false  (default: false)
dSwitchModeOnExit: false  (default: false)
dUseDebuggingHelper: true  (default: true)
dUseCodeModel: true  (default: true)
dShowThreadNames: false  (default: false)
dUseToolTips: false  (default: false)
dUseToolTipsInLocalsView: false  (default: false)
dUseToolTipsInBreakpointsView: false  (default: false)
dUseAddressInBreakpointsView: false  (default: false)
dUseAddressInStackView: false  (default: false)
dRegisterForPostMortem: false  (default: false)
dLoadGdbInit: true  (default: true)
dScriptFile:   (default: )
dWatchdogTimeout: 20  (default: 20)
dAutoEnrichParameters: false  (default: false)
dTargetAsync: false  (default: false)
dMaximalStackDepth: 20  (default: 20)
dAlwaysAdjustStackColumnWidths: false  (default: false)
dShowStandardNamespace: true  (default: true)
dShowQtNamespace: true  (default: true)
dSortStructMembers: true  (default: true)
dAutoDerefPointers: true  (default: true)
dAlwaysAdjustLocalsColumnWidths: false  (default: false)
dListSourceFiles: false  (default: false)
dSkipKnownFrames: false  (default: false)
dEnableReverseDebugging: false  (default: false)
dAllPluginBreakpoints: true  (default: true)
dSelectedPluginBreakpoints: false  (default: false)
dAdjustBreakpointLocations: true  (default: true)
dAlwaysAdjustBreakpointsColumnWidths: false  (default: false)
dNoPluginBreakpoints: false  (default: false)
dSelectedPluginBreakpointsPattern: .*  (default: .*)
dBreakOnThrow: false  (default: false)
dBreakOnCatch: false  (default: false)
dBreakOnWarning: false  (default: false)
dBreakOnFatal: false  (default: false)
dAlwaysAdjustRegistersColumnWidths: false  (default: false)
dAlwaysAdjustSnapshotsColumnWidths: false  (default: false)
dAlwaysAdjustThreadsColumnWidths: false  (default: false)
dAlwaysAdjustModulesColumnWidths: false  (default: false)
dState changed from DebuggerNotReady(0) to EngineSetupRequested(1).
dQUEUE: SETUP ENGINE
dCALL: SETUP ENGINE
 Launching D:\Tools\WinDDK\Debuggers\cdb.exe -aqtcreatorcdbext.dll -lines -G -c .idle_cmd !qtcreatorcdbext.idle -y symsrv*symsrv.dll*C:\Users\DAN\AppData\Local\Temp\symbolcache*http://msdl.microsoft.com/download/symbols D:\trunk\build-Debug\ZModel.exe
 using D:\Tools\QtSDK\QtCreator\lib\qtcreatorcdbext64\qtcreatorcdbext.dll of 22.07.2014 18:43:57.
 D:\Tools\WinDDK\Debuggers\cdb.exe running as 4444
 Microsoft (R) Windows Debugger Version 6.12.0002.633 AMD64
 Copyright (c) Microsoft Corporation. All rights reserved.
 CommandLine: D:\trunk\build-Debug\ZModel.exe
 Symbol search path is: symsrv*symsrv.dll*C:\Users\DAN\AppData\Local\Temp\symbolcache*http://msdl.microsoft.com/download/symbols
 Executable search path is:
 ModLoad: 00000000`012c0000 00000000`01c74000   ZModel.exe
 ModLoad: 00000000`77410000 00000000`775bb000   ntdll.dll
 ModLoad: 00000000`775f0000 00000000`77770000   ntdll32.dll
 ModLoad: 00000000`73d90000 00000000`73dcf000   C:\Windows\SYSTEM32\wow64.dll
 ModLoad: 00000000`73d30000 00000000`73d8c000   C:\Windows\SYSTEM32\wow64win.dll
 ModLoad: 00000000`73d20000 00000000`73d28000   C:\Windows\SYSTEM32\wow64cpu.dll
 (130c.1300): Break instruction exception - code 80000003 (first chance)
 ntdll!LdrpDoDebuggerBreak+0x30:
 00000000`774c1220 cc              int     3
 cdb: Reading initial command '.idle_cmd !qtcreatorcdbext.idle'
 Execute when idle: !qtcreatorcdbext.idle
 0:000>
<l+t
<l+s
dNOTE: ENGINE SETUP OK
dState changed from EngineSetupRequested(1) to EngineSetupOk(3).
dQUEUE: SETUP INFERIOR
dState changed from EngineSetupOk(3) to InferiorSetupRequested(4).
dQUEUE: SETUP INFERIOR
dCALL: SETUP INFERIOR
<sxn 0x4000001f
<.asm source_line
<!qtcreatorcdbext.pid -t 0
 Source options are 1:
      1/t - Step/trace by source line
 Source options are 5:
      1/t - Step/trace by source line
      4/s - List source code at prompt
 Assembly options: source_line
 Qt Creator CDB extension version 0.11 (Qt 5 support) 64 bit built Oct 11 2011.
dTaking notice of pid 4876
dNOTE: INFERIOR SETUP OK
dState changed from InferiorSetupRequested(4) to InferiorSetupOk(6).
dState changed from InferiorSetupOk(6) to EngineRunRequested(7).
dQUEUE: RUN ENGINE
dCALL: RUN ENGINE
<sxe eh
<sxe ct
<sxe et
<g
dNOTE: ENGINE RUN AND INFERIOR RUN OK
dState changed from EngineRunRequested(7) to InferiorRunOk(11).
 ModLoad: 00000000`771f0000 00000000`7730f000   WOW64_IMAGE_SECTION
 ModLoad: 00000000`75880000 00000000`75980000   WOW64_IMAGE_SECTION
 ModLoad: 00000000`771f0000 00000000`7730f000   NOT_AN_IMAGE
 ModLoad: 00000000`77310000 00000000`7740a000   NOT_AN_IMAGE
 ModLoad: 00000000`75880000 00000000`75980000   C:\Windows\syswow64\kernel32.dll
 ModLoad: 00000000`75450000 00000000`75496000   C:\Windows\syswow64\KERNELBASE.dll
 ModLoad: 00000000`6f250000 00000000`6f2c9000   D:\trunk\build-Debug\Solver.dll
 ModLoad: 00000000`68e50000 00000000`690c6000   D:\trunk\build-Debug\QtCore4.dll
 ModLoad: 00000000`75600000 00000000`75700000   C:\Windows\syswow64\USER32.dll
 ModLoad: 00000000`77130000 00000000`771c0000   C:\Windows\syswow64\GDI32.dll
 ModLoad: 00000000`75370000 00000000`7537a000   C:\Windows\syswow64\LPK.dll
 ModLoad: 00000000`760f0000 00000000`7618d000   C:\Windows\syswow64\USP10.dll
 ModLoad: 00000000`75550000 00000000`755fc000   C:\Windows\syswow64\msvcrt.dll
 ModLoad: 00000000`76f30000 00000000`76fd0000   C:\Windows\syswow64\ADVAPI32.dll
 ModLoad: 00000000`75340000 00000000`75359000   C:\Windows\SysWOW64\sechost.dll
 ModLoad: 00000000`75700000 00000000`757f0000   C:\Windows\syswow64\RPCRT4.dll
 ModLoad: 00000000`75160000 00000000`751c0000   C:\Windows\syswow64\SspiCli.dll
 ModLoad: 00000000`75150000 00000000`7515c000   C:\Windows\syswow64\CRYPTBASE.dll
 ModLoad: 00000000`76fd0000 00000000`7712c000   C:\Windows\syswow64\ole32.dll
 ModLoad: 00000000`75ec0000 00000000`75ef5000   C:\Windows\syswow64\WS2_32.dll
 ModLoad: 00000000`75360000 00000000`75366000   C:\Windows\syswow64\NSI.dll
 ModLoad: 00000000`6f1e0000 00000000`6f249000   C:\Windows\SysWOW64\MSVCP100.dll
 ModLoad: 00000000`74e30000 00000000`74eef000   C:\Windows\SysWOW64\MSVCR100.dll
 ModLoad: 00000000`10000000 00000000`10580000   D:\trunk\build-Debug\lapack_win32_MT.dll
 ModLoad: 00000000`00390000 00000000`00453000   D:\trunk\build-Debug\blas_win32_MT.dll
 ModLoad: 00000000`76210000 00000000`7623a000   C:\Windows\syswow64\imagehlp.dll
 ModLoad: 00000000`70e80000 00000000`72d3f000   D:\trunk\build-Debug\QtWebKitd4.dll
 ModLoad: 00000000`68a00000 00000000`68e49000   D:\trunk\build-Debug\QtCored4.dll
 ModLoad: 00000000`6f120000 00000000`6f1d7000   C:\Windows\SysWOW64\MSVCP100D.dll
 ModLoad: 00000000`691d0000 00000000`69343000   D:\trunk\build-Debug\MSVCR100D.dll
 (130c.1300): Unknown exception - code c0000139 (first chance)
s
sException at 0x77671b12, code: 0xc0000139: DLL entry point not found, flags=0x1 (execution cannot be continued) in ntdll32!LdrpSnapThunk
sProcess exited (3221225785)
eProcess crashed
eCDB crashed
dNOTE: ENGINE SPONTANEOUS SHUTDOWN
dState changed BY FORCE from InferiorRunOk(11) to EngineShutdownOk(22).
dState changed from EngineShutdownOk(22) to DebuggerFinished(23).
dQUEUE: FINISH DEBUGGER
dNOTE: FINISH DEBUGGER
dHANDLE RUNCONTROL FINISHED
sDebugger finished.

对此该怎么办? 如何使应用程序正常工作? 我的想法已经用完了。 由于Win7系统是干净的-Windows / System32文件夹中没有Qt dll-没有要删除的内容。

0xc0000139:找不到DLL入口点-仔细检查所有需要的dll是否存在以及正确的类型*调试/发行版,32/64位,等等)

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM