From: Arnaud Giersch Date: Mon, 17 Mar 2014 22:06:46 +0000 (+0100) Subject: Use a smaller stack for stack-overflow test. X-Git-Tag: v3_11~215^2 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/53f94d305342966b29fe32f1d397071a22c16417?hp=9a74a4d9c970bf6b49d2c15d284ca190451d5ef6;ds=sidebyside 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. --- 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).