From 245c069c4efae82358a292a2d9dbdf9c1584fcbc Mon Sep 17 00:00:00 2001 From: Zihao Yu Date: Wed, 9 Nov 2022 18:02:32 +0800 Subject: [PATCH] thread-os: fix stack overflow with glibc 2.39 * `Inconsistency detected by ld.so: dl-runtime.c: 63: _dl_fixup: Assertion `ELFW(R_TYPE)(reloc->r_info) == ELF_MACHINE_JMP_SLOT' failed!` --- kernels/thread-os/thread-os.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernels/thread-os/thread-os.c b/kernels/thread-os/thread-os.c index 6787bfa..b8f9aa3 100644 --- a/kernels/thread-os/thread-os.c +++ b/kernels/thread-os/thread-os.c @@ -11,7 +11,7 @@ typedef union task { void (*entry)(void *); Context *context; }; - uint8_t stack[8192]; + uint8_t stack[4096 * 3]; } Task; Task *currents[MAX_CPU];