From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18453 invoked by alias); 23 Dec 2003 23:07:43 -0000 Mailing-List: contact libc-hacker-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sources.redhat.com Received: (qmail 18365 invoked from network); 23 Dec 2003 23:07:42 -0000 Received: from unknown (HELO gateway.sf.frob.com) (64.81.54.130) by sources.redhat.com with SMTP; 23 Dec 2003 23:07:42 -0000 Received: from magilla.sf.frob.com (magilla.sf.frob.com [198.49.250.228]) by gateway.sf.frob.com (Postfix) with ESMTP id CE9BD357B; Tue, 23 Dec 2003 15:07:40 -0800 (PST) Received: from magilla.sf.frob.com (localhost.localdomain [127.0.0.1]) by magilla.sf.frob.com (8.12.9/8.12.9) with ESMTP id hBNN7dHi003213; Tue, 23 Dec 2003 15:07:40 -0800 Received: (from roland@localhost) by magilla.sf.frob.com (8.12.9/8.12.9/Submit) id hBNN7cfb003209; Tue, 23 Dec 2003 15:07:38 -0800 Date: Tue, 23 Dec 2003 23:07:00 -0000 Message-Id: <200312232307.hBNN7cfb003209@magilla.sf.frob.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Roland McGrath To: davidm@hpl.hp.com Cc: Ulrich Drepper , libc-hacker@sources.redhat.com Subject: Re: Emacs dired problem triggered by NPTL-enabled glibc In-Reply-To: David Mosberger's message of Wednesday, 17 December 2003 18:58:52 -0800 <16353.6124.238859.232329@napali.hpl.hp.com> X-Antipastobozoticataclysm: Bariumenemanilow X-SW-Source: 2003-12/txt/msg00086.txt.bz2 > Thanks, but I must still be missing something. setrlimit() is > perfectly happy to set a non-page-size-aligned limit, so I don't > understand how the code in init.c could succeed if Emacs were to set a > limit that's greater than PTHREAD_STACK_MIN, but not page-aligned. You are correct. I've added a test case that creates the same situation (just by doing "ulimit -s 1023" before running a test binary). It hits the assert as well. (Production builds won't see this since they define NDEBUG.) I made the initializer round the value taken from getrlimit up to page size. Thanks, Roland