- 論壇徽章:
- 0
|
最近發(fā)現(xiàn)很奇怪的問題, 在cron 中調(diào)用腳本,腳本中有一個(gè) pidof 命令,但通過 core 監(jiān)控,發(fā)現(xiàn) pidof 隨機(jī) core ,收到 signal 11
root@kickseed:/data/core_files# grep pidof /var/log/messages
May 15 20:46:01 kickseed kernel: [2151198.348184] pidof[22239]: segfault at 7fff0e21d000 ip 0000000000401c9c sp 00007fff0e21a9a0 error 4 in killall5[400000+3000]
May 18 03:34:01 kickseed kernel: [2348478.379997] pidof[8831]: segfault at 7fff134cb000 ip 0000000000401c9c sp 00007fff134c9cc0 error 4 in killall5[400000+3000]
May 18 10:26:01 kickseed kernel: [2373198.795335] pidof[2190]: segfault at 7fff33b51000 ip 0000000000401c9c sp 00007fff33b50300 error 4 in killall5[400000+3000]
root@kickseed:/data/core_files#
root@kickseed:/data/core_files# gdb -c core-pidof-2190-1337307961
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
(no debugging symbols found)
Core was generated by `pidof attack_checking_V1.0'.
Program terminated with signal 11, Segmentation fault.
[New process 2190]
#0 0x0000000000401c9c in ?? ()
(gdb) bt full
#0 0x0000000000401c9c in ?? ()
No symbol table info available.
#1 0x000000012bb4dc40 in ?? ()
No symbol table info available.
#2 0x00000000012d1010 in ?? ()
No symbol table info available.
#3 0x0000000000000801 in ?? ()
No symbol table info available.
#4 0x0000000000094009 in ?? ()
No symbol table info available.
#5 0x0000000000000001 in ?? ()
No symbol table info available.
#6 0x00000000000081ed in ?? ()
No symbol table info available.
#7 0x0000000000000000 in ?? ()
No symbol table info available.
(gdb) quit
root@kickseed:/data/core_files#
|
|