From 55ae2df08c20a29a38f83993cd403057be884166 Mon Sep 17 00:00:00 2001 From: Eao3piq4e Date: Thu, 4 Aug 2022 09:41:37 +0800 Subject: [PATCH] Update gs_bbox.cpp --- src/gausskernel/cbb/bbox/gs_bbox.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/gausskernel/cbb/bbox/gs_bbox.cpp b/src/gausskernel/cbb/bbox/gs_bbox.cpp index 4d240820b..d28e1fd84 100644 --- a/src/gausskernel/cbb/bbox/gs_bbox.cpp +++ b/src/gausskernel/cbb/bbox/gs_bbox.cpp @@ -57,6 +57,22 @@ BlacklistItem g_blacklist_items[] = { {DATA_WRITER_QUEUE, "DATA_WRITER_QUEUE", false} }; +/* +function name: coredump_handler +description: When a program is abnormal, but the exception appears in the core of process and wasn't caught, + The function will generate a file to store the information about memory of process, status of register + and running stack. +arguments: The first argument is an integer indicating signal code that usually used in program of processing + signal as variable. + The second argument is a structure pointer of type siginfo_t*, the memory that this pointer + directs stores comprehensive information about signal, for example, which process sends + and which user sends. + The third argument is a pointer of type void*, other kinds of pointers can directly used here. +return value: void +note: none +date: 2022/8/4 +contact tel: 18720816902 +*/ static void coredump_handler(int sig, siginfo_t *si, void *uc) { static volatile int64 first_tid = INVALID_TID;