From 65d077d79546a5b15b53162821d33c5cab9df3ef Mon Sep 17 00:00:00 2001 From: Melissa Jost Date: Thu, 25 May 2023 15:42:20 -0700 Subject: [PATCH] base: Output link to common errors page This change adds a link to the common errors page that outputs whenever a fatal signal is raised, showing when the program aborts or segfaults. Change-Id: I88420a594423570af670b460cfce7c03c4208120 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/70978 Reviewed-by: Jason Lowe-Power Maintainer: Daniel Carvalho Tested-by: kokoro Reviewed-by: Daniel Carvalho --- src/sim/init_signals.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sim/init_signals.cc b/src/sim/init_signals.cc index b6db6214aa..b9aa6f6e4d 100644 --- a/src/sim/init_signals.cc +++ b/src/sim/init_signals.cc @@ -103,6 +103,8 @@ raiseFatalSignal(int signo) // The signal handler should have been reset and unmasked (it was // registered with SA_RESETHAND | SA_NODEFER), just raise the // signal again to invoke the default handler. + STATIC_ERR("For more info on how to address this issue, please visit " + "https://www.gem5.org/documentation/general_docs/common-errors/ \n\n"); pthread_kill(pthread_self(), signo); // Something is really wrong if the process is alive at this