user-define signal handler & coredump for signal 11(SIGSEGV)
Hello,
As we know, the defaule behavor will be generate a coredump for a process/thread received a signal 11, However, if I change the behavior for it by development a new signal handler, I didn't get the core file. So my question is: 1)I'd like to design a signal handler, and in this handler, I printf some userful info for the thread reveived the signal 11, but the most important of this, I'd like to generate the coredump just as the default behavior. So how i could do it? Thank you in advance. |
Hello,all:
Could you give me some hints? That's very kind of you. thanks. |
Quote:
additional segfault, for example Code:
*(int *)0 = 1 What do you need this core dump for ? |
All times are GMT -5. The time now is 02:38 AM. |