当前位置:网站首页>windbg分析进程卡死
windbg分析进程卡死
2022-08-02 10:14:00 【宇龍_】
前言
本文重点讲述的是通过windbg分析进程卡死的问题,在日常的开发过程中,所开发的程序有可能会在某个环节卡主,但程序又没有崩溃(未生成dump文件),那么在这种情况下我们该如何找出程序是在哪个环节或函数处卡主的?本文正是为了解决此问题。
正文
上一段会导致进程卡主的程序代码:
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
DWORD WINAPI TheadFunc(PVOID)
{
Sleep(1000 * 60 * 60);
return 0;
}
int main()
{
printf("start!\n");
HANDLE hThread = CreateThread(NULL, 0, TheadFunc, NULL, 0, NULL);
WaitForSingleObject(hThread, INFINITE);
CloseHandle(hThread);
printf("over!");
system("pause");
}上面这段代码很简单,不做多的解释,仅作为我们分析过程中的一个样例。
首先windbg分析进程卡死有两种方式:1、附加到进程;2、手动产生dump,通过dump进行分析;
本文讲述的是第二点,毕竟程序卡死一般是发生在测试或者用户那里,那么如何手动dump文件?
这里采用的是神器procdump[
边栏推荐
- DVWA Clearance Log 2 - Command Injection
- 周杰伦新歌发布,爬取《Mojito》MV弹幕,看看粉丝们都说的些啥!
- 周鸿祎称微软抄袭 360 安全模式后发文否认;英特尔CEO基辛格回应市值被AMD超越:股价下跌是咎由自取|极客头条...
- The R language uses the ggtexttable function of the ggpubr package to visualize the table data (draw the table directly or add the table data to the image), set the theme parameter to customize the fi
- 新“内卷”席卷科技圈,Google CEO 要求 174000 员工提高工作效率!
- Alibaba CTO Cheng Li: Alibaba Open Source History, Concept and Practice
- 软件测试的基本理论知识(软件测试面试基础知识)
- 每日一题练习1-15
- LayaBox---TypeScript---模块解析
- Use compilation to realize special effects of love
猜你喜欢

Spearman's correlation coefficient

神通数据库,批量插入数据的时候失败

读博一年后对机器学习工程的思考

后管实现面包屑功能

QT专题:组合会话框和文本编辑器

Getting Started with SCM from Scratch (1): Summary of Background Knowledge

How to choose a truly "easy-to-use, high-performance" remote control software

8月份的.NET Conf 活动 专注于 .NET MAUI

从测试入门到测试架构师,这10年,他是这样让自己成才的

8年软件测试工程师的感悟:与薪资相匹配的永远是实力
随机推荐
iNFTnews | Seeing the two sides of the metaverse, what is the true Internet and the Internet of value?
4年手工测试被应届生取代了,用血与泪的教训给xdm一个忠告,该学自动化了...
【OpenCV】-霍夫变换
行为型模式-策略模式
R语言时间序列数据算术运算:使用log函数将时间序列数据的数值对数化、使用diff函数计算对数化后的时间序列数据的逐次差分(计算价格的对数差分)
关于缓存数据的探讨
瑞萨RZ/G2L处理器详细测评
armv7与armv8的区别(v8和w12的区别)
Hongxing, donate another million
阿里巴巴 CTO 程立:开源是基础软件的源头!
LayaBox---TypeScript---Mixins
LayaBox---TypeScript---装饰器
LayaBox---TypeScript---Namespaces and modules
R language ggplot2 visualization: use the ggbarplot function of the ggpubr package to visualize the stacked bar plot, the lab.pos parameter specifies the position of the numerical label of the bar cha
MSYS2 QtCreator Clangd 代码分析找不到 mm_malloc.h的问题补救
重磅大咖来袭!阿里云生命科学与智能计算峰会精彩内容剧透
matlab-day02
练习-17
Smoothing of time series data in R language: smoothing time series data to remove noise using the dpill function and locpoly function of the KernSmooth package
LayaBox---TypeScript---声明合并