From 53f94d305342966b29fe32f1d397071a22c16417 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Mon, 17 Mar 2014 23:06:46 +0100 Subject: [PATCH 1/1] Use a smaller stack for stack-overflow test. It is needed on FreeBSD to have a stack size < 125K to generate a SIGSEGV with SEGV_ACCERR when using threads, and to have this test succeed. Without that, the SIGSEGV is correctly generated, but with SEGV_MAPERR, and the error message is not displayed. I don't fully understand what's going on. --- teshsuite/simix/stack_overflow.tesh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/teshsuite/simix/stack_overflow.tesh b/teshsuite/simix/stack_overflow.tesh index 5bbebb5e9b..2606c83a4b 100644 --- a/teshsuite/simix/stack_overflow.tesh +++ b/teshsuite/simix/stack_overflow.tesh @@ -1,5 +1,5 @@ ! expect signal SIGSEGV -$ ./simix/stack_overflow ${srcdir:=.}/simix/stack_overflow.xml +$ ./simix/stack_overflow --cfg=contexts/stack_size:96 ${srcdir:=.}/simix/stack_overflow.xml > [Tremblay:master:(0) 0.000000] [test/INFO] Launching our nice bugged recursive function... > Access violation detected. This can result from a stack overflow. -> Try to increase stack size with --cfg=contexts/stack_size (current size is 8192 KiB). +> Try to increase stack size with --cfg=contexts/stack_size (current size is 96 KiB). -- 2.20.1