The signals are currently ignored and that causes musl to `exit` the
thread, which doesn't cause any output. Therefore, it's very unclear
what happened. By calling `UK_CRASH` there is a clear indication that
something went wrong.
Signed-off-by: Marco Schlumpp <marco@unikraft.io>
Reviewed-by: Eduard Vintilă <eduard.vintila47@gmail.com>
Reviewed-by: Sergiu Moga <sergiu.moga@protonmail.com>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #41
LIBMUSL_EXIT_HDRS-y += $(LIBMUSL)/include/syscall.h
-LIBMUSL_EXIT_SRCS-y += $(LIBMUSL)/src/exit/abort.c
+LIBMUSL_EXIT_SRCS-y += $(LIBMUSL_BASE)/abort.c
LIBMUSL_EXIT_SRCS-y += $(LIBMUSL)/src/exit/abort_lock.c
LIBMUSL_EXIT_SRCS-y += $(LIBMUSL)/src/exit/assert.c
LIBMUSL_EXIT_SRCS-y += $(LIBMUSL)/src/exit/atexit.c
--- /dev/null
+#include <stdlib.h>
+
+#include <uk/assert.h>
+
+_Noreturn void abort(void)
+{
+ UK_CRASH("abort called\n");
+}
\ No newline at end of file