Date: Wed, 8 Jul 2015 16:20:21 +0000 (UTC) From: Peter Holm <pho@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r285276 - user/pho/stress2/misc Message-ID: <201507081620.t68GKLGR098495@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pho Date: Wed Jul 8 16:20:20 2015 New Revision: 285276 URL: https://svnweb.freebsd.org/changeset/base/285276 Log: Test scenario would seg fault on i386. Diagnosed by: kib Sponsored by: EMC / Isilon storage division Modified: user/pho/stress2/misc/datamove2.sh Modified: user/pho/stress2/misc/datamove2.sh ============================================================================== --- user/pho/stress2/misc/datamove2.sh Wed Jul 8 16:19:32 2015 (r285275) +++ user/pho/stress2/misc/datamove2.sh Wed Jul 8 16:20:20 2015 (r285276) @@ -44,7 +44,7 @@ rm -f datamove2.c for i in `jot 2`; do $here/../testcases/swap/swap -t 10m -i 200 -h & - /tmp/datamove2 + /tmp/datamove2 || { echo FAIL; exit 1; } ps | grep swap | grep -v swap | awk '{print $1}' | xargs kill done rm -rf /tmp/datamove2 @@ -169,8 +169,16 @@ unmapBuffer(char *bufferp) { if (munmap(bufferp, pagesize * 2) == -1) err(1, "unmap 1. buffer"); + /* + The following unmaps something random, which could trigger: + Program received signal SIGSEGV, Segmentation fault. + free (cp=0x28070000) at /usr/src/libexec/rtld-elf/malloc.c:311 + */ + +#if 0 if (munmap(bufferp + pagesize * 2, pagesize * 2) == -1) err(1, "unmap 2. buffer"); +#endif } int
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201507081620.t68GKLGR098495>