From 848321909dc088309abed16de95fa227b755354d Mon Sep 17 00:00:00 2001 From: Isaku Yamahata Date: Wed, 23 Jan 2019 21:09:31 -0800 Subject: [PATCH] [Pal/Linux-SGX] Make message on thread allocation failure more friendly --- Pal/src/host/Linux-SGX/sgx_thread.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Pal/src/host/Linux-SGX/sgx_thread.c b/Pal/src/host/Linux-SGX/sgx_thread.c index e17ae99b14..add404fdff 100644 --- a/Pal/src/host/Linux-SGX/sgx_thread.c +++ b/Pal/src/host/Linux-SGX/sgx_thread.c @@ -68,7 +68,10 @@ static void * thread_start (void * arg) current_enclave = arg; if (!current_tcs) { - SGX_DBG(DBG_E, "Cannot attach to any TCS!\n"); + SGX_DBG(DBG_E, + "There are no available TCS pages left for a new thread!\n" + "Please try to increase sgx.thread_num in the manifest.\n" + "The current value is %d\n", enclave_thread_num); return NULL; }