
Debug
文章平均质量分 51
CPP_CHEN
这个作者很懒,什么都没留下…
展开
-
实际工程中碰到的一个问题
问题:(Linux 环境) 有一个database (Binary file),被很多clients共享,每个client都有可能read/write这个database。所以正常情况下,每个client在write这个database之前,都需要先hold一把file lock。但发现有一个/一些client并没有遵守这种约定(规则)。如何找出没有遵守这种约定的client(s). 解答:要找原创 2011-11-04 17:19:12 · 717 阅读 · 0 评论 -
工作中碰到netcat的一个问题
这两天工作当中碰到netcat的一个小问题。nc [IP] [PORT] < xml_request之后,没有任何output,当时以为是server端,没有正确处理好xml response或者xml_request有问题。后来对server端进行调试,发现server端其实已经向netcat发送了response。但为什么netcat没有显示任何的response ? 使用strace对net原创 2011-11-04 17:35:44 · 730 阅读 · 0 评论 -
"No match" error while execute the excutable
This related to the C shell and the special characters like "?" {nsgb26}ken_410: echo $SHELL /bin/csh {nsgb26}ken_411: gdb --args./smController -? gdb: No match. {nsgb26}ken_412: ./smController原创 2012-11-13 18:33:14 · 563 阅读 · 0 评论 -
A nice article which shows how to root cause the package corruption
http://mina.naguib.ca/blog/2012/10/22/the-little-ssh-that-sometimes-couldnt.html原创 2012-11-14 22:27:38 · 626 阅读 · 0 评论 -
Linux TCP/IP performance tune
On site problem: -- I have written a simple program which recursively traverses the file system (NFS/CIFS or local file system) to get meta data of each file/directory. While I launched two instan原创 2013-07-03 14:37:03 · 1219 阅读 · 0 评论 -
Playing with ptrace, Part I
Using ptrace allows you to set up system call interception and modification at the user level. Have you ever wondered how system calls can be intercepted? Have you ever tried fooling the kern转载 2014-03-10 20:59:26 · 903 阅读 · 0 评论