通过 Adplus,我附加了一个流程(在我的 iis 中我运行了一个网站)
C:\Program Files (x86)\Debugging Tools for Windows (x86)>ADPlus -crash -pn w3wp .exe -o C:\dumps
以下是重现该网站的 stackoverflow 异常的代码:
protected void Page_Load(object sender, EventArgs e)
{
}
public void Hello()
{
Hello();
}
protected void Button_Test_Click(object sender, EventArgs e)
{
Hello();
}
为我创建的转储位于:
C:\Dumps\Crash_Mode__Date_05-04-2012__Time_21-44-2020\PID-12452__W3WP.EXE_DefaultAppPool__1st_chance_Process_Shut_Down__full_2bc0_2012-05-04_21-45-53-704_30a4
我在 windbg 中打开了这个转储并运行了这些命令
0:000> .loadby sos clr
0:000> !clrstack
我收到以下消息
Unable to walk the managed stack. The current thread is likely not a
managed thread. You can run !threads to get a list of managed threads in
the process
你能帮我修一下吗?如何追踪错误的位置?