
debugging
文章平均质量分 82
rx_wen
这个作者很懒,什么都没留下…
展开
-
windbg sos.dll version issue
I debugged a .net 1.1 based windows application which exits silently upon start up. The problem itself is trivial and not worth mentioning. What I want to say is there is a subtle point about sos.dll version.When I was debugging, I started the applicati原创 2010-01-20 18:50:00 · 772 阅读 · 0 评论 -
view call stack of crashed application on android
On android, when a process crashes in native code, the call stack of the process will be saved to a log file in /data/tombstomes/, and written to logcat as well. The information is helpful for debuggi原创 2011-01-25 09:10:00 · 1150 阅读 · 0 评论 -
avoid memory leak in osip
I was debugging memory leak bugs recently. The bug was caused by incorrect usage of the osip library. It's not uncommon that we meet problems when we rely on a library or framework that we don't fully understand. Symptom and debuggingThe symptom is our原创 2010-11-15 20:17:00 · 602 阅读 · 0 评论 -
common programming and debugging tools
To help me memorize commonly used programming and debugging tools on windows and linux, I created a wiki page here:http://code.google.com/p/rxwen-blog-stuff/wiki/CommonProgrammingAndDebuggingToolsOnWinAndLinux原创 2010-12-21 19:22:00 · 581 阅读 · 0 评论 -
perform profiling on windows ce
Profiling is an effective way of finding out bottlenecks in an application. On windows ce platform, profiling can also be done easily.To perform profiling for native code, we can use the /callcap compiler option to enable callcap profiling. After it's en原创 2010-07-01 20:07:00 · 505 阅读 · 0 评论 -
Fix bugs with core dump
A perplexity developers usually meet is they release the product to qa team and get a feedback of occasional crash. And the testers don't have a solid reproduction steps. In this case, it's a time-consuming task to find out the cause and fix it. What we ne原创 2009-03-21 12:16:00 · 540 阅读 · 0 评论 -
GoAhead Web Server Hang
Symptom:Recently, we are experiencing process hang with the goAhead web server. The symptom can be reproduced if we disconnect the network cable while the browser is loading a page. When it occurs, we can see that the process doesn't occupy any cpu resourc原创 2009-05-09 00:15:00 · 712 阅读 · 0 评论 -
Use trace point in windbg
In visual studio, we can add trace point while debugging. It's a helpful feature to analyze the behavior of a program without breaking the execution of the target process. Isn't it useful if you debug a multi-thread process?At first glance, it seems to be原创 2009-08-14 09:59:00 · 530 阅读 · 0 评论 -
debugging python script in ipython
ipython doesn't work with built-in pdb debugger. While I tried to debug a python script with "run -d script.py" within ipython shell, I got bellow error:AttributeError: Pdb instance has no attribute 'curframe'To debug script in ipython, we need to use a原创 2010-06-09 21:39:00 · 959 阅读 · 0 评论 -
Detect Stack Corruption
Stack corruption bug is sometimes difficult to fix if we can't find out the steps to reproduce it. The cause of the bug may not be so obvious. The best thing is to have the culprit reveal itself as soon as possible, even before the stack corrupted. In this原创 2009-04-03 19:29:00 · 764 阅读 · 0 评论 -
logging with osip
As I posted before, logging is an important debugging means. In order to be truly useful and convenient, the logging module should at lease have two traits:can be turned on and off globallysupports the concept of logging levelosip also comes with a matu原创 2010-05-20 19:56:00 · 612 阅读 · 0 评论 -
Design for debugging
After we release a product to market, it's not uncommon that our customer report bugs to us, even we gained a lot of confidence from "thorough" tests by ourselves and QA guys. If it occurs, we usually don't have the luxury to perform debugging in productio原创 2009-08-19 14:23:00 · 624 阅读 · 0 评论 -
Trace System Calls
Sometimes, it's helpful to trace system api calls during debugging so that we can determine if the incorrect behavior is caused by passing wrong argument to a function or not. Or we can try to identify the performance bottleneck with it. There are several原创 2009-08-24 08:47:00 · 674 阅读 · 0 评论 -
addr2line for windows
While debugging os or application crash bug on windows ce (the tool winaddr2line isnt particularly used for windows CE application, it can be used for normal windows application too.) platform, dev原创 2011-06-27 19:40:00 · 4005 阅读 · 1 评论