由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - use abort() to generate coredump (转载)
相关主题
a dummy OS question来来,讨论一下multithread, multi-core, affinity
rand() in multitreadingjava 程序的内存评估,运行效率,以及超线程的问题
gdb with big core fileDaemon thread
multi threading 还是 multi processingOne OS scheduling question (转载)
关于valgrind 的一个问题多线程 编程,process 和 thread 的一些问题。
有人发现最近valgrind有问题么?multithreaded vs multiprocess
求助调试c++程序node callback的误解
感觉c挺有一丝的嘛pthread mutex能不能用与thread和process之间
相关话题的讨论汇总
话题: abort话题: coredump话题: generate话题: thread话题: process
进入Programming版参与讨论
1 (共1页)
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.

1 (共1页)
进入Programming版参与讨论
相关主题
pthread mutex能不能用与thread和process之间关于valgrind 的一个问题
processes vs threads有人发现最近valgrind有问题么?
如何在gdb中遍历binary tree求助调试c++程序
真正的multi-threading是5个thread要5个cpu?那apache是真正的m感觉c挺有一丝的嘛
a dummy OS question来来,讨论一下multithread, multi-core, affinity
rand() in multitreadingjava 程序的内存评估,运行效率,以及超线程的问题
gdb with big core fileDaemon thread
multi threading 还是 multi processingOne OS scheduling question (转载)
相关话题的讨论汇总
话题: abort话题: coredump话题: generate话题: thread话题: process