阿弥陀佛
分类: LINUX
2013-07-26 20:49:44
点击(此处)折叠或打开
- gdb> run arguments (cc1 will stop at the segmentation fault)
- gdb> where
- gdb> list
就可以显示如下代码了:(gdb) where
#0 0x0000000000400e67 in __arc_list_splice (prev=0x7ffff7ec7000, next=0xaa07a8) at arc.h:43
#1 0x0000000000400e93 in __arc_list_remove (head=0xaa07f8) at arc.h:50
#2 0x0000000000401297 in __arc_move (cache=0x608010, obj=0xaa07e0, state=0x0) at arc.c:104
#3 0x000000000040186c in __arc_destroy (cache=0x608010) at arc.c:231
#4 0x0000000000404497 in lfs_fini () at lfs_main.c:132
#5 0x000000000040455b in main (argc=2, argv=0x7fffffffe6d8) at lfs_main.c:157
当各种方法都不行的时候,可以看/proc/pid/wchan里面的内核stack的信息。