You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello:
In src/sighand.c have this code, it handle SIGSEGV, but it may let the process not exit , I find that for (left = 0; left < 10; left++) should be replace by for (left = 0; left < ret; left++)
static void
print_trace (void)
{
void *array[10];
int ret = 0, left;
char *message = "SIGSEGV occurred!\n";
char **strings;
/*It used log_get_fd() in log.h to know where to log the backtrace.*/
ret = backtrace (array, 10);
strings = backtrace_symbols (array, ret);
g_warning ("%s", message);
**for (left = 0; left < 10; left++)**
g_warning ("%s\n", strings[left]);
g_free (strings);
}
The text was updated successfully, but these errors were encountered:
Hello:
In src/sighand.c have this code, it handle SIGSEGV, but it may let the process not exit , I find that
for (left = 0; left < 10; left++)
should be replace byfor (left = 0; left < ret; left++)
The text was updated successfully, but these errors were encountered: