w*s 发帖数: 7227 | 1 【 以下文字转载自 Linux 讨论区 】
发信人: wds (净洗前尘,从头再来), 信区: Linux
标 题: use abort() to generate coredump
发信站: BBS 未名空间站 (Wed Mar 20 20:54:45 2013, 美东)
my linux code has 5 processes,
seems 1 dies, (top shows it's zombie)
causing watchdog eventually.
i don't know how to reproduce the bug,
this is the plan,
every time i see watchdog, code will call abort() to generate core.
Then debug core.
Do you think i can get useful info ? as there're 5 app processes in the
system, can this core still provide useful info for the dead process ?
Also "ps -ef -T" shows this dead process has only 1 thread.
In normal case it should have 5 threads.
My question is, is it really has 1 thread in this case,
or because the process is zombie, it only displays 1 thread ?
Thanks for your help ! | l*********s 发帖数: 5409 | 2 do as much as logging as possible | w*s 发帖数: 7227 | 3 very hard to reproduce,
very complicated code.
【在 l*********s 的大作中提到】 : do as much as logging as possible
| d**********x 发帖数: 4083 | 4 1. use valgrind.
2. try harder to reproduce it, it's very important.
【在 w*s 的大作中提到】 : 【 以下文字转载自 Linux 讨论区 】 : 发信人: wds (净洗前尘,从头再来), 信区: Linux : 标 题: use abort() to generate coredump : 发信站: BBS 未名空间站 (Wed Mar 20 20:54:45 2013, 美东) : my linux code has 5 processes, : seems 1 dies, (top shows it's zombie) : causing watchdog eventually. : i don't know how to reproduce the bug, : this is the plan, : every time i see watchdog, code will call abort() to generate core.
| l*********s 发帖数: 5409 | 5 if too complicated, it is probably a bad design issue
【在 w*s 的大作中提到】 : very hard to reproduce, : very complicated code.
|
|