From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4385 invoked by alias); 20 May 2009 22:35:04 -0000 Received: (qmail 4292 invoked by uid 48); 20 May 2009 22:34:49 -0000 Date: Wed, 20 May 2009 22:35:00 -0000 Message-ID: <20090520223449.4291.qmail@sourceware.org> From: "aurelien at aurel32 dot net" To: glibc-bugs@sources.redhat.com In-Reply-To: <20090517175636.10162.aurelien@aurel32.net> References: <20090517175636.10162.aurelien@aurel32.net> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug libc/10162] stratcliff test segfaults on ia64 X-Bugzilla-Reason: CC Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org X-SW-Source: 2009-05/txt/msg00095.txt.bz2 ------- Additional Comments From aurelien at aurel32 dot net 2009-05-20 22:34 ------- (In reply to comment #1) > stratcliff.c has > > int size = sysconf (_SC_PAGESIZE); > int nchars = size / sizeof (CHAR); > ... > adr = (CHAR *) mmap (NULL, 3 * size, PROT_READ | PROT_WRITE, > MAP_PRIVATE | MAP_ANON, -1, 0); > ... > mprotect (adr, size, PROT_NONE); > mprotect (adr + 2 * nchars, size, PROT_NONE); > adr += nchars; > ... > CHAR *cp = MEMCHR (&adr[outer], L('V'), 3 * size); > > memchr is called with size which contains unreadable pages. How > does it work on any arch? The looked up char is now to be before the page boundary, that is before the unreadable pages. This test actually checks that in such condition theses pages are not accessed. -- http://sourceware.org/bugzilla/show_bug.cgi?id=10162 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.