过雁

--每天都被梦想唤醒--

   :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
当你发现自己的程序挂了,发现这样的一个报错, 不要慌张,它还是带有一点有用信息的。
ps: 如果程序挂了,没有捕抓到这个提示,看一下/var/log/messages对应时间段有没有如下消息。
memcached[10519]: segfault at 0 ip 000000000040d858 sp 00007fd9acd0b9b0 error 4 in memcached[400000+18000]

关于error number的解释,可以查看对应版本的linux内核代码的arch//mm/fault.c定义,一般情况是一样的。

(Ref: linux core code: arch//mm/fault.c)
/

27 * Page fault error code bits:
28 *
29 * bit 0 == 0: no page found 1: protection fault
30 * bit 1 == 0: read access 1: write access
31 * bit 2 == 0: kernel-mode access 1: user-mode access
32 * bit 3 == 1: use of reserved bit detected
33 * bit 4 == 1: fault was an instruction fetch
34 */

 

posted on 2014-04-24 16:05  过雁  阅读(618)  评论(0编辑  收藏  举报