N*********y 发帖数: 105 | 1 【 以下文字转载自 CS 讨论区 】
发信人: NoDealToday (今天真的没有deal啊,真的没有), 信区: CS
标 题: Question about WinDbg w/ COM port (转载)
发信站: BBS 未名空间站 (Thu Mar 16 18:38:20 2006)
发信人: NoDealToday (今天真的没有deal啊,真的没有), 信区: Programming
标 题: Question about WinDbg w/ COM port
发信站: BBS 未名空间站 (Thu Mar 16 18:37:39 2006)
Try to do kernel debugging with windbg. Connect two machines with serial cable
. Debugger is win2k3 SP1, debuggee is win2k3 R2. Tried the whole afternoon but
cannot connect.
The problem is, on the debugger, I used |
|
s*****e 发帖数: 60 | 2 mentor也是建议我看help file, 看来没有什么捷径可走,只能硬着头皮看了。
回二楼:ntsd比windbg好用?组里面主要还是用windbg来分析dump文件。 |
|
s*****e 发帖数: 60 | 3 想在短时间内上手windbg,有没有什么教材可以推荐?最好能实例讲解如何分析dump文
件。 |
|
y*******d 发帖数: 1765 | 4 forget about windbg
go ntsd |
|
|
k*l 发帖数: 127 | 6 觉着吧跟一个老DEV混最靠谱,请他调试的时候叫上你在边上看。windbg本身不难,难的
在于知道什么时刻用哪个命令,这个基本上靠经验。
我曾经苦干了2天从customer dump里找memory leak相关的stack trace,然后来一个老
头一条dps命令就搞定了。 |
|
S**I 发帖数: 15689 | 7 看来你在程序调试上只能说是入门;设置断点、检查变量值之类是调试工具的基本功能
,*nix上的调试工具(譬如GDB)怎么会没有?Xcode也有这类功能。另外,应用程序调
试可以用printf,内核调试是不能用这个的。
VS的长处是界面很友好,简单易学,容易上手,而且对C++ STL调试的支持很好。GDB一
直到7.x才支持对C++ STL的内部变量检查,而且还得结合python用pretty printer实现
,比VS麻烦多了。
不过Windows上最强大的调试工具不是VS,而是WinDbg;VS强大的地方是作为一个集成
开发环境基本上是无敌的,但2010以前的VS在程序调试能力方面和WinDbg相比就是渣;
一直到2012才勉强能和WinDbg匹敌。不过WinDbg的学习曲线过于陡峭,非初学者能轻易
掌握。 |
|
S**I 发帖数: 15689 | 8 在VS2012出来以前,Windows内核层面上的调试只能用WinDbg(或者相应的纯命令行工具
KD)。即使是有了VS2012以后,大部分时候测试和运行环境下的调试WinDbg还是首选。
WinDbg的安装文件不到20MB,安装连一分钟都不用,比VS2012的便携性要好多了,且不
说VS还不是免费的。 |
|
c****e 发帖数: 1453 | 9 那么多讨论debugging的帖子都没有提到windbg的.难道大家在windows上debug都是VS?
windows和gdb相比较的是windbg,超级强大. VS完全是另外一个路子的, 虽然code base
开始是一样的. 当然manage code debugger那一套还是VS方便. windbg超多extension,
一点不比gdb弱. tracing还有基于trace的checker windows也有很多方案, 不比
valgrind差, 不光是memory leak, registry, file, concurrency都可以check. |
|
s*****n 发帖数: 5488 | 10 不是dump 了嘛?注意要等cpu没太多活动,但是心痛没有反应时取得。
然后windbg 打开dump file,!threads, !clrstack一个个看吧.
懒惰的话, 如果是C code, windbg直接支持。 c#网上应该有windbg的死锁检查的。自
己赵忠吧。 |
|
|
c****e 发帖数: 1453 | 12 en.可能我没说清楚.windbg就是debugger.valgrind是个emulator.valgrind有个缺点是
纯粹runtime的,不能take a trace然后在trace file上做。我还是两年前用过,不知
道现在怎么样。
发信人: thrust (祝阳阳早日康复), 信区: Programming
标 题: Re: Re: 编程语言选择问题
发信站: BBS 未名空间站 (Thu Jan 8 03:01:27 2009), 转信
我相信windbg走的和valgrind不是同一个路子, 功能也不能相比
valgrind基本上是个模拟器, boundschecker还比较接近
可能因为我做硬件, 对模拟器比较熟-_- |
|
z***e 发帖数: 5393 | 13 i think you should be able to do this with windbg.
same the core dump, then load with windbg; it has time tracing as well. |
|
a****j 发帖数: 8 | 14 Almost same as GNU, run
Start Menu /
Microsoft Visual Studio 2010 /
Visual Studio Tools /
Visual Studio Command Prompt (2010)
Then
gcc - cl.exe
ld - link.exe
ar - lib.exe
make - nmake.exe
gdb - cdb.exe / windbg.exe (google windbg)
c++filt - undname.exe
objdump / nm - dumpbin.exe |
|
r*****3 发帖数: 143 | 15 文名: Inside Windows Debugging
作者: Tarik Soulami
资源格式: PDF
版本: 英文文字版/EPUB
出版社: Microsoft
书号: 0735662789
发行时间: 2012年5月
地区: 美国
语言: 英文
内容介绍:
Use Windows debuggers throughout the development cycle—and build better
software
Rethink your use of Windows debugging and tracing tools—and learn how to
make them a key part of test-driven software development. Led by a member of
the Windows Fundamentals Team at Microsoft, you’ll apply expert debugging
and tracing techniques—and sharpen your C++ and C# code ana... 阅读全帖 |
|
S*A 发帖数: 7142 | 16 其实我觉得,很多人说 IDE 很爽,主要是因为 gdb 作为调试器
完全命令行。没有好的 source code file 支持。如果 debugger
支持比较好的文件显示之类的,例如 windbg。程序员也不介意
出了 IDE 开多一个窗口用 windbg。
Linux下面有使用方便点的 debugger,例如命令行有 cgdb.
基本上出 IDE 调试问题也不大。 |
|
A*********l 发帖数: 2005 | 17 gdb 和Windows上的ntsd或者WinDbg还是差很多。
Windows上的东西,就算是服务器,几百个线程,crash了,用ntsd或者WinDbg几乎都可
以解决,前提是有full symbols,fully optimized binary也都没问题。
某些特别的crash或者死锁只有用debugger才能解决或者是不用log容易多了。
不管你怎么比Linux和Windows,在debugger这方面,Windows比Linux强太多了。 |
|
S**I 发帖数: 15689 | 18 1. 用WinDbg打开MEMORY.DMP
2. File -> Symbol File Path,输入
SRV*C:Symbols*http://msdl.microsoft.com/download/symbols
3. 在WinDbg的命令行里输入
.reload /f
根据你的网速快慢,可能需要等几十秒到几分钟
4. 继续输入
!analyze -v
5. 把输出信息贴上来
**
*
*
* |
|
b***n 发帖数: 13455 | 19 本人是发现一个办一个, 在位一天办一天...TNND居然往我信箱里倒垃圾 |
|
A**a 发帖数: 275 | 20 Job titile: Malware research engineer
Palo Alto Networks is a revolutionary and dynamic startup creating next
generation firewalls backed by Top-tier investors such as Sequoia
Capital, Greylock Partners and Globespan Capital partners .If you are a
motivated, intelligent, creative, and hardworking individual who wants
to contribute and make a difference, this job is for you. Palo Alto
Networks is looking for a Malware Research Engineer to work as a member
of Application and Threat Research Team. ... 阅读全帖 |
|
c****s 发帖数: 241 | 21 1. 用condition breakpoint
2. attach WinDbg or VS when crash happens. |
|
d**f 发帖数: 264 | 22
1.This is answer to how to avoid mem leaking.
If there is mem leaking already in other peoples code, how to check?
2. if you want assign a+b to c, you need check if b < (NMAX-a).
Another thing you need pay attention to, 0
mid = i+(j-i)/2;
3.
debug tools. gdb,windbg
memory debug tools
crash dump analysis
static code analysis
Q: There is a program. Sometime it works, sometime it crash.How to find this
bug?
A: Mostly it is caused by uninitialized vars or overflow or p... 阅读全帖 |
|
A**a 发帖数: 275 | 23 Job titile: Malware research engineer
Palo Alto Networks is a revolutionary and dynamic startup creating next
generation firewalls backed by Top-tier investors such as Sequoia
Capital, Greylock Partners and Globespan Capital partners .If you are a
motivated, intelligent, creative, and hardworking individual who wants
to contribute and make a difference, this job is for you. Palo Alto
Networks is looking for a Malware Research Engineer to work as a member
of Application and Threat Research Team. ... 阅读全帖 |
|
f****g 发帖数: 313 | 24 查看core dump中的crash时的调用站,CPU寄存器的信息,如果有配套的symbol file,
可以看看机器
码到底死在那里了,对业务代码熟的话,应该可以figure out一些问题。
这个题主要看经验了,做过大的商业软件的(无论用windbg, dbg等等),应该都有机
会遇到
attach |
|
b****l 发帖数: 132 | 25 On what platform? Window or Linux?
There are tools that can help you track memory leaks. On Windows, you can
try AppVerifier combined with debugger (like Windbg). On Linux, there are
similar tools. |
|
A**a 发帖数: 275 | 26 A opening in my team. New graduates are welcome. It's ok if you don't have
enough experience or
meet all criteria in the below requirements, but we hope that you are
motivated
and can learn and pick up very fast. We sponsor H1B and GC.
If you are interested in this position, please
send your resume to j************[email protected]
Position: Senior Windows Kernel Engineer
Palo Alto Networks is THE leading network security company. Our market is
the network security market and consists of enterprises... 阅读全帖 |
|
g**w 发帖数: 969 | 27 x64 有点奇怪。建议turn off 优化。
其实用windbg很容易看,不用费劲的打印地址 |
|
D**f 发帖数: 439 | 28 刚面试回来,他是第一个,第一个问题,听说我用windbg,问我这东西怎么实现的,我
说我只用,没必要关心实现,他说你应该知道所有细节,我只好把看过的一些debugger
的实现简介一番,但我的确不是很清楚,郁闷。然后他又问一个C++新标准的内容,我
说目前我用的编译器还没用到这个,我也没看过,他又说我应该知道,还应该知道编译
器怎么实现这个的,然后就开讲了,基本上都是他在讲,估计是做过教练的职业病,我
都没插上几句话,damn,出师不利,后来没兴趣往下走了。 |
|
n******y 发帖数: 25 | 29 The Windows Phone Software Development Engineer will primarily be involved
in the design, implementation and launch of Windows Phone software on
Samsung devices. The software can range from system low-level modules such
as drivers, media pipeline, Radio Interface Layer (RIL), cellcore, to
various system services and applications levering WP8 API.
The developer will work closely with internal R&D engineers and Samsung
partners such as Microsoft and Qualcomm to deliver quality software product.
Th... 阅读全帖 |
|
z****g 发帖数: 5 | 30 1,what is abi and api, give some example
API=application programing interface. ABI=?
2, what happens when exception is thrown?
In current function, if there is a try-catch, will go to catch part; If
there is try-finally, will go to finally; Otherwise, will go out of the
function and return to previous call.
3, what if exception is not caught anywhere?
The process will end with a certain error and signal.
4, what must be initialized in the initialization list?
For my style, every field must be in... 阅读全帖 |
|
p*****2 发帖数: 21240 | 31 这个要求有些高呀
windbg 之类是基本功。不会开以学,熟悉当然好。普通都是user mode里折腾,杀进
kernel的不多,但不是没有。 |
|
x*******8 发帖数: 262 | 32 工作地点:北京。
替朋友转帖,如有意请回复邮件:z************[email protected]
Thanks.
Software Engineer
Job Description
Develop, create, and modify general computer applications software or
specialized utility programs. Specifically, develop innovative applications
in the area of Electronic Funds Transfer using cutting-edge technologies.
Will be responsible for developing, testing, enhancing and maintaining
distributed software applications using n-tier architecture based frameworks
while working on routine problems. ... 阅读全帖 |
|
|
g**w 发帖数: 969 | 34 最大的可能是某个驱动程序出问题了,
比如无限网卡,还有杀病毒的软件也会安装驱动程序
用windbg打开c;\system\memory.dmp, 大概知道是哪个driver
restart |
|
t****u 发帖数: 8614 | 35 我老不玩这个已经有段时间了。
有没有生成minidump? 然后装个windbg,看看minidump,看看是哪里crash的。
通常是某个driver的问题。identify后,disable或者upgrade to latest version。
restart |
|
f*******s 发帖数: 3046 | 36 看3楼,我用过whocrashed看minidump了,windbg会更好用吗?
我估计卸载norton还有个中文游戏可能没弄好。特别是那个中文的,没有uninstall这
个option直接删掉了。如果因为没卸干净怎么清理机器? |
|
l******g 发帖数: 636 | 37 那个help file。里面有各种bugcheck,怎么开始。。。实例比较麻烦,好多root
cause都不一样。 组里没有mentor吗? |
|
n**p 发帖数: 1150 | 38 advanced windows debugging
不要被书名吓到,里面其实讲的是很基础的东西 |
|
l******g 发帖数: 636 | 39 //dbg site上有两个不错的初始教材,你可以看看 |
|
|
W**i 发帖数: 447 | 41 看help file最好了,毕竟debugger不是个大软件。至于debugging的技巧,在实践中慢
慢摸索,多向老人学习学习吧。
有一个PDF file,好象叫什么debugfest的,讲得挺简单的。在看help file之前可以看
一下。 |
|
u*******o 发帖数: 405 | 42 跟test说不要dump,当着我的面repro出来否则就不算数 :) |
|
z***e 发帖数: 5393 | 43 这个太扯了,我凭什么要去知道exchange server是哪个?凭什么要去查哪个exchanage
server出了问题?
你windows死机了跑出来说,我是不是也要笑你都不晓得用windbg去debug? |
|
s*****w 发帖数: 1527 | 44 we used windbg and found the bug, thx ! |
|
Q*K 发帖数: 3464 | 45 I guess at least 50% engineers don't know what's Watson Core Dump
and another 50% has never used windbg/ntsd/cdb/kd
not everybody works in windows team
个 |
|
w*******e 发帖数: 285 | 46 我觉得还有一个不好的地方就是学会的东西以后可能用处比较少。我们主要的时间都花
在用windbg去kernel debugging或者看一个kernel dump,读optimized之后的汇编代码
,用各种kernel debug extension来找问题。这个以后要是去别的地方写managed code
什么的实在是没什么用处。 |
|
e*********e 发帖数: 2175 | 47 windbg 之类是基本功。不会开以学,熟悉当然好。普通都是user mode里折腾,杀进
kernel的不多,但不是没有。 |
|
l***i 发帖数: 1309 | 48 这种大牛不是用vim/emacs/windbg/coredump的?
另外dev manager可能考察的方面不一样吧,做题比重肯定小很多,对项目的理解和领
导小组的水平应该更看中吧。 |
|
c******r 发帖数: 512 | 49 Worked with Mac powerbook pro for 3 months, some impressions.
The good part,
1. Unix is Unix. :-)
2. Fink rocks.
3. Expose is handy.
4. The power cord is cute.
The bad,
1. gdb does not work with core file, WTF?
2. Miss many features of windbg.
3. DVD player disapeared by itself :-(
4. Reinstall OS installs zillions of printer drivers and Italian by default?
5. One button mouse :-(
I wonder if anyone has solution to 1. Thanks.
It is an well built but over priced unix laptop. The most attractiv |
|